mom_isopycnal_slopes module reference¶
Calculations of isoneutral slopes and stratification.
Functions/Subroutines¶
Calculate isopycnal slopes, and optionally return N2 used in calculation. |
|
Returns tracer arrays (nominally T and S) with massless layers filled with sensible values, by diffusing vertically with a small but constant diffusivity. |
Detailed Description¶
Calculations of isoneutral slopes and stratification.
Function/Subroutine Documentation¶
-
subroutine
mom_isopycnal_slopes/
calc_isoneutral_slopes
(G, GV, US, h, e, tv, dt_kappa_smooth, slope_x, slope_y, N2_u, N2_v, halo, OBC)¶ Calculate isopycnal slopes, and optionally return N2 used in 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] or units given by 1/eta_to_m)
tv :: [in] A structure pointing to various thermodynamic variables
dt_kappa_smooth :: [in] A smoothing vertical diffusivity times a smoothing timescale [Z2 ~> m2].
slope_x :: [inout] Isopycnal slope in i-direction [nondim]
slope_y :: [inout] Isopycnal slope in j-direction [nondim]
n2_u :: [inout] Brunt-Vaisala frequency squared at
n2_v :: [inout] Brunt-Vaisala frequency squared at
halo :: [in] Halo width over which to compute
obc :: Open boundaries control structure.
- Call to
- Called from
-
subroutine
mom_isopycnal_slopes/
vert_fill_ts
(h, T_in, S_in, kappa_dt, T_f, S_f, G, GV, 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
h :: [in] Layer thicknesses [H ~> m or kg m-2]
t_in :: [in] Input temperature [degC]
s_in :: [in] Input salinity [ppt]
kappa_dt :: [in] A vertical diffusivity to use for smoothing times a smoothing timescale [Z2 ~> m2].
t_f :: [out] Filled temperature [degC]
s_f :: [out] Filled salinity [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.
- Called from
calc_isoneutral_slopes
mom_set_diffusivity::set_diffusivity
mom_int_tide_input::set_int_tide_input