MOM_diabatic_driver module reference
This routine drives the diabatic/dianeutral physics for MOM
Data Types
Control structure for this module |
Functions/Subroutines
This subroutine imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers. |
|
Applies diabatic forcing and diapycnal mixing of temperature, salinity and other tracers for use with an ALE algorithm. This version uses an older set of algorithms compared with diabatic_ALE. |
|
This subroutine imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers. |
|
Imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers using the original MOM6 algorithms. |
|
Returns pointers or values of members within the diabatic_CS type. For extensibility, each returned argument is an optional argument |
|
Routine called for adiabatic physics |
|
This routine diagnoses tendencies from application of diabatic diffusion using ALE algorithm. Note that layer thickness is not altered by diabatic diffusion. |
|
This routine diagnoses tendencies from application of boundary fluxes. These impacts are generally 3d, in particular for penetrative shortwave. Other fluxes contribute 3d in cases when the layers vanish or are very thin, in which case we distribute the flux into k > 1 layers. |
|
This routine diagnoses tendencies for temperature and heat from frazil formation. This routine is called twice from within subroutine diabatic; at start and at end of the diabatic processes. The impacts from frazil are generally a function of depth. Hence, when checking heat budget, be sure to remove HFSIFRAZIL from HFDS in k=1. |
|
A simplified version of diabatic_driver_init that will allow tracer column functions to be called without allowing any of the diabatic processes to be used. |
|
This routine initializes the diabatic driver module. |
|
Routine to register restarts, pass-through to children modules |
|
Routine to close the diabatic driver module |
Detailed Description
By Robert Hallberg, Alistair Adcroft, and Stephen Griffies
This program contains the subroutine that, along with the subroutines that it calls, implements diapycnal mass and momentum fluxes and a bulk mixed layer. The diapycnal diffusion can be used without the bulk mixed layer.
Outline of MOM diabatic
diabatic first determines the (diffusive) diapycnal mass fluxes based on the convergence of the buoyancy fluxes within each layer.
The dual-stream entrainment scheme of MacDougall and Dewar (JPO,
is used for combined diapycnal advection and diffusion, calculated implicitly and potentially with the Richardson number dependent mixing, as described by Hallberg (MWR, 2000).
Diapycnal advection is the residual of diapycnal diffusion, so the fully implicit upwind differencing scheme that is used is entirely appropriate.
The downward buoyancy flux in each layer is determined from an implicit calculation based on the previously calculated flux of the layer above and an estimated flux in the layer below. This flux is subject to the following conditions: (1) the flux in the top and bottom layers are set by the boundary conditions, and (2) no layer may be driven below a minimal thickness. If there is a bulk mixed layer, the buffer layer is treated as a fixed density layer with vanishingly small diffusivity.
diabatic takes 5 arguments: the two velocities (u and v), the thicknesses (h), a structure containing the forcing fields, and the length of time over which to act (dt). The velocities and thickness are taken as inputs and modified within the subroutine. There is no limit on the time step.
Type Documentation
- type, public :: diabatic_CS
Control structure for this module
- Parameters
initialized
True if this control structure has been initialized.
use_legacy_diabatic
If true (default), use a legacy version of the diabatic algorithm. This is temporary and is needed to avoid change in answers.
use_bulkmixedlayer
If true, a refined bulk mixed layer is used with nkml sublayers (and additional buffer layers).
use_energetic_PBL
If true, use the implicit energetics planetary boundary layer scheme to determine the diffusivity in the surface boundary layer.
use_KPP
If true, use CVMix/KPP boundary layer scheme to determine the OBLD and the diffusivities within this layer.
use_kappa_shear
If true, use the kappa_shear module to find the shear-driven diapycnal diffusivity.
use_CVMix_shear
If true, use the CVMix module to find the shear-driven diapycnal diffusivity.
use_CVMix_ddiff
If true, use the CVMix double diffusion module.
use_CVMix_conv
If true, use the CVMix module to get enhanced mixing due to convection.
double_diffuse
If true, some form of double-diffusive mixing is used.
use_sponge
If true, sponges may be applied anywhere in the domain. The exact location and properties of those sponges are set by calls to initialize_sponge and set_up_sponge_field.
use_oda_incupd
If True, DA incremental update is applied everywhere
use_geothermal
If true, apply geothermal heating.
use_int_tides
If true, use the code that advances a separate set of equations for the internal tide energy density.
ePBL_is_additive
If true, the diffusivity from ePBL is added to all other diffusivities. Otherwise, the larger of kappa- shear and ePBL diffusivities are used.
ePBL_Prandtl
The Prandtl number used by ePBL to convert vertical diffusivities into viscosities [nondim].
useALEalgorithm
If true, use the ALE algorithm rather than layered isopycnal/stacked shallow water mode. This logical passed by argument to diabatic_driver_init.
aggregate_FW_forcing
Determines whether net incoming/outgoing surface FW fluxes are applied separately or combined before being applied.
ML_mix_first
The nondimensional fraction of the mixed layer algorithm that is applied before diffusive mixing [nondim]. The default is 0, while 0.5 gives Strang splitting and 1 is a sensible value too. Note that if there are convective instabilities in the initial state, the first call may do much more than the second.
NKBL
The number of buffer layers (if bulk_mixed_layer)
massless_match_targets
If true (the default), keep the T & S consistent with the target values.
mix_boundary_tracers
If true, mix the passive tracers in massless layers at the bottom into the interior as though a diffusivity of Kd_min_tr (see below) were operating.
mix_boundary_tracer_ALE
If true, in ALE mode mix the passive tracers in massless layers at the bottom into the interior as though a diffusivity of Kd_min_tr (see below) were operating.
Kd_BBL_tr
A bottom boundary layer tracer diffusivity that will allow for explicitly specified bottom fluxes [H2 T-1 ~> m2 s-1 or kg2 m-4 s-1]. The entrainment at the bottom is at least sqrt(Kd_BBL_tr*dt) over the same distance.
Kd_min_tr
A minimal diffusivity that should always be applied to tracers, especially in massless layers near the bottom [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
minimum_forcing_depth
The smallest depth over which heat and freshwater fluxes are applied [H ~> m or kg m-2].
evap_CFL_limit
The largest fraction of a layer that can be evaporated in one time-step [nondim].
halo_TS_diff
The temperature, salinity and thickness halo size that must be valid for the diffusivity calculations.
halo_diabatic
The temperature, salinity, specific volume and thickness halo size that must be valid for the diabatic calculations, including vertical mixing and internal tide propagation.
useKPP
use CVMix/KPP diffusivities and non-local transport
KPPisPassive
If true, KPP is in passive mode, not changing answers.
debug
If true, write verbose checksums for debugging purposes.
debugConservation
If true, monitor conservation and extrema.
tracer_tridiag
If true, use tracer_vertdiff instead of tridiagTS for vertical diffusion of T and S
debug_energy_req
If true, test the mixing energy requirement code.
diag
structure used to regulate timing of diagnostic output
MLDdensityDifference
Density difference used to determine MLD_user [R ~> kg m-3]
dz_subML_N2
The distance over which to calculate a diagnostic of the average stratification at the base of the mixed layer [Z ~> m].
MLD_En_vals
Energy values for energy mixed layer diagnostics [R Z3 T-2 ~> J m-2]
BMLD_En_vals
Energy values for energy bottom mixed layer diagnostics [R Z3 T-2 ~> J m-2]
use_OM4_MLD_En_iter
If true, uses an older iteration in the energetics MLD calculation to bitwise reproduce OM4 era models
ref_h_mld
The depth of the "surface" density used in a difference mixed based MLD calculation [Z ~> m].
Use_KdWork_diag
Logical flag to indicate if any Kd_work diagnostics are on.
Use_N2_diag
Logical flag to indicate if any N2 diagnostics are on.
MLD_param_003
Logical flag if MLD in brine plume should use the 0.03 mixed layer depth
MLD_param_EN1
Logical flag if MLD in brine plume should use the EN1 mixed layer depth
MLD_param_ePBL
Logical flag if MLD in brine plume should use the ePBL boundary layer depth
prediabatic_T
Temperature prior to calling diabatic driver [C ~> degC]
id_ea
Diagnostic IDs
id_eb
Diagnostic IDs
id_ea_t
Diagnostic IDs
id_eb_t
Diagnostic IDs
id_ea_s
Diagnostic IDs
id_eb_s
Diagnostic IDs
id_Kd_heat
Diagnostic IDs
id_Kd_salt
Diagnostic IDs
id_Kd_int
Diagnostic IDs
id_Kd_ePBL
Diagnostic IDs
id_Tdif
Diagnostic IDs
id_Sdif
Diagnostic IDs
id_Tadv
Diagnostic IDs
id_Sadv
Diagnostic IDs
id_N2_dd
Diagnostic IDs
id_N2_salt_dd
Diagnostic IDs
id_N2_temp_dd
Diagnostic IDs
id_MLD_003
Diagnostic IDs
id_MLD_0125
Diagnostic IDs
id_MLD_user
Diagnostic IDs
id_mlotstsq
Diagnostic IDs
id_MLD_003_zr
Diagnostic IDs
id_MLD_003_rr
Diagnostic IDs
id_MLD_EN1
Diagnostic IDs
id_MLD_EN2
Diagnostic IDs
id_MLD_EN3
Diagnostic IDs
id_subMLN2
Diagnostic IDs
id_BMLD_EN1
Diagnostic IDs
id_BMLD_EN2
Diagnostic IDs
id_BMLD_EN3
Diagnostic IDs
id_wd
Diagnostic IDs
id_dudt_dia
Diagnostic IDs
id_dvdt_dia
Diagnostic IDs
id_hf_dudt_dia_2d
Diagnostic IDs
id_hf_dvdt_dia_2d
Diagnostic IDs
id_u_predia
Diagnostic IDs
id_v_predia
Diagnostic IDs
id_h_predia
Diagnostic IDs
id_T_predia
Diagnostic IDs
id_S_predia
Diagnostic IDs
id_e_predia
Diagnostic IDs
id_diabatic_diff_temp_tend
Diagnostic IDs
id_diabatic_diff_saln_tend
Diagnostic IDs
id_diabatic_diff_heat_tend
Diagnostic IDs
id_diabatic_diff_salt_tend
Diagnostic IDs
id_diabatic_diff_heat_tend_2d
Diagnostic IDs
id_diabatic_diff_salt_tend_2d
Diagnostic IDs
id_diabatic_diff_h
Diagnostic IDs
id_boundary_forcing_h
Diagnostic IDs
id_boundary_forcing_h_tendency
Diagnostic IDs
id_boundary_forcing_temp_tend
Diagnostic IDs
id_boundary_forcing_saln_tend
Diagnostic IDs
id_boundary_forcing_heat_tend
Diagnostic IDs
id_boundary_forcing_salt_tend
Diagnostic IDs
id_boundary_forcing_heat_tend_2d
Diagnostic IDs
id_boundary_forcing_salt_tend_2d
Diagnostic IDs
id_frazil_h
Diagnostic IDs
id_frazil_temp_tend
Diagnostic IDs
id_frazil_heat_tend
Diagnostic IDs
id_frazil_heat_tend_2d
Diagnostic IDs
diabatic_diff_tendency_diag
If true calculate diffusive tendency diagnostics
boundary_forcing_tendency_diag
If true calculate frazil diagnostics
frazil_tendency_diag
If true calculate frazil tendency diagnostics
diabatic_aux_CSp
Control structure for a child module
int_tide_input_CSp
Control structure for a child module
int_tide_input
Control structure for a child module
set_diff_CSp
Control structure for a child module
sponge_CSp
Control structure for a child module
ALE_sponge_CSp
Control structure for a child module
tracer_flow_CSp
Control structure for a child module
optics
Control structure for a child module
KPP_CSp
Control structure for a child module
diapyc_en_rec_CSp
Control structure for a child module
oda_incupd_CSp
Control structure for a child module
int_tide_CSp
Control structure for a child module
VBF
Control structure for a child module
bulkmixedlayer
Bulk mixed layer control structure
CVMix_conv
CVMix convection control structure
ePBL
Energetic PBL control structure
entrain_diffusive
Diffusive entrainment control structure
geothermal
Geothermal control structure
opacity
Opacity control structure
regularize_layers
Regularize layer control structure
pass_hold_eb_ea
For group halo pass
diag_grids_prev
Stores diagnostic grids at some previous point in the algorithm
Time
Pointer to model time (needed for sponges)
Functions/Subroutine Documentation
- subroutine diabatic(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Time_end, G, GV, US, CS, stoch_CS, OBC, Waves)
This subroutine imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers.
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
u [inout]
zonal velocity [L T-1 ~> m s-1]
v [inout]
meridional velocity [L T-1 ~> m s-1]
h [inout]
thickness [H ~> m or kg m-2]
tv [inout]
points to thermodynamic fields unused have NULL ptrs
BLD [inout]
Active mixed layer depth [Z ~> m]
fluxes [inout]
points to forcing fields unused fields have NULL ptrs
visc [inout]
Structure with vertical viscosities, BBL properties and related fields
ADp [inout]
Points to accelerations in momentum equations, to enable the later derived diagnostics, like energy budgets
CDp [inout]
points to terms in continuity equations
dt [in]
time increment [T ~> s]
Time_end [in]
Time at the end of the interval
US [in]
A dimensional unit scaling type
CS
module control structure
stoch_CS
stochastic control structure
OBC
Open boundaries control structure.
Waves
Surface gravity waves
Callees call graph
Text view
mom_diabatic_driver::diabatic → mom_checksum_packages::interface::mom_state_chksum
mom_diabatic_driver::diabatic → mom_checksum_packages::mom_state_stats
mom_diabatic_driver::diabatic → mom_cpu_clock_infra::cpu_clock_begin
mom_diabatic_driver::diabatic → mom_cpu_clock_infra::cpu_clock_end
mom_diabatic_driver::diabatic → mom_diabatic_aux::make_frazil
mom_diabatic_driver::diabatic → mom_diabatic_driver::diabatic_ale
mom_diabatic_driver::diabatic → mom_diabatic_driver::diabatic_ale_legacy
mom_diabatic_driver::diabatic → mom_diabatic_driver::diagnose_frazil_tendency
mom_diabatic_driver::diabatic → mom_diabatic_driver::layered_diabatic
mom_diabatic_driver::diabatic → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic → mom_diagnose_mld::diagnosemldbydensitydifference
mom_diabatic_driver::diabatic → mom_diagnose_mld::diagnosemldbyenergy
mom_diabatic_driver::diabatic → mom_diapyc_energy_req::diapyc_energy_req_test
mom_diabatic_driver::diabatic → mom_domain_infra::interface::pass_var
mom_diabatic_driver::diabatic → mom_eos::interface::calculate_tfreeze
mom_diabatic_driver::diabatic → mom_error_handler::calltree_showquery
mom_diabatic_driver::diabatic → mom_error_handler::calltree_waypoint
mom_diabatic_driver::diabatic → mom_error_handler::mom_error
mom_diabatic_driver::diabatic → mom_forcing_type::mom_forcing_chksum
mom_diabatic_driver::diabatic → mom_int_tide_input::set_int_tide_input
mom_diabatic_driver::diabatic → mom_interface_heights::convert_mld_to_ml_thickness
mom_diabatic_driver::diabatic → mom_interface_heights::interface::find_eta
mom_diabatic_driver::diabatic → mom_internal_tides::propagate_int_tide
mom_diabatic_driver::diabatic → mom_set_diffusivity::set_bbl_tke
mom_diabatic_driver::diabatic → mom_time_manager::real_to_time
- subroutine diabatic_ALE_legacy(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Time_end, G, GV, US, CS, stoch_CS, Waves)
Applies diabatic forcing and diapycnal mixing of temperature, salinity and other tracers for use with an ALE algorithm. This version uses an older set of algorithms compared with diabatic_ALE.
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
u [inout]
zonal velocity [L T-1 ~> m s-1]
v [inout]
meridional velocity [L T-1 ~> m s-1]
h [inout]
thickness [H ~> m or kg m-2]
tv [inout]
points to thermodynamic fields unused have NULL ptrs
BLD [inout]
Active mixed layer depth [Z ~> m]
fluxes [inout]
points to forcing fields unused fields have NULL ptrs
visc [inout]
Structure with vertical viscosities, BBL properties and related fields
ADp [inout]
Points to accelerations in momentum equations, to enable the later derived diagnostics, like energy budgets
CDp [inout]
points to terms in continuity equations
dt [in]
time increment [T ~> s]
Time_end [in]
Time at the end of the interval
CS
module control structure
stoch_CS
stochastic control structure
Waves
Surface gravity waves
ent_s
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
ent_t
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_int
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_heat
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_salt
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_extra_T
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_extra_S
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_ePBL
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_NLTheat
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_NLTscalar
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_buoy_flux
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Tdif_flx
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Sdif_flx
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
N2_salt
Salinity contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
N2_temp
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Callees call graph
Text view
mom_diabatic_driver::diabatic_ale_legacy → mom_ale_sponge::apply_ale_sponge
mom_diabatic_driver::diabatic_ale_legacy → mom_checksum_packages::interface::mom_state_chksum
mom_diabatic_driver::diabatic_ale_legacy → mom_checksum_packages::mom_state_stats
mom_diabatic_driver::diabatic_ale_legacy → mom_checksums::interface::hchksum
mom_diabatic_driver::diabatic_ale_legacy → mom_cpu_clock_infra::cpu_clock_begin
mom_diabatic_driver::diabatic_ale_legacy → mom_cpu_clock_infra::cpu_clock_end
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_conv::calculate_cvmix_conv
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_calculate
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_compute_bld
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_get_bld
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_get_lam2
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_nonlocaltransport_saln
mom_diabatic_driver::diabatic_ale_legacy → mom_cvmix_kpp::kpp_nonlocaltransport_temp
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::adjust_salt
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::applyboundaryfluxesinout
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::differential_diffuse_t_s
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::find_uv_at_h
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::set_pen_shortwave
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_aux::tridiagts_eulerian
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_driver::diagnose_boundary_forcing_tendency
mom_diabatic_driver::diabatic_ale_legacy → mom_diabatic_driver::diagnose_diabatic_diff_tendency
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic_ale_legacy → mom_diagnose_kdwork::allocate_vbf_cs
mom_diabatic_driver::diabatic_ale_legacy → mom_diagnose_kdwork::deallocate_vbf_cs
mom_diabatic_driver::diabatic_ale_legacy → mom_diagnose_kdwork::kdwork_diagnostics
mom_diabatic_driver::diabatic_ale_legacy → mom_energetic_pbl::energetic_pbl
mom_diabatic_driver::diabatic_ale_legacy → mom_energetic_pbl::energetic_pbl_get_mld
mom_diabatic_driver::diabatic_ale_legacy → mom_eos::eos_domain
mom_diabatic_driver::diabatic_ale_legacy → mom_eos::interface::calculate_density_derivs
mom_diabatic_driver::diabatic_ale_legacy → mom_eos::interface::calculate_specific_vol_derivs
mom_diabatic_driver::diabatic_ale_legacy → mom_error_handler::calltree_enter
mom_diabatic_driver::diabatic_ale_legacy → mom_error_handler::calltree_leave
mom_diabatic_driver::diabatic_ale_legacy → mom_error_handler::calltree_showquery
mom_diabatic_driver::diabatic_ale_legacy → mom_error_handler::calltree_waypoint
mom_diabatic_driver::diabatic_ale_legacy → mom_error_handler::mom_mesg
mom_diabatic_driver::diabatic_ale_legacy → mom_forcing_type::calculatebuoyancyflux2d
mom_diabatic_driver::diabatic_ale_legacy → mom_forcing_type::interface::find_ustar
mom_diabatic_driver::diabatic_ale_legacy → mom_forcing_type::mom_forcing_chksum
mom_diabatic_driver::diabatic_ale_legacy → mom_geothermal::geothermal_in_place
mom_diabatic_driver::diabatic_ale_legacy → mom_interface_heights::convert_mld_to_ml_thickness
mom_diabatic_driver::diabatic_ale_legacy → mom_interface_heights::interface::thickness_to_dz
mom_diabatic_driver::diabatic_ale_legacy → mom_oda_incupd::apply_oda_incupd
mom_diabatic_driver::diabatic_ale_legacy → mom_opacity::optics_nbands
mom_diabatic_driver::diabatic_ale_legacy → mom_set_diffusivity::set_diffusivity
mom_diabatic_driver::diabatic_ale_legacy → mom_tracer_diabatic::tracer_vertdiff_eulerian
mom_diabatic_driver::diabatic_ale_legacy → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::diabatic_ale_legacy → mom_variables::mom_thermovar_chksum
Callers call graph
- subroutine diabatic_ALE(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Time_end, G, GV, US, CS, stoch_CS, Waves)
This subroutine imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers.
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
u [inout]
zonal velocity [L T-1 ~> m s-1]
v [inout]
meridional velocity [L T-1 ~> m s-1]
h [inout]
thickness [H ~> m or kg m-2]
tv [inout]
points to thermodynamic fields unused have NULL ptrs
BLD [inout]
Active mixed layer depth [Z ~> m]
fluxes [inout]
points to forcing fields unused fields have NULL ptrs
visc [inout]
Structure with vertical viscosities, BBL properties and related fields
ADp [inout]
Points to accelerations in momentum equations, to enable the later derived diagnostics, like energy budgets
CDp [inout]
points to terms in continuity equations
dt [in]
time increment [T ~> s]
Time_end [in]
Time at the end of the interval
CS
module control structure
stoch_CS
stochastic control structure
Waves
Surface gravity waves
ent_s
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
ent_t
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_heat
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_salt
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_extra_T
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_extra_S
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_ePBL
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_NLTheat
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_NLTscalar
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
KPP_buoy_flux
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Tdif_flx
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Sdif_flx
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
N2_salt
Salinity contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
N2_temp
Temperature contribution to squared buoyancy frequency at interfaces [T-2 ~> s-2]
Callees call graph
Text view
mom_diabatic_driver::diabatic_ale → mom_ale_sponge::apply_ale_sponge
mom_diabatic_driver::diabatic_ale → mom_checksum_packages::interface::mom_state_chksum
mom_diabatic_driver::diabatic_ale → mom_checksum_packages::mom_state_stats
mom_diabatic_driver::diabatic_ale → mom_checksums::interface::hchksum
mom_diabatic_driver::diabatic_ale → mom_cpu_clock_infra::cpu_clock_begin
mom_diabatic_driver::diabatic_ale → mom_cpu_clock_infra::cpu_clock_end
mom_diabatic_driver::diabatic_ale → mom_cvmix_conv::calculate_cvmix_conv
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_calculate
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_compute_bld
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_get_bld
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_get_lam2
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_nonlocaltransport_saln
mom_diabatic_driver::diabatic_ale → mom_cvmix_kpp::kpp_nonlocaltransport_temp
mom_diabatic_driver::diabatic_ale → mom_diabatic_aux::adjust_salt
mom_diabatic_driver::diabatic_ale → mom_diabatic_aux::applyboundaryfluxesinout
mom_diabatic_driver::diabatic_ale → mom_diabatic_aux::find_uv_at_h
mom_diabatic_driver::diabatic_ale → mom_diabatic_aux::set_pen_shortwave
mom_diabatic_driver::diabatic_ale → mom_diabatic_driver::diagnose_boundary_forcing_tendency
mom_diabatic_driver::diabatic_ale → mom_diabatic_driver::diagnose_diabatic_diff_tendency
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic_ale → mom_diagnose_kdwork::allocate_vbf_cs
mom_diabatic_driver::diabatic_ale → mom_diagnose_kdwork::deallocate_vbf_cs
mom_diabatic_driver::diabatic_ale → mom_diagnose_kdwork::kdwork_diagnostics
mom_diabatic_driver::diabatic_ale → mom_domain_infra::interface::pass_var
mom_diabatic_driver::diabatic_ale → mom_energetic_pbl::energetic_pbl
mom_diabatic_driver::diabatic_ale → mom_energetic_pbl::energetic_pbl_get_mld
mom_diabatic_driver::diabatic_ale → mom_eos::interface::calculate_density_derivs
mom_diabatic_driver::diabatic_ale → mom_eos::interface::calculate_specific_vol_derivs
mom_diabatic_driver::diabatic_ale → mom_error_handler::calltree_enter
mom_diabatic_driver::diabatic_ale → mom_error_handler::calltree_leave
mom_diabatic_driver::diabatic_ale → mom_error_handler::calltree_showquery
mom_diabatic_driver::diabatic_ale → mom_error_handler::calltree_waypoint
mom_diabatic_driver::diabatic_ale → mom_error_handler::mom_error
mom_diabatic_driver::diabatic_ale → mom_error_handler::mom_mesg
mom_diabatic_driver::diabatic_ale → mom_forcing_type::calculatebuoyancyflux2d
mom_diabatic_driver::diabatic_ale → mom_forcing_type::interface::find_ustar
mom_diabatic_driver::diabatic_ale → mom_forcing_type::mom_forcing_chksum
mom_diabatic_driver::diabatic_ale → mom_geothermal::geothermal_in_place
mom_diabatic_driver::diabatic_ale → mom_interface_heights::convert_mld_to_ml_thickness
mom_diabatic_driver::diabatic_ale → mom_interface_heights::interface::thickness_to_dz
mom_diabatic_driver::diabatic_ale → mom_oda_incupd::apply_oda_incupd
mom_diabatic_driver::diabatic_ale → mom_opacity::optics_nbands
mom_diabatic_driver::diabatic_ale → mom_set_diffusivity::set_diffusivity
mom_diabatic_driver::diabatic_ale → mom_tracer_diabatic::tracer_vertdiff_eulerian
mom_diabatic_driver::diabatic_ale → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::diabatic_ale → mom_variables::mom_thermovar_chksum
- subroutine layered_diabatic(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Time_end, G, GV, US, CS, Waves)
Imposes the diapycnal mass fluxes and the accompanying diapycnal advection of momentum and tracers using the original MOM6 algorithms.
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
u [inout]
zonal velocity [L T-1 ~> m s-1]
v [inout]
meridional velocity [L T-1 ~> m s-1]
h [inout]
thickness [H ~> m or kg m-2]
tv [inout]
points to thermodynamic fields unused have NULL ptrs
BLD [inout]
Active mixed layer depth [Z ~> m]
fluxes [inout]
points to forcing fields unused fields have NULL ptrs
visc [inout]
Structure with vertical viscosities, BBL properties and related fields
ADp [inout]
Points to accelerations in momentum equations, to enable the later derived diagnostics, like energy budgets
CDp [inout]
points to terms in continuity equations
dt [in]
time increment [T ~> s]
Time_end [in]
Time at the end of the interval
CS
module control structure
Waves
Surface gravity waves
Callees call graph
Text view
mom_diabatic_driver::layered_diabatic → mom_bulk_mixed_layer::bulkmixedlayer
mom_diabatic_driver::layered_diabatic → mom_checksum_packages::interface::mom_state_chksum
mom_diabatic_driver::layered_diabatic → mom_checksum_packages::mom_state_stats
mom_diabatic_driver::layered_diabatic → mom_checksums::interface::hchksum
mom_diabatic_driver::layered_diabatic → mom_cpu_clock_infra::cpu_clock_begin
mom_diabatic_driver::layered_diabatic → mom_cpu_clock_infra::cpu_clock_end
mom_diabatic_driver::layered_diabatic → mom_cvmix_conv::calculate_cvmix_conv
mom_diabatic_driver::layered_diabatic → mom_cvmix_kpp::kpp_calculate
mom_diabatic_driver::layered_diabatic → mom_cvmix_kpp::kpp_compute_bld
mom_diabatic_driver::layered_diabatic → mom_cvmix_kpp::kpp_get_bld
mom_diabatic_driver::layered_diabatic → mom_cvmix_kpp::kpp_nonlocaltransport_saln
mom_diabatic_driver::layered_diabatic → mom_cvmix_kpp::kpp_nonlocaltransport_temp
mom_diabatic_driver::layered_diabatic → mom_diabatic_aux::adjust_salt
mom_diabatic_driver::layered_diabatic → mom_diabatic_aux::differential_diffuse_t_s
mom_diabatic_driver::layered_diabatic → mom_diabatic_aux::find_uv_at_h
mom_diabatic_driver::layered_diabatic → mom_diabatic_aux::set_pen_shortwave
mom_diabatic_driver::layered_diabatic → mom_diabatic_aux::tridiagts
mom_diabatic_driver::layered_diabatic → mom_diabatic_driver::diagnose_diabatic_diff_tendency
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::disable_averaging
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::enable_averages
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::interface::post_data
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::post_product_sum_u
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::post_product_sum_v
mom_diabatic_driver::layered_diabatic → mom_domain_infra::do_group_pass
mom_diabatic_driver::layered_diabatic → mom_domain_infra::interface::create_group_pass
mom_diabatic_driver::layered_diabatic → mom_domain_infra::interface::pass_var
mom_diabatic_driver::layered_diabatic → mom_entrain_diffusive::entrainment_diffusive
mom_diabatic_driver::layered_diabatic → mom_eos::interface::calculate_density
mom_diabatic_driver::layered_diabatic → mom_error_handler::calltree_enter
mom_diabatic_driver::layered_diabatic → mom_error_handler::calltree_leave
mom_diabatic_driver::layered_diabatic → mom_error_handler::calltree_showquery
mom_diabatic_driver::layered_diabatic → mom_error_handler::calltree_waypoint
mom_diabatic_driver::layered_diabatic → mom_forcing_type::calculatebuoyancyflux2d
mom_diabatic_driver::layered_diabatic → mom_forcing_type::interface::find_ustar
mom_diabatic_driver::layered_diabatic → mom_forcing_type::mom_forcing_chksum
mom_diabatic_driver::layered_diabatic → mom_geothermal::geothermal_entraining
mom_diabatic_driver::layered_diabatic → mom_interface_heights::calc_derived_thermo
mom_diabatic_driver::layered_diabatic → mom_interface_heights::convert_mld_to_ml_thickness
mom_diabatic_driver::layered_diabatic → mom_interface_heights::interface::thickness_to_dz
mom_diabatic_driver::layered_diabatic → mom_oda_incupd::apply_oda_incupd
mom_diabatic_driver::layered_diabatic → mom_regularize_layers::regularize_layers
mom_diabatic_driver::layered_diabatic → mom_set_diffusivity::set_diffusivity
mom_diabatic_driver::layered_diabatic → mom_sponge::apply_sponge
mom_diabatic_driver::layered_diabatic → mom_tracer_diabatic::tracer_vertdiff
mom_diabatic_driver::layered_diabatic → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::layered_diabatic → mom_variables::mom_thermovar_chksum
- subroutine extract_diabatic_member(CS, opacity_CSp, optics_CSp, evap_CFL_limit, minimum_forcing_depth, KPP_CSp, energetic_PBL_CSp, diabatic_aux_CSp, diabatic_halo, use_KPP)
Returns pointers or values of members within the diabatic_CS type. For extensibility, each returned argument is an optional argument
- Parameters
CS [in]
module control structure
opacity_CSp
A pointer to be set to the opacity control structure
optics_CSp
A pointer to be set to the optics control structure
KPP_CSp
A pointer to be set to the KPP CS
energetic_PBL_CSp
A pointer to be set to the ePBL CS
evap_CFL_limit [out]
The largest fraction of a layer that can be evaporated in one time-step [nondim].
minimum_forcing_depth [out]
The smallest depth over which heat and freshwater fluxes are applied [H ~> m or kg m-2].
diabatic_aux_CSp
A pointer to be set to the diabatic_aux control structure
diabatic_halo [out]
The halo size where the diabatic algorithms assume thermodynamics properties are valid.
use_KPP [out]
If true, diabatic is using KPP vertical mixing
Callers call graph
Text view
mom::initialize_mom → mom_diabatic_driver::extract_diabatic_member
mom::step_mom → mom_diabatic_driver::extract_diabatic_member
mom::step_mom_thermo → mom_diabatic_driver::extract_diabatic_member
mom::step_mom_tracer_dyn → mom_diabatic_driver::extract_diabatic_member
mom_dynamics_split_rk2::init_dyn_split_rk2_diabatic → mom_diabatic_driver::extract_diabatic_member
mom_hor_bnd_diffusion::hor_bnd_diffusion_init → mom_diabatic_driver::extract_diabatic_member
mom_neutral_diffusion::neutral_diffusion_init → mom_diabatic_driver::extract_diabatic_member
mom_offline_main::offline_transport_init → mom_diabatic_driver::extract_diabatic_member
- subroutine adiabatic(h, tv, fluxes, dt, G, GV, US, CS)
Routine called for adiabatic physics
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
h [inout]
thickness [H ~> m or kg m-2]
tv [inout]
points to thermodynamic fields
fluxes [inout]
boundary fluxes
dt [in]
time step [T ~> s]
US [in]
A dimensional unit scaling type
CS
module control structure
Callees call graph
- subroutine diagnose_diabatic_diff_tendency(tv, h, temp_old, saln_old, dt, G, GV, US, CS)
This routine diagnoses tendencies from application of diabatic diffusion using ALE algorithm. Note that layer thickness is not altered by diabatic diffusion.
- Parameters
G [in]
ocean grid structure
GV [in]
ocean vertical grid structure
tv [in]
points to updated thermodynamic fields
h [in]
thickness [H ~> m or kg m-2]
temp_old [in]
temperature prior to diabatic physics [C ~> degC]
saln_old [in]
salinity prior to diabatic physics [S ~> ppt]
dt [in]
time step [T ~> s]
US [in]
A dimensional unit scaling type
CS
module control structure
Callees call graph
Callers call graph
- subroutine diagnose_boundary_forcing_tendency(tv, h, temp_old, saln_old, h_old, dt, G, GV, US, CS)
This routine diagnoses tendencies from application of boundary fluxes. These impacts are generally 3d, in particular for penetrative shortwave. Other fluxes contribute 3d in cases when the layers vanish or are very thin, in which case we distribute the flux into k > 1 layers.
- Parameters
G [in]
ocean grid structure
GV [in]
ocean vertical grid structure
tv [in]
points to updated thermodynamic fields
h [in]
thickness after boundary flux application [H ~> m or kg m-2]
temp_old [in]
temperature prior to boundary flux application [C ~> degC]
saln_old [in]
salinity prior to boundary flux application [S ~> ppt]
h_old [in]
thickness prior to boundary flux application [H ~> m or kg m-2]
dt [in]
time step [T ~> s]
US [in]
A dimensional unit scaling type
CS
module control structure
Callees call graph
- subroutine diagnose_frazil_tendency(tv, h, temp_old, dt, G, GV, US, CS)
This routine diagnoses tendencies for temperature and heat from frazil formation. This routine is called twice from within subroutine diabatic; at start and at end of the diabatic processes. The impacts from frazil are generally a function of depth. Hence, when checking heat budget, be sure to remove HFSIFRAZIL from HFDS in k=1.
- Parameters
G [in]
ocean grid structure
GV [in]
ocean vertical grid structure
tv [in]
points to updated thermodynamic fields
h [in]
thickness [H ~> m or kg m-2]
temp_old [in]
temperature prior to frazil formation [C ~> degC]
dt [in]
time step [T ~> s]
US [in]
A dimensional unit scaling type
CS
module control structure
Callees call graph
Callers call graph
- subroutine adiabatic_driver_init(Time, G, param_file, diag, CS, tracer_flow_CSp)
A simplified version of diabatic_driver_init that will allow tracer column functions to be called without allowing any of the diabatic processes to be used.
- Parameters
Time [in]
current model time
G [in]
model grid structure
param_file [in]
the file to parse for parameter values
diag [inout]
regulates diagnostic output
CS
module control structure
tracer_flow_CSp
pointer to control structure of the tracer flow control module
Callees call graph
- subroutine diabatic_driver_init(Time, G, GV, US, param_file, useALEalgorithm, diag, ADp, CDp, CS, tracer_flow_CSp, sponge_CSp, ALE_sponge_CSp, oda_incupd_CSp, int_tide_CSp)
This routine initializes the diabatic driver module.
- Parameters
Time
model time
G [inout]
model grid structure
GV [in]
model vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
file to parse for parameter values
useALEalgorithm [in]
logical for whether to use ALE remapping
diag [inout]
structure to regulate diagnostic output
ADp [inout]
pointers to accelerations in momentum equations, to enable diagnostics, like energy budgets
CDp [inout]
pointers to terms in continuity equations
CS
module control structure
tracer_flow_CSp
pointer to control structure of the tracer flow control module
sponge_CSp
pointer to the sponge module control structure
ALE_sponge_CSp
pointer to the ALE sponge module control structure
oda_incupd_CSp
pointer to the ocean data assimilation incremental update module control structure
int_tide_CSp
pointer to the internal tide structure
Callees call graph
Text view
mom_diabatic_driver::diabatic_driver_init → mom_bulk_mixed_layer::bulkmixedlayer_init
mom_diabatic_driver::diabatic_driver_init → mom_cpu_clock_infra::cpu_clock_id
mom_diabatic_driver::diabatic_driver_init → mom_cvmix_conv::cvmix_conv_init
mom_diabatic_driver::diabatic_driver_init → mom_cvmix_ddiff::cvmix_ddiff_is_used
mom_diabatic_driver::diabatic_driver_init → mom_cvmix_kpp::kpp_init
mom_diabatic_driver::diabatic_driver_init → mom_cvmix_shear::cvmix_shear_is_used
mom_diabatic_driver::diabatic_driver_init → mom_diabatic_aux::diabatic_aux_init
mom_diabatic_driver::diabatic_driver_init → mom_diag_mediator::diag_grid_storage_init
mom_diabatic_driver::diabatic_driver_init → mom_diag_mediator::register_diag_field
mom_diabatic_driver::diabatic_driver_init → mom_diagnose_kdwork::kdwork_init
mom_diabatic_driver::diabatic_driver_init → mom_diapyc_energy_req::diapyc_energy_req_init
mom_diabatic_driver::diabatic_driver_init → mom_energetic_pbl::energetic_pbl_init
mom_diabatic_driver::diabatic_driver_init → mom_entrain_diffusive::entrain_diffusive_init
mom_diabatic_driver::diabatic_driver_init → mom_error_handler::mom_error
mom_diabatic_driver::diabatic_driver_init → mom_file_parser::interface::get_param
mom_diabatic_driver::diabatic_driver_init → mom_file_parser::interface::log_version
mom_diabatic_driver::diabatic_driver_init → mom_geothermal::geothermal_init
mom_diabatic_driver::diabatic_driver_init → mom_int_tide_input::int_tide_input_init
mom_diabatic_driver::diabatic_driver_init → mom_internal_tides::internal_tides_init
mom_diabatic_driver::diabatic_driver_init → mom_kappa_shear::kappa_shear_is_used
mom_diabatic_driver::diabatic_driver_init → mom_opacity::opacity_init
mom_diabatic_driver::diabatic_driver_init → mom_regularize_layers::regularize_layers_init
mom_diabatic_driver::diabatic_driver_init → mom_safe_alloc::interface::safe_alloc_ptr
mom_diabatic_driver::diabatic_driver_init → mom_set_diffusivity::set_diffusivity_init
mom_diabatic_driver::diabatic_driver_init → mom_tracer_flow_control::extract_tracer_flow_member
mom_diabatic_driver::diabatic_driver_init → mom_verticalgrid::get_thickness_units
- subroutine register_diabatic_restarts(G, GV, US, param_file, int_tide_CSp, restart_CSp, CS)
Routine to register restarts, pass-through to children modules
- Parameters
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
int_tide_CSp
Internal tide control structure
restart_CSp
MOM restart control structure
CS
module control structure
Callees call graph
Text view
mom_diabatic_driver::register_diabatic_restarts → mom_cvmix_kpp::register_kpp_restarts
mom_diabatic_driver::register_diabatic_restarts → mom_error_handler::mom_error
mom_diabatic_driver::register_diabatic_restarts → mom_file_parser::interface::read_param
mom_diabatic_driver::register_diabatic_restarts → mom_internal_tides::register_int_tide_restarts
- subroutine diabatic_driver_end(CS)
Routine to close the diabatic driver module
- Parameters
CS [inout]
module control structure
Callees call graph
Text view
mom_diabatic_driver::diabatic_driver_end → mom_cvmix_kpp::kpp_end
mom_diabatic_driver::diabatic_driver_end → mom_diabatic_aux::diabatic_aux_end
mom_diabatic_driver::diabatic_driver_end → mom_diagnose_kdwork::kdwork_end
mom_diabatic_driver::diabatic_driver_end → mom_diapyc_energy_req::diapyc_energy_req_end
mom_diabatic_driver::diabatic_driver_end → mom_energetic_pbl::energetic_pbl_end
mom_diabatic_driver::diabatic_driver_end → mom_geothermal::geothermal_end
mom_diabatic_driver::diabatic_driver_end → mom_opacity::opacity_end
mom_diabatic_driver::diabatic_driver_end → mom_set_diffusivity::set_diffusivity_end