MOM_full_convection module reference
Does full convective adjustment of unstable regions via a strong diffusivity.
Functions/Subroutines
Calculate new temperatures and salinities that have been subject to full convective mixing. |
|
This function returns True if the profiles around the given interface will be statically unstable after mixing above below. The arguments are the ocean state above and below, including partial calculations from a tridiagonal solver. |
|
Returns the partial derivatives of locally referenced potential density with temperature and salinity after the properties have been smoothed with a small constant diffusivity. |
Functions/Subroutine Documentation
- subroutine full_convection(G, GV, US, h, tv, T_adj, S_adj, p_surf, Kddt_smooth, halo)
Calculate new temperatures and salinities that have been subject to full convective mixing.
- Parameters
G [in]
The ocean's grid structure
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]
tv [in]
A structure pointing to various thermodynamic variables
T_adj [out]
Adjusted potential temperature [C ~> degC].
S_adj [out]
Adjusted salinity [S ~> ppt].
p_surf
The pressure at the ocean surface [R L2 T-2 ~> Pa] (or NULL).
Kddt_smooth [in]
A smoothing vertical diffusivity times a timestep [H Z ~> m2 or kg m-1].
halo [in]
Halo width over which to compute
mix
The amount of mixing across the interface between layers [H ~> m or kg m-2].
Callees call graph
Callers call graph
- function is_unstable(dRho_dT, dRho_dS, h_a, h_b, mix_A, mix_B, T_a, T_b, S_a, S_b, Te_aa, Te_bb, Se_aa, Se_bb, d_A, d_B)
This function returns True if the profiles around the given interface will be statically unstable after mixing above below. The arguments are the ocean state above and below, including partial calculations from a tridiagonal solver.
- Parameters
dRho_dT [in]
The derivative of in situ density with temperature [R C-1 ~> kg m-3 degC-1]
dRho_dS [in]
The derivative of in situ density with salinity [R S-1 ~> kg m-3 ppt-1]
h_a [in]
The thickness of the layer above [H ~> m or kg m-2]
h_b [in]
The thickness of the layer below [H ~> m or kg m-2]
mix_A [in]
The time integrated mixing rate of the interface above [H ~> m or kg m-2]
mix_B [in]
The time integrated mixing rate of the interface below [H ~> m or kg m-2]
T_a [in]
The initial temperature of the layer above [C ~> degC]
T_b [in]
The initial temperature of the layer below [C ~> degC]
S_a [in]
The initial salinity of the layer below [S ~> ppt]
S_b [in]
The initial salinity of the layer below [S ~> ppt]
Te_aa [in]
The estimated temperature two layers above rescaled by d_A [C ~> degC]
Te_bb [in]
The estimated temperature two layers below rescaled by d_B [C ~> degC]
Se_aa [in]
The estimated salinity two layers above rescaled by d_A [S ~> ppt]
Se_bb [in]
The estimated salinity two layers below rescaled by d_B [S ~> ppt]
d_A [in]
The rescaling dependency across the interface above [nondim]
d_B [in]
The rescaling dependency across the interface below [nondim]
is_unstable
The return value, true if the profile is statically unstable around the interface in question.
Callers call graph
- subroutine smoothed_dRdT_dRdS(h, dz, tv, Kddt, dR_dT, dR_dS, G, GV, US, j, p_surf, halo)
Returns the partial derivatives of locally referenced potential density with temperature and salinity after the properties have been smoothed with a small constant diffusivity.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
h [in]
Layer thicknesses [H ~> m or kg m-2]
dz [in]
Height change across layers [Z ~> m]
tv [in]
A structure pointing to various thermodynamic variables
Kddt [in]
A diffusivity times a time increment [H Z ~> m2 or kg m-1].
dR_dT [out]
Derivative of locally referenced potential density with temperature [R C-1 ~> kg m-3 degC-1]
dR_dS [out]
Derivative of locally referenced potential density with salinity [R S-1 ~> kg m-3 ppt-1]
US [in]
A dimensional unit scaling type
j [in]
The j-point to work on.
p_surf
The pressure at the ocean surface [R L2 T-2 ~> Pa].
halo [in]
Halo width over which to compute