MOM_isopycnal_slopes module reference
Calculations of isoneutral slopes and stratification.
Functions/Subroutines
Calculate isopycnal slopes, and optionally return other stratification dependent functions such as N^2 and dz*S^2*g-prime used, or calculable from factors used, during the calculation. |
|
Returns tracer arrays (nominally T and S) with massless layers filled with sensible values, by diffusing vertically with a small but constant diffusivity. |
Functions/Subroutine Documentation
- subroutine calc_isoneutral_slopes(G, GV, US, h, e, tv, dt_kappa_smooth, use_stanley, slope_x, slope_y, N2_u, N2_v, dzu, dzv, dzSxN, dzSyN, halo, OBC, OBC_N2, drdx_u, drdy_v, drdz_u, drdz_v)
Calculate isopycnal slopes, and optionally return other stratification dependent functions such as N^2 and dz*S^2*g-prime used, or calculable from factors used, during the calculation.
- 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]
e [in]
Interface heights [Z ~> m]
tv [in]
A structure pointing to various thermodynamic variables
dt_kappa_smooth [in]
A smoothing vertical diffusivity times a smoothing timescale [H Z ~> m2 or kg m-1]
use_stanley [in]
turn on stanley param in slope
slope_x [inout]
Isopycnal slope in i-dir [Z L-1 ~> nondim]
slope_y [inout]
Isopycnal slope in j-dir [Z L-1 ~> nondim]
N2_u [inout]
Brunt-Vaisala frequency squared at interfaces between u-points [L2 Z-2 T-2 ~> s-2]
N2_v [inout]
Brunt-Vaisala frequency squared at interfaces between v-points [L2 Z-2 T-2 ~> s-2]
dzu [inout]
Z-thickness at u-points [Z ~> m]
dzv [inout]
Z-thickness at v-points [Z ~> m]
dzSxN [inout]
Z-thickness times zonal slope contribution to Eady growth rate at u-points. [Z T-1 ~> m s-1]
dzSyN [inout]
Z-thickness times meridional slope contrib. to Eady growth rate at v-points. [Z T-1 ~> m s-1]
halo [in]
Halo width over which to compute
OBC
Open boundaries control structure.
OBC_N2 [in]
If present and true, use interior data to calculate stratification at open boundary condition faces.
drdx_u [inout]
Zonal density gradient at u along surfaces of constant z (not along isopycnals or model interfaces) [R L-1 ~> kg m-4]
drdy_v [inout]
Meridional density gradient at v along surfaces of constant z (not along isopycnals or model interfaces) [R L-1 ~> kg m-4]
drdz_u [inout]
Vertical density gradient at u [R Z-1 ~> kg m-4]
drdz_v [inout]
Vertical density gradient at v [R Z-1 ~> kg m-4]
Callees call graph
Text view
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_eos::eos_domain
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_eos::interface::calculate_density_derivs
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_eos::interface::calculate_density_second_derivs
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_error_handler::mom_error
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_isopycnal_slopes::vert_fill_ts
Callers call graph
Text view
mom_lateral_mixing_coeffs::calc_qg_slopes → mom_isopycnal_slopes::calc_isoneutral_slopes
mom_lateral_mixing_coeffs::calc_slope_functions → mom_isopycnal_slopes::calc_isoneutral_slopes
mom_lateral_mixing_coeffs::calc_sqg_struct → mom_isopycnal_slopes::calc_isoneutral_slopes
mom_meke::ml_meke_calculate_features → mom_isopycnal_slopes::calc_isoneutral_slopes
mom_meso_sfn_ann::meso_sfn_ann_compute → mom_isopycnal_slopes::calc_isoneutral_slopes
- subroutine vert_fill_TS(h, T_in, S_in, kappa_dt, T_f, S_f, G, GV, US, halo_here, larger_h_denom)
Returns tracer arrays (nominally T and S) with massless layers filled with sensible values, by diffusing vertically with a small but constant diffusivity.
- 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]
T_in [in]
Input temperature [C ~> degC]
S_in [in]
Input salinity [S ~> ppt]
kappa_dt [in]
A vertical diffusivity to use for smoothing times a smoothing timescale [H Z ~> m2 or kg m-1]
T_f [out]
Filled temperature [C ~> degC]
S_f [out]
Filled salinity [S ~> ppt]
halo_here [in]
Number of halo points to work on, 0 by default
larger_h_denom [in]
Present and true, add a large enough minimal thickness in the denominator of the flux calculations so that the fluxes are never so large as eliminate the transmission of information across groups of massless layers.
Callers call graph
Text view
mom_int_tide_input::set_int_tide_input → mom_isopycnal_slopes::vert_fill_ts
mom_isopycnal_slopes::calc_isoneutral_slopes → mom_isopycnal_slopes::vert_fill_ts
mom_set_diffusivity::set_diffusivity → mom_isopycnal_slopes::vert_fill_ts
mom_stoch_eos::mom_calc_vart → mom_isopycnal_slopes::vert_fill_ts
mom_thickness_diffuse::thickness_diffuse_full → mom_isopycnal_slopes::vert_fill_ts