This week, Dakota and I had a good working session together thinking about our governing DO equation.

Afterwards, I spent some more time with the math and came up with the following equation:

\[\frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V = \mathrm{vertical\ mixing} + \mathrm{advection\ in} - \mathrm{advection\ out} + \\ \mathrm{primary\ production} - \mathrm{O_2\ consumed\ in\ nitrification} - \mathrm{water\ column\ respiration}\]

Where C is the concentration of DO in an arbitrary Puget Sound inlet. Details of the math are listed below.

Using this equation, it should be easier to work on hypothesis development. Each hypothesis could alter one or more of the terms on the RHS in the above equation. The net change on the RHS will tell us whether DO is likely to increase or decrease in an inlet. We can also compare the magnitude of the terms on the RHS between different inlets. (i.e. Inlet X has a lot of benthic respiration, but also much more vertical mixing compared to Inlet Y, so Inlet X has more DO than Inlet Y.)

However, I am already realizing that DO dynamics are much more complicated than this equation. For example, stronger currents can advect both oxygen and organic matter, which would alter the amount of respiration. I will need to think up a way of capturing this phenomenon.

I am also looking forward to really diving into research and hypothesis development/testing in the coming weeks. My classes are finally complete, and in two weeks I will be done with grading and travel. I’m hoping that my research progress will really pick up accordingly.


Derivation

Apologies, in-line latex isn’t working in the blog post :(

Consider the Puget Sound inlet depicted in Figure 1


Fig 1. Idealized Puget Sound inlet.


Figure 2 shows the main fluxes and sinks of oxygen in a control volume in this estuary. I have defined the control volume to extend laterally from channel edge to channel edge, and to extend vertically from the channel bottom to the interface (assuming 2-layer model).


Fig 2. Control volume with arrows indicating sources and sinks of oxygen.


Let C represent DO concentration.

Volume-integrated advection diffusion

We will begin by considering the advection-diffusion equation (“Convection–diffusion equation”,2024)

\[\frac{\partial C}{\partial t} = (\nabla \cdot \kappa \nabla C) - (\nabla \cdot \vec{u} C) + Q\]

where kappa is eddy diffusivity, u = (u,v,w) is the velocity vector, and Q represents our source and sink terms.

Note that the secont term on the RHS is the divergence of flux, where uC is the flux of DO.

Now let’s volume integrate our advection diffusion equation over our control volume:

\[\int_{CV} \frac{\partial C}{\partial t} \mathrm{d}V = \int_{CV} (\nabla \cdot \kappa \nabla C) \mathrm{d}V - \int_{CV} (\nabla \cdot \vec{u} C) \mathrm{d}V + \int_{CV} Q \mathrm{d}V\]

where the first term on the RHS is the volume-integrated diffusion, and the second term is the volume-integrated flux divergence.

Because we have a fixed control volume, we can simplify the LHS (Kundu and Cohen, 2004):

\[\int_{CV} \frac{\partial C}{\partial t} \mathrm{d}V = \frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V\]

Thus, we have:

\[\frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V = \int_{CV} (\nabla \cdot \kappa \nabla C) \mathrm{d}V - \int_{CV} (\nabla \cdot \vec{u} C) \mathrm{d}V + \int_{CV} Q \mathrm{d}V\]

Now we can invoke Gauss’ theorem to convert the diffusion and advection volume integrals into surface integrals (Kundu and Cohen, 2004):

\[\frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V = \oint (\kappa \nabla C \cdot \vec{n}) \mathrm{d}S - \oint (\vec{u}C \cdot \vec{n}) \mathrm{d}S + \int_{CV} Q \mathrm{d}V\]

The time rate of change of DO in the control volume is equal to the net diffusion of DO entering the volume, plus the net advection of DO into the volume, plus the volume-integrated sources and sinks.

Diffusion term

\[\int_{CV} (\nabla \cdot \kappa \nabla C) \mathrm{d}V = \kappa_H \bigg( \frac{\partial C}{\partial x} \Big|_{x = x_0 + \Delta x} - \frac{\partial C}{\partial x} \Big|_{x = x_0}\bigg) (\Delta y \Delta z) + \kappa_V \bigg( \frac{\partial C}{\partial z} \Big|_{z = - \xi} \bigg) (\Delta x \Delta y)\]

where we have assumed there is no diffusion in y, since the edges of the domain extend to the channel edges. We also assume no diffusion at the bottom z=-H.

I have also assumed two different eddy diffusivities. K_H is the horizontal eddy diffusivity and K_V is the vertical eddy diffusivity.

Assuming that the water column is vertically stratified, then I expect K_H » K_V.

However, I also assume that there is a strong oxygen gradient with the oxycline roughly aligned with the pycnocline. In which case, I expect the horizontal gradient of C to be much smaller than the vertical gradient of C.

Furthermore, I anticipate that the horizontal advection will usually be much larger than the horizontal diffusion. Thus, the most significant diffusion term is the vertical term. This results in:

\[\int_{CV} (\nabla \cdot \kappa \nabla C) \mathrm{d}V \approx \kappa_V \bigg( \frac{\partial C}{\partial z} \Big|_{z = - \xi} \bigg) (\Delta x \Delta y)\]

However, this thought process feels rather hand-wavy to me, and I’ll revisit some notes to see if I can come up with better justification.

Advection term

Our y-boundaries are closed boundaries, so there is no advection entering the control-volume laterally.

Let’s also assume H/L « 1, so that w « u. Then our advection term becomes:

\[\oint (\vec{u}C \cdot \vec{n}) \mathrm{d}S = \big( u(x_0)C(x_0) - u(x_0+\Delta x)C(x_0+\Delta x) \big) (\Delta y \Delta z) = (u_{out}C_{out} - u_{in}C_{in})(\Delta y \Delta z)\]

Source and sink terms

Our main source terms come from photosynthesis, and is only applicable if the water column is shallow enough such that light reaches the deep water.

We have two sink terms. First, we have DO lost to water column respiration. Second, we have DO lost during oxidation of NH4 to NO3 (Fennel et al., 2013).

Fennel et al. (2013) developed the following equation to represent the biogeochemical dynamics of oxygen:

\[\frac{\partial C}{\partial t} = \mu_{max} f(I) \big[ L_{NO_3}R_{O_2:NO_3} + L_{NH_4}R_{O_2:NH_4}\big] Phy - ... \\ 2 \hat{n} NH_4 - R_{O_2:NH_4}\big[ l\ Zoo + \hat{r}_{SD}\ SDet + \hat{r}_{LD}\ LDet \big]\]

Where the first term on the RHS is the oyxgen production from photosynthesis, the second term is the oxygen used during oxidation of NH4 to NO3, and the last term represents respiration from zooplankton and from microbes that break down detritus.

mu_max is the maximum growth rate of phytoplankton and is a constant (Fennel et al., 2013). f(I) is a light limitation term that varies with depth (Fennel et al., 2006; Fennel et al., 2013). L_NO3 and L_NH4 are Michaelis-Menton nutrient limitations which vary with nutrient concentration (Fennel et al., 2006). R terms are constants and indicate mole ratios of oxygen to nutrients (Fennel et al., 2013). n-hat is nitrification flux and varies with depth (Fennel et al., 2006). l is a constant zooplankton excretion rate (Fennel et al., 2013). The r-hat terms are remineralization rates and vary with DO concentration (Fennel et al., 2013).

These are extremely complicated quations. The zooplankton, phytoplankton, detritus, and nutrient concentrations all depend on each other, most of their rate equations are implicit, and they all are influenced by advection. Rather than diving too deep into this mathematical mess, let’s stick with the single biogeochemical equation for oxygen at the beginning of this section, and for now keep in mind that these other terms each have their own source/sink and advective dynamics.

Now, let’s volume integrate our biogeochemisty source/sink equation:

\[\frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V= \mu_{max} \int_{CV} f(I) \big[ L_{NO_3}R_{O_2:NO_3} + L_{NH_4}R_{O_2:NH_4}\big] Phy \ \mathrm{d}V - ... \\ 2 \int_{CV} \hat{n} NH_4 \ \mathrm{d}V - R_{O_2:NH_4} \int_{CV} \big[ l\ Zoo + \hat{r}_{SD}\ SDet + \hat{r}_{LD}\ LDet \big] \mathrm{d}V\]

If organic matter (phytoplankton, detritus) reaches the benthos, then they are remineralized immediately (Fennel et al., 2006). In these cases, there is an additional benthic oxygen loss term that is not represented in the equation above. From my understanding, the amount of DO remineralized is related to the amount of organic matter by stoichiometry.

Putting it all together

Combining everything together, we have:

\[\frac{\partial}{\partial t}\int_{CV} C \mathrm{d}V = \kappa_V \bigg( \frac{\partial C}{\partial z} \Big|_{z = - \xi} \bigg) (\Delta x \Delta y) + (u_{in}C_{in} - u_{out}C_{out})(\Delta y \Delta z) + ... \\ \mu_{max} \int_{CV} f(I) \big[ L_{NO_3}R_{O_2:NO_3} + L_{NH_4}R_{O_2:NH_4}\big] Phy \ \mathrm{d}V - ... \\ 2 \int_{CV} \hat{n} NH_4 \ \mathrm{d}V - R_{O_2:NH_4} \int_{CV} \big[ l\ Zoo + \hat{r}_{SD}\ SDet + \hat{r}_{LD}\ LDet \big] \mathrm{d}V\]

References

Fennel, K., Wilkin, J., Levin, J., Moisan, J., O’Reilly, J., & Haidvogel, D. (2006). Nitrogen cycling in the Middle Atlantic Bight: Results from a three‐dimensional model and implications for the North Atlantic nitrogen budget. Global Biogeochemical Cycles, 20(3).

Fennel, K., Hu, J., Laurent, A., Marta‐Almeida, M., & Hetland, R. (2013). Sensitivity of hypoxia predictions for the northern Gulf of Mexico to sediment oxygen consumption and model nesting. Journal of Geophysical Research: Oceans, 118(2), 990-1002.

Kundu, P.K. and Cohen, I.M. (2004) Fluid Mechanics. Elsevier Academic Press, Cambridge.

Convection–diffusion equation. (2024, March 13). In Wikipedia. https://en.wikipedia.org/wiki/Convection%E2%80%93diffusion_equation