MOM_energetic_PBL module reference
Energetically consistent planetary boundary layer parameterization
Data Types
This control structure holds parameters for the MOM_energetic_PBL module |
|
Report the average number of ePBL iterations for debugging. |
Functions/Subroutines
This subroutine determines the diffusivities from the integrated energetics mixed layer model. It assumes that heating, cooling and freshwater fluxes have already been applied. All calculations are done implicitly, and there is no stability limit on the time step. |
|
This subroutine determines the diffusivities from the integrated energetics mixed layer model for a single column of water. |
|
This subroutine determines the diffusivities from a bottom boundary layer version of the integrated energetics mixed layer model for a single column of water. |
|
Gives shape function that sets the vertical structure of OSBL diffusivity as described in Sane et al. 2025 |
|
Gives velocity scale (v_0) using equations that approximate neural network of Sane et al. 2023 |
|
Gives velocity scale (v_0^h) using equations that with using boundary layer depth as one of its inputs These equations are different than those set in get_eqdisc_v0 subroutine |
|
Determine a scaling factor that accounts for the exponential decay of turbulent kinetic energy from a boundary source and the assumption that an increase in the diffusivity at an interface causes a linearly increasing buoyancy flux going from 0 at the bottom to a peak at the interface, and then going back to 0 atop the layer above. Where this factor increases the available mixing TKE, it is only compensating for the fact that the TKE has already been reduced by the same exponential decay rate. ha and hb must be non-negative, and this function generally increases with hb and decreases with ha. |
|
This subroutine calculates the change in potential energy and or derivatives for several changes in an interface's diapycnal diffusivity times a timestep. |
|
This subroutine directly calculates the an increment in the diapycnal diffusivity based on the change in potential energy within a timestep, subject to bounds on the possible change in diffusivity, returning both the added diffusivity and the realized potential energy change, and optionally also the maximum change in potential energy that would be realized for an infinitely large diffusivity. |
|
This subroutine calculates the change in potential energy and or derivatives for several changes in an interface's diapycnal diffusivity times a timestep using the original form used in the first version of ePBL. |
|
This subroutine finds the mstar value for ePBL |
|
This subroutine modifies the mstar value if the Langmuir number is present |
|
Copies the ePBL active mixed layer depth into MLD, in units of [Z ~> m] unless other units are specified. |
|
This subroutine initializes the energetic_PBL module |
|
Clean up and deallocate memory associated with the energetic_PBL module. |
Detailed Description
By Robert Hallberg, 2015.
This file contains the subroutine (energetic_PBL) that uses an integrated boundary layer energy budget (like a bulk- or refined- bulk mixed layer scheme), but instead of homogenizing this model calculates a finite diffusivity and viscosity, which in this regard is conceptually similar to what is done with KPP or various two-equation closures. However, the scheme that is implemented here has the big advantage that is entirely implicit, but is simple enough that it requires only a single vertical pass to determine the diffusivity. The development of bulk mixed layer models stems from the work of various people, as described in the review paper by [61]. The work here draws in with particular on the form for TKE decay proposed by [64], with an extension to a refined bulk mixed layer as described in Hallberg ([59]). The physical processes portrayed in this subroutine include convectively driven mixing and mechanically driven mixing. Unlike boundary-layer mixing, stratified shear mixing is not a one-directional turbulent process, and it is dealt with elsewhere in the MOM6 code within the module MOM_kappa_shear.F90. It is assumed that the heat, mass, and salt fluxes have been applied elsewhere, but that their implications for the integrated TKE budget have been captured in an array that is provided as an argument to this subroutine. This is a full 3-d array due to the effects of penetrating shortwave radiation.
Type Documentation
- type, public :: energetic_PBL_CS
This control structure holds parameters for the MOM_energetic_PBL module
- Parameters
initialized
True if this control structure has been initialized.
VonKar
The von Karman coefficient as used in the ePBL module [nondim]
omega
The Earth's rotation rate [T-1 ~> s-1].
omega_frac
When setting the decay scale for turbulence, use this fraction of the absolute rotation rate blended with the local value of f, as sqrt((1-omega_frac)*f^2 + omega_frac*4*omega^2) [nondim].
nstar
The fraction of the TKE input to the mixed layer available to drive entrainment [nondim]. This quantity is the vertically integrated buoyancy production minus the vertically integrated dissipation of TKE produced by buoyancy.
Use_MLD_iteration
If true, use the proximity to the bottom of the actively turbulent surface boundary layer to constrain the mixing lengths.
MLD_iteration_guess
False to default to guessing half the ocean depth for the first iteration.
MLD_bisection
If true, use bisection with the iterative determination of the self-consistent mixed layer depth. Otherwise use the false position after a maximum and minimum bound have been evaluated and the returned value from the previous guess or bisection before this.
MLD_iter_bug
If true use buggy logic that gives the wrong bounds for the next iteration when successive guesses increase by exactly EPBL_MLD_TOLERANCE.
max_MLD_its
The maximum number of iterations that can be used to find a self-consistent mixed layer depth with Use_MLD_iteration.
MixLenExponent
Exponent in the mixing length shape-function [nondim]. 1 is law-of-the-wall at top and bottom, 2 is more KPP like.
MKE_to_TKE_effic
The efficiency with which mean kinetic energy released by mechanically forced entrainment of the mixed layer is converted to TKE, times conversion factors between the natural units of mean kinetic energy and those used for TKE [Z2 L-2 ~> nondim].
direct_calc
If true and there is no conversion from mean kinetic energy to ePBL turbulent kinetic energy, use a direct calculation of the diffusivity that is supported by a given energy input instead of the more general but slower iterative solver.
ustar_min
A minimum value of ustar to avoid numerical problems [Z T-1 ~> m s-1]. If the value is small enough, this should not affect the solution.
Ekman_scale_coef
A nondimensional scaling factor controlling the inhibition of the diffusive length scale by rotation [nondim]. Making this larger decreases the diffusivity in the planetary boundary layer.
transLay_scale
A scale for the mixing length in the transition layer at the edge of the boundary layer as a fraction of the boundary layer thickness [nondim]. The default is 0, but a value of 0.1 might be better justified by observations.
MLD_tol
A tolerance for determining the boundary layer thickness when Use_MLD_iteration is true [Z ~> m].
min_mix_len
The minimum mixing length scale that will be used by ePBL [Z ~> m]. The default (0) does not set a minimum.
wT_scheme
An enumerated value indicating the method for finding the turbulent velocity scale. There are currently two options: wT_mwT_from_cRoot_TKE is the original (TKE_remaining)^1/3 wT_from_RH18 is the version described by Reichl and Hallberg, 2018
wstar_ustar_coef
A ratio relating the efficiency with which convectively released energy is converted to a turbulent velocity, relative to mechanically forced turbulent kinetic energy [nondim]. Making this larger increases the diffusivity.
vstar_surf_fac
If (wT_scheme == wT_from_RH18) this is the proportionality coefficient between ustar and the surface mechanical contribution to vstar [nondim]
vstar_scale_fac
An overall nondimensional scaling factor for vstar [nondim]. Making this larger increases the diffusivity.
mstar_scheme
An encoded integer to determine which formula is used to set mstar
BBL_mstar_scheme
An encoded integer to determine which formula is used to set mstar
mstar_cap
Since mstar is restoring undissipated energy to mixing, there must be a cap on how large it can be [nondim]. This is definitely a function of latitude (Ekman limit), but will be taken as constant for now.
TKE_decay
The ratio of the natural Ekman depth to the TKE decay scale [nondim].
fixed_mstar
mstar is the ratio of the friction velocity cubed to the TKE available to drive entrainment [nondim]. This quantity is the vertically integrated shear production minus the vertically integrated dissipation of TKE produced by shear. This value is used if the option for using a fixed mstar is used.
BBL_fixed_mstar
Similar to fixed_mstar, but for the bottom boundary layer
C_Ek
mstar Coefficient in rotation limit for EPBL_MSTAR_SCHEME=OM4 [nondim]
mstar_coef
mstar coefficient in rotation/stabilizing balance for EPBL_MSTAR_SCHEME=OM4 [nondim]
RH18_mstar_cN1
mstar_N coefficient 1 (outer-most coefficient for fit) [nondim]. Value of 0.275 in RH18. Increasing this coefficient increases mechanical mixing for all values of Hf/ust, but is most effective at low values (weakly developed OSBLs).
RH18_mstar_cN2
mstar_N coefficient 2 (coefficient outside of exponential decay) [nondim]. Value of 8.0 in RH18. Increasing this coefficient increases mstar for all values of HF/ust, with a consistent affect across a wide range of Hf/ust.
RH18_mstar_cN3
mstar_N coefficient 3 (exponential decay coefficient) [nondim]. Value of -5.0 in RH18. Increasing this increases how quickly the value of mstar decreases as Hf/ust increases.
RH18_mstar_cS1
mstar_S coefficient for RH18 in stabilizing limit [nondim]. Value of 0.2 in RH18.
RH18_mstar_cS2
mstar_S exponent for RH18 in stabilizing limit [nondim]. Value of 0.4 in RH18.
mstar_convect_coef
Factor to reduce mstar when statically unstable [nondim].
Use_LT
Flag for using LT in Energy calculation
LT_enhance_form
Integer for Enhancement functional form (various options)
LT_enhance_coef
Coefficient in fit for Langmuir Enhancement [nondim]
LT_enhance_exp
Exponent in fit for Langmuir Enhancement [nondim]
LaC_MLD_Ek
Coefficient for Langmuir number modification based on the ratio of the mixed layer depth over the Ekman depth [nondim].
LaC_MLD_Ob_stab
Coefficient for Langmuir number modification based on the ratio of the mixed layer depth over the Obukhov depth with stabilizing forcing [nondim].
LaC_Ek_Ob_stab
Coefficient for Langmuir number modification based on the ratio of the Ekman depth over the Obukhov depth with stabilizing forcing [nondim].
LaC_MLD_Ob_un
Coefficient for Langmuir number modification based on the ratio of the mixed layer depth over the Obukhov depth with destabilizing forcing [nondim].
LaC_Ek_Ob_un
Coefficient for Langmuir number modification based on the ratio of the Ekman depth over the Obukhov depth with destabilizing forcing [nondim].
Max_Enhance_M
The maximum allowed LT enhancement to the mixing [nondim].
eqdisc
Uses machine learned shape function
eqdisc_v0
Uses machine learned velocity scale
eqdisc_v0h
Uses machine learned velocity scale that uses boundary layer depth as input
v0_lower_cap
Lower cap to prevent v0 from attaining anomlously low values [Z T-1 ~> m s-1]
v0_upper_cap
Upper cap to prevent v0 from attaining anomlously high values [Z T-1 ~> m s-1]
f_lower
Lower cap of |f| i.e. absolute of Coriolis parameter [T-1 ~> s-1] Used only in get_eqdisc_v0 subroutine. Default is 0.1deg Lat
bflux_lower_cap
Lower cap for capping blfux [Z2 T-3 ~> m2 s-3]
bflux_upper_cap
Upper cap for capping blfux [Z2 T-3 ~> m2 s-3]
sigma_max_lower_cap
Lower cap to prevent sigma_max from attaining low values [nondim]
sigma_max_upper_cap
Upper cap to prevent sigma_max from attaining high values [nondim]
Eh_upper_cap
Upper cap to prevent Eh = hf/(u__*) from attaining high values [nondim]
Lh_cap
Cap to prevent Lh = h/Monin_Obukhov_depth from attaining beyond extreme values [nondim]
shape_function
shape function used in machine learned diffusivity [nondim]
ML_c
Array of non-dimensional constants used in machine learned (ML) diffusivity [nondim]
shape_function_epsilon
An small value of shape_function below the boundary layer depth [nondim]
ePBL_BBL_effic
The efficiency of bottom boundary layer mixing via ePBL driven by the bottom drag dissipation of mean kinetic energy, times conversion factors between the natural units of mean kinetic energy and those used for TKE [Z2 L-2 ~> nondim].
ePBL_tidal_effic
The efficiency of bottom boundary layer mixing via ePBL driven by the bottom drag dissipation of tides, times conversion factors between the natural units of mean kinetic energy and those used for TKE [Z2 L-2 ~> nondim].
Use_BBLD_iteration
If true, use the proximity to the top of the actively turbulent bottom boundary layer to constrain the mixing lengths.
TKE_decay_BBL
The ratio of the natural Ekman depth to the TKE decay scale for bottom boundary layer mixing [nondim]
min_BBL_mix_len
The minimum mixing length scale that will be used by ePBL in the bottom boundary layer mixing [Z ~> m]. The default (0) does not set a minimum.
MixLenExponent_BBL
Exponent in the bottom boundary layer mixing length shape-function [nondim]. 1 is law-of-the-wall at top and bottom, 2 is more KPP like.
BBLD_tol
The tolerance for the iteratively determined bottom boundary layer depth [Z ~> m]. This is only used with USE_MLD_ITERATION.
max_BBLD_its
The maximum number of iterations that can be used to find a self-consistent bottom boundary layer depth.
wT_scheme_BBL
An enumerated value indicating the method for finding the bottom boundary layer turbulent velocity scale. There are currently two options: wT_mwT_from_cRoot_TKE is the original (TKE_remaining)^1/3 wT_from_RH18 is the version described by Reichl and Hallberg, 2018
vstar_scale_fac_BBL
An overall nondimensional scaling factor for wT in the bottom boundary layer [nondim]. Making this larger increases the bottom boundary layer diffusivity.", &
vstar_surf_fac_BBL
If (wT_scheme_BBL == wT_from_RH18) this is the proportionality coefficient between ustar and the bottom boundayer layer mechanical contribution to vstar [nondim]
Ekman_scale_coef_BBL
A nondimensional scaling factor controlling the inhibition of the diffusive length scale by rotation in the bottom boundary layer [nondim]. Making this larger decreases the bottom boundary layer diffusivity.
decay_adjusted_BBL_TKE
If true, include an adjustment factor in the bottom boundary layer energetics that accounts for an exponential decay of TKE from a near-bottom source and an assumed piecewise linear linear profile of the buoyancy flux response to a change in a diffusivity.
BBL_effic_bug
If true, overestimate the efficiency of the non-tidal ePBL bottom boundary layer diffusivity by a factor of 1/sqrt(CDRAG), which is often a factor of about 18.3.
ePBL_BBL_use_mstar
If true, use an mstar*ustar^3 paramaterization to get the TKE available to drive mixing in the bottom boundary layer version of ePBL. Otherwise, use the meanflow energy loss to bottom drag scaled by a constant efficiency.
options_diff
If positive, this is a coded integer indicating a pair of settings whose differences are diagnosed in a passive diagnostic mode via extra calls to ePBL_column. If this is 0 or negative no extra calls occur.
Time
A pointer to the ocean model's clock.
TKE_diagnostics
If true, diagnostics of the TKE budget are being calculated.
answer_date
The vintage of the order of arithmetic and expressions in the ePBL calculations. Values below 20190101 recover the answers from the end of 2018, while higher values use updated and more robust forms of the same expressions. Values below 20240101 use A**(1./3.) to estimate the cube root of A in several expressions, while higher values use the integer root function cuberoot(A) and therefore can work with scaled variables.
orig_PE_calc
If true, the ePBL code uses the original form of the potential energy change code. Otherwise, it uses a newer version that can work with successive increments to the diffusivity in upward or downward passes.
debug
If true, write verbose checksums for debugging purposes.
diag
A structure that is used to regulate the timing of diagnostic output.
ML_depth
The mixed layer depth determined by active mixing in ePBL, which may be used for the first guess in the next time step [H ~> m or kg m-2]
BBL_depth
The bottom boundary layer depth determined by active mixing in ePBL [H ~> m or kg m-2]
sum_its
The total number of iterations and columns worked on
id_Kd_ePBL_col_by_col
Diagnostic IDs
id_ML_depth
Diagnostic IDs
id_hML_depth
Diagnostic IDs
id_TKE_wind
Diagnostic IDs
id_TKE_mixing
Diagnostic IDs
id_ustar_ePBL
Diagnostic IDs
id_bflx_ePBL
Diagnostic IDs
id_TKE_MKE
Diagnostic IDs
id_TKE_conv
Diagnostic IDs
id_TKE_forcing
Diagnostic IDs
id_TKE_mech_decay
Diagnostic IDs
id_TKE_conv_decay
Diagnostic IDs
id_Mixing_Length
Diagnostic IDs
id_Velocity_Scale
Diagnostic IDs
id_Kd_BBL
Diagnostic IDs
id_BBL_Mix_Length
Diagnostic IDs
id_BBL_Vel_Scale
Diagnostic IDs
id_TKE_BBL
Diagnostic IDs
id_TKE_BBL_mixing
Diagnostic IDs
id_TKE_BBL_decay
Diagnostic IDs
id_ustar_BBL
Diagnostic IDs
id_bflx_BBL
Diagnostic IDs
id_BBL_decay_scale
Diagnostic IDs
id_BBL_depth
Diagnostic IDs
id_mstar_sfc
Diagnostic IDs
id_mstar_BBL
Diagnostic IDs
id_LA_mod
Diagnostic IDs
id_LA
Diagnostic IDs
id_mstar_LT
Diagnostic IDs
id_opt_diff_Kd_ePBL
Diagnostic IDs
id_opt_maxdiff_Kd_ePBL
Diagnostic IDs
id_opt_diff_hML_depth
Diagnostic IDs
- type, public :: ePBL_column_diags
Report the average number of ePBL iterations for debugging.
A type for conveniently passing around ePBL diagnostics for a column.
- Parameters
dTKE_conv
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_forcing
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_wind
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_mixing
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_MKE
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_mech_decay
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_conv_decay
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_BBL
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_BBL_decay
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
dTKE_BBL_mixing
Local column copies of energy change diagnostics, all in [R Z3 T-3 ~> W m-2].
LA
The value of the Langmuir number [nondim]
LAmod
The modified Langmuir number by convection [nondim]
mstar
The value of mstar used in ePBL [nondim]
mstar_BBL
The value of mstar used in ePBL BBL [nondim]
mstar_LT
The portion of mstar due to Langmuir turbulence [nondim]
OBL_its
The number of iterations used to find a self-consistent surface boundary layer depth
BBL_its
The number of iterations used to find a self-consistent bottom boundary layer depth
Functions/Subroutine Documentation
- subroutine energetic_PBL(h_3d, u_3d, v_3d, tv, fluxes, visc, dt, Kd_int, G, GV, US, CS, stoch_CS, dSV_dT, dSV_dS, TKE_forced, buoy_flux, BBL_buoy_flux, Waves)
This subroutine determines the diffusivities from the integrated energetics mixed layer model. It assumes that heating, cooling and freshwater fluxes have already been applied. All calculations are done implicitly, and there is no stability limit on the time step.
- Parameters
G [inout]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
h_3d [inout]
Layer thicknesses [H ~> m or kg m-2].
u_3d [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
v_3d [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
dSV_dT [in]
The partial derivative of in-situ specific volume with potential temperature [R-1 C-1 ~> m3 kg-1 degC-1].
dSV_dS [in]
The partial derivative of in-situ specific volume with salinity [R-1 S-1 ~> m3 kg-1 ppt-1].
TKE_forced [in]
The forcing requirements to homogenize the forcing that has been applied to each layer [R Z3 T-2 ~> J m-2].
tv [inout]
A structure containing pointers to any available thermodynamic fields. Absent fields have NULL ptrs.
fluxes [inout]
A structure containing pointers to any possible forcing fields. Unused fields have NULL ptrs.
visc [in]
Structure with vertical viscosities, BBL properties and related fields
dt [in]
Time increment [T ~> s].
Kd_int [out]
The diagnosed diffusivities at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
CS [inout]
Energetic PBL control structure
buoy_flux [in]
The surface buoyancy flux [Z2 T-3 ~> m2 s-3].
BBL_buoy_flux [in]
The bottom buoyancy flux [Z2 T-3 ~> m2 s-3].
Waves
Waves control structure for Langmuir turbulence
stoch_CS
The control structure returned by a previous
Callees call graph
Text view
mom_energetic_pbl::energetic_pbl → mom_checksums::interface::hchksum
mom_energetic_pbl::energetic_pbl → mom_diag_mediator::interface::post_data
mom_energetic_pbl::energetic_pbl → mom_diag_mediator::post_data_3d_by_column
mom_energetic_pbl::energetic_pbl → mom_diag_mediator::post_data_3d_final
mom_energetic_pbl::energetic_pbl → mom_energetic_pbl::epbl_bbl_column
mom_energetic_pbl::energetic_pbl → mom_energetic_pbl::epbl_column
mom_energetic_pbl::energetic_pbl → mom_error_handler::mom_error
mom_energetic_pbl::energetic_pbl → mom_interface_heights::interface::thickness_to_dz
Callers call graph
- subroutine ePBL_column(h, dz, u, v, T0, S0, dSV_dT, dSV_dS, SpV_dt, TKE_forcing, B_flux, absf, u_star, u_star_mean, mech_TKE_in, dt, MLD_io, Kd, mixvel, mixlen, GV, US, CS, eCD, Waves, G, i, j, TKE_gen_stoch, TKE_diss_stoch)
This subroutine determines the diffusivities from the integrated energetics mixed layer model for a single column of water.
- Parameters
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
h [in]
Layer thicknesses [H ~> m or kg m-2].
dz [in]
The vertical distance across layers [Z ~> m].
u [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
v [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
T0 [in]
The initial layer temperatures [C ~> degC].
S0 [in]
The initial layer salinities [S ~> ppt].
dSV_dT [in]
The partial derivative of in-situ specific volume with potential temperature [R-1 C-1 ~> m3 kg-1 degC-1].
dSV_dS [in]
The partial derivative of in-situ specific volume with salinity [R-1 S-1 ~> m3 kg-1 ppt-1].
SpV_dt [in]
Specific volume interpolated to interfaces divided by dt or 1.0 / (dt * Rho0), times conversion factors for answer dates before 20240101 in [m3 Z-3 R-1 T2 s-3 ~> m3 kg-1 s-1] or without the conversion factors for answer dates of 20240101 and later in [R-1 T-1 ~> m3 kg-1 s-1], used to convert local TKE into a turbulence velocity cubed.
TKE_forcing [in]
The forcing requirements to homogenize the forcing that has been applied to each layer [R Z3 T-2 ~> J m-2].
B_flux [in]
The surface buoyancy flux [Z2 T-3 ~> m2 s-3]
absf [in]
The absolute value of the Coriolis parameter [T-1 ~> s-1].
u_star [in]
The surface friction velocity [Z T-1 ~> m s-1].
u_star_mean [in]
The surface friction velocity without any contribution from unresolved gustiness [Z T-1 ~> m s-1].
mech_TKE_in [in]
The mechanically generated turbulent kinetic energy available for mixing over a time step before the application of the efficiency in mstar. [R Z3 T-2 ~> J m-2].
MLD_io [inout]
A first guess at the mixed layer depth on input, and the calculated mixed layer depth on output [Z ~> m]
dt [in]
Time increment [T ~> s].
Kd [out]
The diagnosed diffusivities at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
mixvel [out]
The mixing velocity scale used in Kd [Z T-1 ~> m s-1].
mixlen [out]
The mixing length scale used in Kd [Z ~> m].
CS [in]
Energetic PBL control structure
eCD [inout]
A container for passing around diagnostics.
Waves
Waves control structure for Langmuir turbulence
G [in]
The ocean's grid structure.
i [in]
The i-index to work on (used for Waves)
j [in]
The j-index to work on (used for Waves)
TKE_gen_stoch [in]
random factor used to perturb TKE generation [nondim]
TKE_diss_stoch [in]
random factor used to perturb TKE dissipation [nondim]
Callees call graph
Text view
mom_energetic_pbl::epbl_column → mom_energetic_pbl::find_kd_from_pe_chg
mom_energetic_pbl::epbl_column → mom_energetic_pbl::find_mstar
mom_energetic_pbl::epbl_column → mom_energetic_pbl::find_pe_chg
mom_energetic_pbl::epbl_column → mom_energetic_pbl::find_pe_chg_orig
mom_energetic_pbl::epbl_column → mom_energetic_pbl::get_eqdisc_v0
mom_energetic_pbl::epbl_column → mom_energetic_pbl::get_eqdisc_v0h
mom_energetic_pbl::epbl_column → mom_energetic_pbl::kappa_eqdisc
mom_energetic_pbl::epbl_column → mom_intrinsic_functions::cuberoot
mom_energetic_pbl::epbl_column → mom_wave_interface::get_langmuir_number
- subroutine ePBL_BBL_column(h, dz, u, v, T0, S0, dSV_dT, dSV_dS, SpV_dt, absf, dt, Kd, BBL_TKE_in, u_star_BBL, u_star_BBL_z_t, b_flux_BBL, Kd_BBL, BBLD_io, mixvel_BBL, mixlen_BBL, GV, US, CS, eCD)
This subroutine determines the diffusivities from a bottom boundary layer version of the integrated energetics mixed layer model for a single column of water.
- Parameters
GV [in]
The ocean's vertical grid structure.
h [in]
Layer thicknesses [H ~> m or kg m-2].
dz [in]
The vertical distance across layers [Z ~> m].
u [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
v [in]
Zonal velocities interpolated to h points [L T-1 ~> m s-1].
T0 [in]
The initial layer temperatures [C ~> degC].
S0 [in]
The initial layer salinities [S ~> ppt].
dSV_dT [in]
The partial derivative of in-situ specific volume with potential temperature [R-1 C-1 ~> m3 kg-1 degC-1].
dSV_dS [in]
The partial derivative of in-situ specific volume with salinity [R-1 S-1 ~> m3 kg-1 ppt-1].
SpV_dt [in]
Specific volume interpolated to interfaces divided by dt (if non-Boussinesq) or 1.0 / (dt * Rho0), in [R-1 T-1 ~> m3 kg-1 s-1], used to convert local TKE into a turbulence velocity cubed.
absf [in]
The absolute value of the Coriolis parameter [T-1 ~> s-1].
dt [in]
Time increment [T ~> s].
Kd [in]
The diffusivities at interfaces due to previously applied mixing processes [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
BBL_TKE_in [in]
The mechanically generated turbulent kinetic energy available for bottom boundary layer mixing within a time step [R Z3 T-2 ~> J m-2].
u_star_BBL [in]
The bottom boundary layer friction velocity in thickness flux units [H T-1 ~> m s-1 or kg m-2 s-1]
u_star_BBL_z_t [in]
The bottom boundary layer friction velocity converted to length flux units [Z T-1 ~> m s-1]
b_flux_BBL [in]
The bottom boundary layer buoyancy flux
Kd_BBL [out]
The bottom boundary layer contribution to diffusivities at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
BBLD_io [inout]
A first guess at the bottom boundary layer depth on input, and the calculated bottom boundary layer depth on output [Z ~> m]
mixvel_BBL [out]
The profile of boundary layer turbulent mixing velocities [Z T-1 ~> m s-1]
mixlen_BBL [out]
The profile of bottom boundary layer turbulent mixing lengths [Z ~> m]
US [in]
A dimensional unit scaling type
CS [in]
Energetic PBL control structure
eCD [inout]
A container for passing around diagnostics.
mstar_BBL
the value of mstar for the bottom boundary layer [nondim]
dT_expect
Expected temperature changes [C ~> degC]
dS_expect
Expected salinity changes [S ~> ppt]
Callees call graph
Text view
mom_energetic_pbl::epbl_bbl_column → mom_energetic_pbl::exp_decay_tke_adjust
mom_energetic_pbl::epbl_bbl_column → mom_energetic_pbl::find_kd_from_pe_chg
mom_energetic_pbl::epbl_bbl_column → mom_energetic_pbl::find_mstar
mom_energetic_pbl::epbl_bbl_column → mom_energetic_pbl::find_pe_chg
mom_energetic_pbl::epbl_bbl_column → mom_intrinsic_functions::cuberoot
- subroutine kappa_eqdisc(shape_func, CS, GV, dz, absf, B_flux, u_star, MLD_guess)
Gives shape function that sets the vertical structure of OSBL diffusivity as described in Sane et al. 2025
- Parameters
GV [in]
The ocean's vertical grid structure.
CS [in]
Energetic PBL control struct
shape_func [inout]
shape function, [nondim]
absf [in]
The absolute value of f [T-1 ~> s-1]
u_star [in]
The surface friction velocity [Z T-1 ~> m s-1]
B_Flux [in]
The surface buoyancy flux [Z2 T-3 ~> m2 s-3]
dz [in]
The vertical distance across layers [Z ~> m]
MLD_guess [in]
Mixing Layer depth guessed/found for iteration [Z ~> m].
hz
depth variable, only used in this routine [H ~> m]
- subroutine get_eqdisc_v0(CS, absf, B_flux, u_star, v0_dummy)
Gives velocity scale (v_0) using equations that approximate neural network of Sane et al. 2023
- Parameters
CS [in]
Energetic PBL control struct
B_flux [in]
The surface buoyancy flux [Z2 T-3 ~> m2 s-3]
u_star [in]
The surface friction velocity [Z T-1 ~> m s-1]
absf [in]
The absolute value of f [T-1 ~> s-1].
v0_dummy [inout]
velocity scale v0, local variable [Z T-1 ~> m s-1]
- subroutine get_eqdisc_v0h(CS, B_flux, u_star, MLD_guess, v0_dummy)
Gives velocity scale (v_0^h) using equations that with using boundary layer depth as one of its inputs These equations are different than those set in get_eqdisc_v0 subroutine
- Parameters
CS [in]
Energetic PBL control struct
B_flux [in]
The surface buoyancy flux [Z2 T-3 ~> m2 s-3]
u_star [in]
The surface friction velocity [Z T-1 ~> m s-1]
MLD_guess [in]
boundary layer depth guessed/found for iteration [Z ~> m]
v0_dummy [inout]
velocity scale v0, local variable [Z T-1 ~> m s-1]
- function exp_decay_TKE_adjust(hb, ha, Idecay) result(TKE_to_PE_scale)
Determine a scaling factor that accounts for the exponential decay of turbulent kinetic energy from a boundary source and the assumption that an increase in the diffusivity at an interface causes a linearly increasing buoyancy flux going from 0 at the bottom to a peak at the interface, and then going back to 0 atop the layer above. Where this factor increases the available mixing TKE, it is only compensating for the fact that the TKE has already been reduced by the same exponential decay rate. ha and hb must be non-negative, and this function generally increases with hb and decreases with ha.
Exp_decay_TKE_adjust is coded to have a lower bound of 1e-30 on the return value. For large values of ha*Idecay, the return value is about 0.5*ka*(ha+hb)*Idecay**2 * exp(-ha*Idecay), but return values of less than 1e-30 are deliberately reset to 1e-30. For relatively large values of hb*Idecay, the return value increases linearly with hb. When Idecay ~= 0, the return value is close to 1.
- Parameters
hb [in]
The thickness over which the buoyancy flux varies on the near-boundary side of an interface (e.g., a well-mixed bottom boundary layer thickness) [H ~> m or kg m-2]
ha [in]
The thickness of the layer on the opposite side of an interface from the boundary [H ~> m or kg m-2]
Idecay [in]
The inverse of a turbulence decay length scale [H-1 ~> m-1 or m2 kg-1]
TKE_to_PE_scale
The effective fractional change in energy available to drive mixing at this interface once the exponential decay of TKE is accounted for [nondim]. TKE_to_PE_scale is always positive.
Callers call graph
- subroutine find_PE_chg(Kddt_h0, dKddt_h, hp_a, hp_b, Th_a, Sh_a, Th_b, Sh_b, dT_to_dPE_a, dS_to_dPE_a, dT_to_dPE_b, dS_to_dPE_b, pres_Z, dT_to_dColHt_a, dS_to_dColHt_a, dT_to_dColHt_b, dS_to_dColHt_b, PE_chg, dPEc_dKd, dPE_max, dPEc_dKd_0, PE_ColHt_cor)
This subroutine calculates the change in potential energy and or derivatives for several changes in an interface's diapycnal diffusivity times a timestep.
- Parameters
Kddt_h0 [in]
The previously used diffusivity at an interface times the time step and divided by the average of the thicknesses around the interface [H ~> m or kg m-2].
dKddt_h [in]
The trial change in the diffusivity at an interface times the time step and divided by the average of the thicknesses around the interface [H ~> m or kg m-2].
hp_a [in]
The effective pivot thickness of the layer above the interface, given by h_k plus a term that is a fraction (determined from the tridiagonal solver) of Kddt_h for the interface above [H ~> m or kg m-2].
hp_b [in]
The effective pivot thickness of the layer below the interface, given by h_k plus a term that is a fraction (determined from the tridiagonal solver) of Kddt_h for the interface below [H ~> m or kg m-2].
Th_a [in]
An effective temperature times a thickness in the layer above, including implicit mixing effects with other yet higher layers [C H ~> degC m or degC kg m-2].
Sh_a [in]
An effective salinity times a thickness in the layer above, including implicit mixing effects with other yet higher layers [S H ~> ppt m or ppt kg m-2].
Th_b [in]
An effective temperature times a thickness in the layer below, including implicit mixing effects with other yet lower layers [C H ~> degC m or degC kg m-2].
Sh_b [in]
An effective salinity times a thickness in the layer below, including implicit mixing effects with other yet lower layers [S H ~> ppt m or ppt kg m-2].
dT_to_dPE_a [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers above [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPE_a [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the salinities of all the layers above [R Z3 T-2 S-1 ~> J m-2 ppt-1].
dT_to_dPE_b [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers below [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPE_b [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the salinities of all the layers below [R Z3 T-2 S-1 ~> J m-2 ppt-1].
pres_Z [in]
The rescaled hydrostatic interface pressure, which relates the changes in column thickness to the energy that is radiated as gravity waves and unavailable to drive mixing [R Z2 T-2 ~> J m-3].
dT_to_dColHt_a [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers above [Z C-1 ~> m degC-1].
dS_to_dColHt_a [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers above [Z S-1 ~> m ppt-1].
dT_to_dColHt_b [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers below [Z C-1 ~> m degC-1].
dS_to_dColHt_b [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers below [Z S-1 ~> m ppt-1].
PE_chg [out]
The change in column potential energy from applying dKddt_h at the present interface [R Z3 T-2 ~> J m-2].
dPEc_dKd [out]
The partial derivative of PE_chg with dKddt_h [R Z3 T-2 H-1 ~> J m-3 or J kg-1].
dPE_max [out]
The maximum change in column potential energy that could be realized by applying a huge value of dKddt_h at the present interface [R Z3 T-2 ~> J m-2].
dPEc_dKd_0 [out]
The partial derivative of PE_chg with dKddt_h in the limit where dKddt_h = 0 [R Z3 T-2 H-1 ~> J m-3 or J kg-1].
PE_ColHt_cor [out]
The correction to PE_chg that is made due to a net change in the column height [R Z3 T-2 ~> J m-2].
Callers call graph
- subroutine find_Kd_from_PE_chg(Kd_prev, dKd_max, dt_h, max_PE_chg, hp_a, hp_b, Th_a, Sh_a, Th_b, Sh_b, dT_to_dPE_a, dS_to_dPE_a, dT_to_dPE_b, dS_to_dPE_b, pres_Z, dT_to_dColHt_a, dS_to_dColHt_a, dT_to_dColHt_b, dS_to_dColHt_b, Kd_add, PE_chg, dPE_max, frac_dKd_max_PE)
This subroutine directly calculates the an increment in the diapycnal diffusivity based on the change in potential energy within a timestep, subject to bounds on the possible change in diffusivity, returning both the added diffusivity and the realized potential energy change, and optionally also the maximum change in potential energy that would be realized for an infinitely large diffusivity.
- Parameters
Kd_prev [in]
The previously used diffusivity at an interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
dKd_max [in]
The maximum change in the diffusivity at an interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
dt_h [in]
The time step and divided by the average of the thicknesses around the interface [T Z-1 ~> s m-1].
max_PE_chg [in]
The maximum change in the column potential energy due to additional mixing at an interface [R Z3 T-2 ~> J m-2].
hp_a [in]
The effective pivot thickness of the layer above the interface, given by h_k plus a term that is a fraction (determined from the tridiagonal solver) of Kddt_h for the interface above [H ~> m or kg m-2].
hp_b [in]
The effective pivot thickness of the layer below the interface, given by h_k plus a term that is a fraction (determined from the tridiagonal solver) of Kddt_h for the interface below [H ~> m or kg m-2].
Th_a [in]
An effective temperature times a thickness in the layer above, including implicit mixing effects with other yet higher layers [C H ~> degC m or degC kg m-2].
Sh_a [in]
An effective salinity times a thickness in the layer above, including implicit mixing effects with other yet higher layers [S H ~> ppt m or ppt kg m-2].
Th_b [in]
An effective temperature times a thickness in the layer below, including implicit mixing effects with other yet lower layers [C H ~> degC m or degC kg m-2].
Sh_b [in]
An effective salinity times a thickness in the layer below, including implicit mixing effects with other yet lower layers [S H ~> ppt m or ppt kg m-2].
dT_to_dPE_a [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers above [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPE_a [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the salinities of all the layers above [R Z3 T-2 S-1 ~> J m-2 ppt-1].
dT_to_dPE_b [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers below [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPE_b [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the salinities of all the layers below [R Z3 T-2 S-1 ~> J m-2 ppt-1].
pres_Z [in]
The rescaled hydrostatic interface pressure, which relates the changes in column thickness to the energy that is radiated as gravity waves and unavailable to drive mixing [R Z2 T-2 ~> J m-3].
dT_to_dColHt_a [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers above [Z C-1 ~> m degC-1].
dS_to_dColHt_a [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers above [Z S-1 ~> m ppt-1].
dT_to_dColHt_b [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers below [Z C-1 ~> m degC-1].
dS_to_dColHt_b [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers below [Z S-1 ~> m ppt-1].
Kd_add [out]
The additional diffusivity at an interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
PE_chg [out]
The realized change in the column potential energy due to additional mixing at an interface [R Z3 T-2 ~> J m-2].
dPE_max [out]
The maximum change in column potential energy that could be realized by applying a huge value of dKddt_h at the present interface [R Z3 T-2 ~> J m-2].
frac_dKd_max_PE [out]
The fraction of the energy required to support dKd_max that is supplied by max_PE_chg [nondim]
Callers call graph
- subroutine find_PE_chg_orig(Kddt_h, h_k, b_den_1, dTe_term, dSe_term, dT_km1_t2, dS_km1_t2, dT_to_dPE_k, dS_to_dPE_k, dT_to_dPEa, dS_to_dPEa, pres_Z, dT_to_dColHt_k, dS_to_dColHt_k, dT_to_dColHta, dS_to_dColHta, PE_chg, dPEc_dKd, dPE_max, dPEc_dKd_0)
This subroutine calculates the change in potential energy and or derivatives for several changes in an interface's diapycnal diffusivity times a timestep using the original form used in the first version of ePBL.
- Parameters
Kddt_h [in]
The diffusivity at an interface times the time step and divided by the average of the thicknesses around the interface [H ~> m or kg m-2].
h_k [in]
The thickness of the layer below the interface [H ~> m or kg m-2].
b_den_1 [in]
The first term in the denominator of the pivot for the tridiagonal solver, given by h_k plus a term that is a fraction (determined from the tridiagonal solver) of Kddt_h for the interface above [H ~> m or kg m-2].
dTe_term [in]
A diffusivity-independent term related to the temperature change in the layer below the interface [C H ~> degC m or degC kg m-2].
dSe_term [in]
A diffusivity-independent term related to the salinity change in the layer below the interface [S H ~> ppt m or ppt kg m-2].
dT_km1_t2 [in]
A diffusivity-independent term related to the temperature change in the layer above the interface [C ~> degC].
dS_km1_t2 [in]
A diffusivity-independent term related to the salinity change in the layer above the interface [S ~> ppt].
pres_Z [in]
The rescaled hydrostatic interface pressure, which relates the changes in column thickness to the energy that is radiated as gravity waves and unavailable to drive mixing [R Z2 T-2 ~> J m-3].
dT_to_dPE_k [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers below [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPE_k [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the in the salinities of all the layers below [R Z3 T-2 S-1 ~> J m-2 ppt-1].
dT_to_dPEa [in]
A factor (pres_lay*mass_lay*dSpec_vol/dT) relating a layer's temperature change to the change in column potential energy, including all implicit diffusive changes in the temperatures of all the layers above [R Z3 T-2 C-1 ~> J m-2 degC-1].
dS_to_dPEa [in]
A factor (pres_lay*mass_lay*dSpec_vol/dS) relating a layer's salinity change to the change in column potential energy, including all implicit diffusive changes in the salinities of all the layers above [R Z3 T-2 S-1 ~> J m-2 ppt-1].
dT_to_dColHt_k [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers below [Z C-1 ~> m degC-1].
dS_to_dColHt_k [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers below [Z S-1 ~> m ppt-1].
dT_to_dColHta [in]
A factor (mass_lay*dSColHtc_vol/dT) relating a layer's temperature change to the change in column height, including all implicit diffusive changes in the temperatures of all the layers above [Z C-1 ~> m degC-1].
dS_to_dColHta [in]
A factor (mass_lay*dSColHtc_vol/dS) relating a layer's salinity change to the change in column height, including all implicit diffusive changes in the salinities of all the layers above [Z S-1 ~> m ppt-1].
PE_chg [out]
The change in column potential energy from applying Kddt_h at the present interface [R Z3 T-2 ~> J m-2].
dPEc_dKd [out]
The partial derivative of PE_chg with Kddt_h [R Z3 T-2 H-1 ~> J m-3 or J kg-1].
dPE_max [out]
The maximum change in column potential energy that could be realized by applying a huge value of Kddt_h at the present interface [R Z3 T-2 ~> J m-2].
dPEc_dKd_0 [out]
The partial derivative of PE_chg with Kddt_h in the limit where Kddt_h = 0 [R Z3 T-2 H-1 ~> J m-3 or J kg-1].
- subroutine find_mstar(CS, US, Buoyancy_Flux, UStar, BLD, Abs_Coriolis, Is_BBL, mstar, Langmuir_Number, mstar_LT, Convect_Langmuir_Number)
This subroutine finds the mstar value for ePBL
- Parameters
CS [in]
Energetic PBL control structure
US [in]
A dimensional unit scaling type
UStar [in]
ustar including gustiness [Z T-1 ~> m s-1]
Abs_Coriolis [in]
absolute value of the Coriolis parameter [T-1 ~> s-1]
Buoyancy_Flux [in]
Buoyancy flux [Z2 T-3 ~> m2 s-3]
BLD [in]
boundary layer depth [Z ~> m]
Is_BBL [in]
Logcal flag to indicate if bottom boundary layer mode
mstar [out]
Output mstar (Mixing/ustar**3) [nondim]
Langmuir_Number [in]
Langmuir number [nondim]
mstar_LT [out]
mstar increase due to Langmuir turbulence [nondim]
Convect_Langmuir_number [out]
Langmuir number including buoyancy flux [nondim]
Callers call graph
- subroutine mstar_Langmuir(CS, US, Abs_Coriolis, Buoyancy_Flux, UStar, BLD, Langmuir_Number, mstar, mstar_LT, Convect_Langmuir_Number)
This subroutine modifies the mstar value if the Langmuir number is present
- Parameters
CS [in]
Energetic PBL control structure
US [in]
A dimensional unit scaling type
Abs_Coriolis [in]
Absolute value of the Coriolis parameter [T-1 ~> s-1]
Buoyancy_Flux [in]
Buoyancy flux [Z2 T-3 ~> m2 s-3]
UStar [in]
Surface friction velocity with? gustiness [Z T-1 ~> m s-1]
BLD [in]
boundary layer depth [Z ~> m]
mstar [inout]
Input/output mstar (Mixing/ustar**3) [nondim]
Langmuir_Number [in]
Langmuir number [nondim]
mstar_LT [out]
mstar increase due to Langmuir turbulence [nondim]
Convect_Langmuir_number [out]
Langmuir number including buoyancy flux [nondim]
- subroutine energetic_PBL_get_MLD(CS, MLD, G, US, m_to_MLD_units)
Copies the ePBL active mixed layer depth into MLD, in units of [Z ~> m] unless other units are specified.
- Parameters
CS [in]
Energetic PBL control structure
G [in]
Grid structure
US [in]
A dimensional unit scaling type
MLD [out]
Depth of ePBL active mixing layer [Z ~> m] or other units
m_to_MLD_units [in]
A conversion factor from meters to the desired units for MLD, sometimes [Z m-1 ~> 1]
- subroutine energetic_PBL_init(Time, G, GV, US, param_file, diag, CS)
This subroutine initializes the energetic_PBL module
- Parameters
Time [in]
The current model time
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
A structure to parse for run-time parameters
diag [inout]
A structure that is used to regulate diagnostic output
CS [inout]
Energetic PBL control structure
Callees call graph
Text view
mom_energetic_pbl::energetic_pbl_init → mom_coms::real_to_efp
mom_energetic_pbl::energetic_pbl_init → mom_diag_mediator::register_diag_field
mom_energetic_pbl::energetic_pbl_init → mom_error_handler::mom_error
mom_energetic_pbl::energetic_pbl_init → mom_error_handler::mom_mesg
mom_energetic_pbl::energetic_pbl_init → mom_file_parser::interface::get_param
mom_energetic_pbl::energetic_pbl_init → mom_file_parser::interface::log_param
mom_energetic_pbl::energetic_pbl_init → mom_file_parser::interface::log_version
mom_energetic_pbl::energetic_pbl_init → mom_safe_alloc::interface::safe_alloc_alloc
mom_energetic_pbl::energetic_pbl_init → mom_string_functions::uppercase
Callers call graph
- subroutine energetic_PBL_end(CS)
Clean up and deallocate memory associated with the energetic_PBL module.
- Parameters
CS [inout]
Energetic_PBL control structure