-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typos in sub-plume scale terms #29
Comments
@BrodiePearson any chance you have a latex version of this? I'm struggling to get mathjax going. |
my first gut feeling though is that I don't doubt this is wrong, but am pretty doubtful it will matter, even for wind driven cases, but could be wrong for sure |
@BrodiePearson I got the mathjax to work. so disregard above. The one critical assumption we need to verify if the code currently does consider \sigma to be the downwelling plume. I'm not sure that is true. I don't know if we actually switched around. My recollection is we never switched. Is this something you all can check? |
@vanroekel It looks like it was switched round to be downwelling plume area in this PR in 2021. The Lappen and Randall formulation for upwelling plume area is: The ocean ADC code is
The ocean ADC code flips the middle sign to a plus, which makes |
Thanks for checking into it @BrodiePearson, given this I fully agree with your initial comment that these are indeed bugs. Are you or Amrapalli able to test the fixes? I'm not sure when Filipe or I can get to them |
@BrodiePearson and @vanroekel Few points to note here:
|
I think there are a couple of issues in the sub-plume terms in the$\overline{w'w'}$ , $\overline{w'T'}$ and $\overline{w'S'}$ budgets, but I first wanted to double check that these are typos rather than me simply missing some other element of the MPAS scheme that makes these formulations correct. Changing these terms doesn't have a significant impact in the convective cases, but it might be important when the sub-plume terms play a more active role (wind-driven mixing?).
The Lappen and Randall papers present the sub-plume terms for the$\overline{w'w'}$ budget (Eqs. 40 and 48 of their first paper) and the $\overline{w'T'}$ budget (Eq. 49 of their first paper and Eq. 27 of their second paper). Noting that our ocean ADC scheme uses $\sigma$ to represent downwelling plume area rather than the upwelling plume area used in LR papers, these equations in the ocean ADC scheme are:
where
Typos in the ADC scheme?
The ADC scheme looks like it is applying sub-plume terms that are different from the above formulations. The$\overline{w'w'}$ term seems to have the wrong sign, while the $\overline{w'T'}$ and $\overline{w's'}$ terms look like the LR formulation where $\sigma$ is the upwelling rather than downwelling plume area. The ocean ADC formulations are (with differences highlighted in red and the associated ADC code):
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Line 603 in aff0c19
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Lines 459 to 462 in aff0c19
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Lines 652 to 658 in aff0c19
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Line 1038 in aff0c19
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Line 1043 in aff0c19
Fixes
If the above is correct, the easiest fix would be to
Swumd
andwttend6
andwstend6
The text was updated successfully, but these errors were encountered: