Skip to content

Conversation

@mnlevy1981
Copy link
Contributor

When computing shear viscosity and diffusivity based on LMD94, no longer assume Prandtl number of one. Instead we add a Prandtl_shear variable (with a default value of 1) that users can configure similar to Ri_zero.

Note that the output from the shear test has changed -- we now include both Mdiff and Tdiff for LMD and both PP tests.

Fixes #104

When computing shear viscosity and diffusivity based on LMD94, no longer assume
Prandtl number of one. Instead we add a Prandtl_shear variable (with a default
value of 1) that users can configure similar to Ri_zero.

Note that the output from the shear test has changed -- we now include both
Mdiff and Tdiff for LMD and both PP tests. This first commit uses the default
Prandtl_shear = 1, so Mdiff = Tdiff (= previous Tdiff value) in the LMD test.
The next commit will change the test to use Prandtl_shear = 2.
@mnlevy1981
Copy link
Contributor Author

@gustavo-marques ran MOM6 tests with KPP and verified

  1. the branch is b4b.
  2. add "Prandtl_shear = 2.0" to the arguments of cvmix_init_shear() and that changes answer.
  3. added the get_param call. The default is to recover answers in 1) but I also tested recovering answers in 2).
  4. I checked your changes in src/shared and all looks good to me.

@mnlevy1981 mnlevy1981 merged commit 14939c5 into CVMix:master Apr 10, 2025
1 check passed
@mnlevy1981 mnlevy1981 deleted the add_shear_prandtl branch September 11, 2025 22:55
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.

Add a shear-mixing Prandtl number

1 participant