Skip to content

Conversation

@jmaerz
Copy link
Collaborator

@jmaerz jmaerz commented Mar 20, 2025

…g layer thickness information. Addresses: #498 (comment). And fixing a diagnostics issue in case of kwrbioz_off=True

I branched from the second last PR before cgs was removed - not sure, if we shall do some v1.7.2 release candidate, where this can be merged in...

(Partially)
Closes #521

@jmaerz jmaerz self-assigned this Mar 20, 2025
@JorgSchwinger
Copy link
Contributor

To be honest, I do not understand the purpose of this. Why is it better to have the units in per square metre?

@jmaerz
Copy link
Collaborator Author

jmaerz commented Mar 20, 2025

Otherwise, you don't get the tendencies right, when interpolating to levitus - but also in time (due to changing layer thickness)... - see e.g. also water column DMS production terms. Initially, the purpose of the output was slightly different and your comment got me back to this - and since I am also interested in the budgeting of the terms, this is the correct way to do it (as far as I understand).

The global ocean volume integral for tendencies $T_{l,t,x}$ (the total change/flow) aren't the same for time $t$-varying layer volumes $V_{l,t,x}$:

$$T_\mathrm{total}\mathrm{[mol/s]}=\oint \frac{1}{N}\sum_{t=1}^N T_{l,t,x}V_{l,t,x} ~~~\neq~~~ \oint \bar{V_{l,x}}\frac{1}{N}\sum_{t=1}^N T_{l,t,x}~~~~\mathrm{with}: \bar{V_{l,x}}=\frac{1}{N}\sum_{t=1}^{N}V_{l,t,x}$$

if one only uses the mean volume over time (and similarly, when remapping to levitus depths). Since areas are not changing, we thus multiply with $dz$ (and post-processing with area).

@JorgSchwinger
Copy link
Contributor

I'm not sure (maybe I am misunderstanding something) - when accumulating layer fields, the changing layer thickness is taken into account by weighting with the layer thickness each time step in acclyr (and dividing by the average layer thickness in finlyr before writing the output).

If a field is interpolated to z-levels each time step this is not necessary. And I do not see a reason why it would be wrong to interpolate from changing isopycnals to z-layers and average the result. The interpolation procedure is conservative and this should apply to tendencies, too.

@JorgSchwinger
Copy link
Contributor

Yes, at least for acclyr the first part of you equation is implemented.

So the question is whether doing an the interpolation to constant z-levels and then summing up would change the budget. I somehow don't belive it at least not as long as the interpolation is a linear operation (which is is, I think).

@jmaerz
Copy link
Collaborator Author

jmaerz commented Mar 20, 2025

Hi @JorgSchwinger , I updated my comment by including an equation that briefly shows the issue. The problem is the correlation or lack thereof between changes in rates and changes in volumes of the layer boxes. It is similar to fluxes from one grid box to another and their budgeting, which is why we on the long term would like to have terms like $u\cdot C$, $v\cdot C$ and $w\cdot C$ (and mixing equivalents) as output in BLOM to enable correct budgeting (where we cannot simply use the mean of velocity times mean of concentrations).

@jmaerz
Copy link
Collaborator Author

jmaerz commented Mar 20, 2025

Ok, starting to get your point... - checking tmw.

@jmaerz jmaerz closed this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Volumetric rate output for the extended nitrogen cycle tendencies

2 participants