forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error in setting background viscosity #238
Comments
Thanks for reporting this. |
dcherian
added a commit
to dcherian/MOM6
that referenced
this issue
Mar 22, 2023
Add constant background viscosity KD to latitudinal dependent formulations, if any. Closes NCAR#238
As update, after discussing with Alper and Gustavo, we decided to do something similar for diffusivity where we add the background field to whatever See #239 and ESCOMP/MOM_interface#134, ESCOMP/MOM_interface#135 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 311 to 315 in 9786710
Kd_lay
andKv_slow
are set toKD
andKV
; effectively these are background values and the defaults areKD=2e-5, KV=1e-4
Later
calculate_bkgnd_mixing
calculates background valuesKv_bkgnd
andKd_bkgnd
(I haveHORIZ_VARYING_BACKGROUND=TRUE
) and assignsKd_lay_2d
andKd_int_2d
MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 409 to 410 in 9786710
Kd_bkgnd
is assigned toKd_lay
in there, overwriting theKD
values set earlier.Now back in
MOM_set_diffusivity
:Kv_bkgnd
is added toKv_slow
(≡KD
):MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 411 to 414 in 9786710
This is NOT what's being done with diffusivity where
Kd_lay
is set bycalculate_bkgnd_mixing
.It is wrong because we've added two different "background" viscosity formulations. We should be overwriting
Kv_slow
withKv_bkgnd
.Setting
KD=0, KV=0
makes things work like I expected.EDIT: For the record, here's the image that shows the issue (mean profiles at 0N, 140W; averaged over years 46-68), the prandtl number (visc/diff) is ~200 below the EUC. We want it to be in the 1-10 range.
The text was updated successfully, but these errors were encountered: