\( \newcommand{\pd}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\od}[2]{\frac{d #1}{d #2}} \newcommand{\td}[2]{\frac{D #1}{D #2}} \newcommand{\ab}[1]{\langle #1 \rangle} \newcommand{\bss}[1]{\textsf{\textbf{#1}}} \newcommand{\ol}{\overline} \newcommand{\olx}[1]{\overline{#1}^x} \)
Advection, Diffusion, and Conservation Laws¶
Basin Scale Budgets¶
As an introduction to this somewhat technical topic, we will first examine the basin scale budgets of mass, heat, and salt. This are usually a bit more intuitive to understand.
Consider the volume shown below. It shows the side view of an ocean basin (like the North Atlantic) bounded at the bottom by the sea floor, at the top by the ocean surface, and at the southern edge by an open boundary through which water can flow. The central question here is, what controls the rate of change of total mass, heat content, and salt inside this volume?
from IPython.display import Image
Image('images/3D_Basin_Diagram.png')
Mass Conservation¶
Let \(M\) be the total mass of the ocean in this basin. The rate of change of mass is given by
The two terms on the right represent the mass flux into the volume at the surface and the mass flux into the volume at the side boundary. (Note that the sign coventions we chose for the \(F_m\)’s was arbitrary: we definied them such that mass will increase if they are positive. This choice dictates the sign in what follows.) At this point the equation is a bit obvious, but let’s write what each term is a bit more explicity.
The total mass is given by the integral of the density over the volume (denoted by \(V\)):
The mass flux at the surface is given by the integral over the surface of evaporation (\(E\), measured in m/s), precipitation (\(P\)) and runoff (\(R\)), multiplied by the density of fresh water:
The mass flux at the open boundary is given by the area integral of the velocity \(\mathbf{u}\) times the density, in the direction normal to the boundary:
Here \(\mathbf{dA}\) is the vector area element which points out of the volume normal to the boundary.
This equation suggests several different possibilities:
If E-P is not in balance with the net E-P-R, then the total ocean mass in the basin has to increase or decrease.
In steady state (i.e. time derivative is zero), the net evaporation minus precipitation must balance the mass inflow at the boundary.
It is very common in oceanography to take the mass of the ocean, or of a basin, as constant in time. Although the ocean mass does change slightly on various timescales (most notably through the formation and melting of terrestrial ice sheets), these changes are extremely slight compared to the total ocean mass. In this case, we find
Mass Conservation in Boussinesq Approximation¶
The Boussisesq approximation is that density variations \(\delta \rho\) are very small compared to the background density \(\rho_0\), i.e.
This approximation simplifies conservations equations considerably. The mass can now be approximated as
Since \(\rho_0\) is a constant, we can divide it out of the mass equation and work with volume instead:
The mass equation becomes a volume equation:
with
and
Heat Conservation¶
The total heat content of the basin is given by
where \(\Theta\) is the conservative temperature (proportional to potential enthalpy). Some would say that that \(\Theta\) should be measured in Kelvins. However, the first law of thermodynamics only describes the changes in heat content of a system; the absolute value of \(H\) is meaningless.
The rate of change of heat content depends only on external fluxes into the system:
The surface flux is the air-sea flux \(Q\) we discussed earlier, plus the advection of heat by the evaporating / precipitating water:
where \(Q\) is defined as positive for downward heat flux. The second term represents the advetion of heat into / out of the ocean surface by evaporating / precipitating water. Neglecting diffusive fluxes (for now), the flux through the side is
Simultaneous Changes of Heat and Mass¶
It becomes difficult to reason about heat content when the mass of the system is also changing. For this reason, we will mostly talk about heat transport in situations where the total ocean mass, or the mass of an individual basin under consideration, is constant in time (i.e. \(d M / d t = 0\)).
If the mass of the system is changing, is may be useful to distinguish from the mean temperature of the body \(\overline{\Theta}\) and a fluctuation from this mean \(\Theta'\). Expanding \(H\), we obtain:
We make the same substitution in the surface flux
and the side flux
Summing all these, we can obtain a formula of the form
Through mass conservation, the final term proprtional to \(\overline{\Theta}\) cancels out to zero. All that remains are the terms proportional to \(\Theta'\), which we have defined as
This gives us a template to follow when trying to calculate heat budgets for bodies whose mass is changing: redefine the temperature as relative to the mean temperature. This form of the budget also reveals something important: even with \(dM/dt = 0\), the magnitude of the surface and side fluxes is indeterminate up to a constant. We can add any constant temperature to these components, and it will cancel out in the heat budget. Attempting to break down the heat budget into a sum of different components can lead to spurious conclusions, since these individual components potentially depend on an arbitrary reference temperature. We can avoid this indeterminacy only if:
There are no net mass fluxes at all through any of the boundaries (\(F_m^{surf} = F_m^{side} = 0\)) OR
We reference all our temperature measurements at all boundaries to the same constant and, using the same reference temperature, cancel the terms related to net mass flux.
Heat Conservation in Boussinesq Approximation¶
Under the Boussinesq approximation,
The fluxes simplify to
and
Volume conservation (\(d V / dt = 0\)) accompanies heat conservation to render it independent of \(\Theta_{ref}\).
Salt and Freshwater Conservation¶
Since negligible salt is exchanged with the atmosphere (or sea ice), the basin-scale budget for salinity is
with
In steady state this simply states that the net salt flux through a closed section is zero.
We can construct the freshwater balance by subtracting the mass balance. Assuming steady state, we find
This equation can be simplified to
which represents the next freshwater flux through the basin. In the Boussinesq approximation, we have
For a basin with a closed volume budget (\(F_V^{side} = 0\)), the first term in parenthesis vanishes, and we obtain
i.e. the freshwater transport is equal and opposite to the salt transport.
Layered Models¶
Image('images/3D_Basin_Diagram_layers.png')
A very common framework for thinking about basin-scale budgets is the use of layered models. By this we mean models where the quantities of interest—\(\mathbf{u}\), \(\Theta\), etc.—are represented as piecewise constant function. In these cases, we can replace many of the integrals in the budget with simple sums.
Example: Two Layer Flow¶
As an example, let’s develop a model very losely inspired by the North Atlantic: flow coming into the basin in layer 1 and out of the basin in layer two. Let’s use the Boussinesq assumption and additionally assume steady-state volume (\(dV/dt = 0\)) and no net volume flux through the surface \(F_v^{surf} = 0\). In this case, the volume budget just becomes
Now let’s divide the integral into two separate components:
In layer 1, \(\mathbf{u} \cdot \mathbf{dA} < 0\) (inflow)
In layer 2, \(\mathbf{u} \cdot \mathbf{dA} > 0\) (outflow)
We now separate the integral into two parts
Clearly the two components must be equal and opposite, i.e. $\( \psi_1 = \psi \ , \ \ \psi_2 = -\psi \)$
In this simple two-layer model, the quantity \(\psi\) represents the strength of the overturning circulation (covered much more in-depth in Overturning Circulation). It is a volume flux, measured in m\(^3\)/s, or in Sv (1 Sv = 10\(^6\) m\(^3\)/s). Note that we did not need to specify the exact details of \(\mathbf{u}\) on the boundary or the shape of the boundary.
Now we will look at heat transport by this circulation. The advective heat transport through the side boundary is given by
This is where the piecewise-constant approximations of the layered model come in. We will assume that the temperature is uniform in each layer on the boundary. I.e., on the side, we have \(\Theta = \Theta_1\) in layer 1 and \(\Theta = \Theta_2\) in layer 2. The heat transport becomes
Recognizing that \(\psi_1 = \psi\) and \(\psi_2 = -\psi\), we obtain
where \(\Delta \Theta = \Theta_1 - \Theta_2\) is the difference in temperature between the two layers. This simple yet powerful formula expresses some important fundamental truths about how ocean heat transport works:
Heat transport can clearly occur even when there is no net volume transport, due to correlations between the strength / direction of the flow and the water temperature.
The transport is proportional to the strength of the circulation, as measured by \(\psi\).
The transport is proportional to the temperature difference between the inflowing and outflowing water.
Micro-scale View¶
The integral budgets above illustrate the concept of heat conservation at the basin scale. We now move down-scale to consider an infintessimally small element of fluid. These differential equations are the most general and flexible way to describe the conservation of mass, heat, and salt.
Material Derivative¶
The “water parcel” is hypothetical, infinitesimally small fluid element. We imagine the fluid to be composed of an infinite continuum of such parcels, each following its own unique path. A fluid parcel position at a given time \(t\) is given by a three dimensional vector \(\mathbf{x}(x,y,z,t)\). The instantaneous rate of change of the position of such a fluid element defines the fluid velocity:
One way to do fluid mechanics is to keep track of all such fluid elements as they move around; this is called the Lagrangian approach. In Lagrangian fluid mechanics, the rate of change of some fluid property \(c\) is just \(dc / dt\); it is implicit that we are following the water parcel along its path through space. As you might imagine, Lagrangian fluid mechanics is very difficult because there is actually an infinite number of such paths, and the trajectories quickly become extremely complex. This approach is also incompatible with the way we usually measure the ocean, which involves taking samples at a fixed point in space.
The alternative is the Eulerian approach. Under this approach, the rate of change of a fluid parcel property is proportional to the local rate of change of that property, plus a contribution from the fluid flow transporting that property around (called advection). We can see this mathemtically by using the chain rule:
The quantity in parentheses is called the material derivative. To distinguish it from an ordinary or partial derivative, we often denote it with a capital \(D\):
It represents a rate of change following a fluid parcel, but in the Eulerian frame of reference.
Mass Conservation: Continuity Equation¶
The mass budget of an infinitesimally small fluid parcel is
This equation is called the continuity equation.
Using some vector calculus identities, it can be rewritten as.
or, using the definition of material derivative
Continuity Equation in Boussinesq Approximation¶
In the Boussinesq approximation, fluctuations in density are much smaller than the background density. If we expand the continuity equation interms of background and fluctuations, we obtain
The first terms is zero, because \(\rho_0\) is constant. Of the remaining nonzero terms, only one has a \(\rho_0\) in it. As a “first order” approximation, we find that
At this point, we are free to drop the \(\rho_0\) factor to give the Boussinesq volume continuity equation:
This is also called the incompressibility equation. In the Boussinesq approximation, volume conservation replaced mass conservation.
Heat Conservation¶
The left-hand side of the heat conservation equation, representing the rate of change of the heat content of a fluid parcel is
which we can rewrite using the continuity equation as
The right hand side, representing all non-conservative effects, can be written as the sum of the convergence of a molecular diffusive flux \(\mathbf{Q}_{diff}\) and a radiative flux \(Q_{rad}\):
(Note we have assumed that the radiative flux is only in the vertical direction, a very reasonable approximation for large-scale processes.)
The diffusive flux is given by Fick’s law of diffusion:
where \(T\) is the in-situ temperature and \(\kappa_T\) is the molectular diffusivity of heat. The air-sea heat flux acts as a boundary condition for the diffusive flux.
In the Boussinesq approximation, we replace the \(\rho\)’s above with \(\rho_0\) to obtain:
One complictation of this equation is that molecular diffusion acts on \(T\), not \(\Theta\). However, we will mostly be thinking about turbulent, rather than molecular, diffusion, for which this is not an issue.
Salt Conservation¶
Neglecting the exchange of salt with the surface, salinity is governed just by advection and diffusion
which reduces to
in the Boussinesq approximation.