Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a Stochastic Kinetic Energy Backscatter Scheme (SKEBS) where the amplitude of the backscatter is based on either the GM work rate and/or the viscous work rate (FrictWork). Each of these can be multiplied by a coefficient so that, e.g. the backscatter rate could be 50% of the GM work rate plus 20% of the viscous work rate. The vertical structure of the backscatter rate associated with GM is given by the EBT profile. The component that uses FrictWork has not been extensively tested, but it does run stably for at least few years.
This code was developed starting from Phil Pegion's branch. This PR may break the stochastic EPBL and SPPT schemes developed by @pjpegion.
If you don't use the external
stochastic_physics
package developed by Phil Pegion, Niraj Agarwal, and collaborators, the code calls a stub inconfig_src/externals/stochastic_physics/
that does nothing. To use the external package, replace the contents ofconfig_src/externals/stochastic_physics/
with the code at the link above. You can control the time and length scales of the random pattern through a namelist included ininput.nml
. An example is included below.New MOM_input parameters:
New available diagnostics:
Namelist example to control the stochastic physics package:
The only relevant parameters for stochastic backscatter are
OCNSKEB
which should be 1. Backscatter amplitude should be controlled by the MOM_input parameters above.OCNSKEB_LSCALE
is the characteristic wavelength of the backscatter in metersOCNSKEB_TAU
is the decorrelation time of the noise in sectionsISEED_OCNSKEB
is a seed for the random pattern generator. If using ensembles, this seed value should be changed across ensemble members.