MOM_tracer_diabatic module reference
This module contains routines that implement physical fluxes of tracers (e.g. due to surface fluxes or mixing). These are intended to be called from call_tracer_column_fns in the MOM_tracer_flow_control module.
Functions/Subroutines
This subroutine solves a tridiagonal equation for the final tracer concentrations after the dual-entrainments, and possibly sinking or surface and bottom sources, are applied. The sinking is implemented with an fully implicit upwind advection scheme. Alternate time units can be used for the timestep, surface and bottom fluxes and sink_rate provided they are all consistent. |
|
This subroutine solves a tridiagonal equation for the final tracer concentrations after Eulerian mixing, and possibly sinking or surface and bottom sources, are applied. The sinking is implemented with an fully implicit upwind advection scheme. Alternate time units can be used for the timestep, surface and bottom fluxes and sink_rate provided they are all consistent. |
|
This routine is modeled after applyBoundaryFluxesInOut in MOM_diabatic_aux.F90 NOTE: Please note that in this routine sfc_flux gets set to zero to ensure that the surface flux of the tracer does not get applied again during a subsequent call to tracer_vertdif |
Functions/Subroutine Documentation
- subroutine tracer_vertdiff(h_old, ea, eb, dt, tr, G, GV, sfc_flux, btm_flux, btm_reservoir, sink_rate, convert_flux_in)
This subroutine solves a tridiagonal equation for the final tracer concentrations after the dual-entrainments, and possibly sinking or surface and bottom sources, are applied. The sinking is implemented with an fully implicit upwind advection scheme. Alternate time units can be used for the timestep, surface and bottom fluxes and sink_rate provided they are all consistent.
- Parameters
G [in]
ocean grid structure
GV [in]
ocean vertical grid structure
h_old [in]
layer thickness before entrainment [H ~> m or kg m-2]
ea [in]
amount of fluid entrained from the layer above [H ~> m or kg m-2]
eb [in]
amount of fluid entrained from the layer below [H ~> m or kg m-2]
tr [inout]
tracer concentration in concentration units [CU]
dt [in]
amount of time covered by this call [T ~> s]
sfc_flux [in]
surface flux of the tracer in units of [CU R Z T-1 ~> CU kg m-2 s-1] or [CU H ~> CU m or CU kg m-2] if convert_flux_in is .false.
btm_flux [in]
The (negative upward) bottom flux of the tracer in [CU R Z T-1 ~> CU kg m-2 s-1] or [CU H ~> CU m or CU kg m-2] if convert_flux_in is .false.
btm_reservoir [inout]
amount of tracer in a bottom reservoir [CU R Z ~> CU kg m-2]
sink_rate [in]
rate at which the tracer sinks [Z T-1 ~> m s-1]
convert_flux_in [in]
True if the specified sfc_flux needs to be integrated in time
sink_dist
The distance the tracer sinks in a time step [H ~> m or kg m-2].
sfc_src
The time-integrated surface source of the tracer [CU H ~> CU m or CU kg m-2].
btm_src
The time-integrated bottom source of the tracer [CU H ~> CU m or CU kg m-2].
b1
b1 is used by the tridiagonal solver [H-1 ~> m-1 or m2 kg-1].
d1
d1=1-c1 is used by the tridiagonal solver [nondim].
c1
c1 is used by the tridiagonal solver [nondim].
h_minus_dsink
The layer thickness minus the difference in sinking rates across the layer [H ~> m or kg m-2]. By construction, 0 <= h_minus_dsink < h_work.
sink
The tracer's sinking distances at the interfaces, limited to prevent characteristics from crossing within a single timestep [H ~> m or kg m-2].
b_denom_1
The first term in the denominator of b1 [H ~> m or kg m-2].
h_tr
h_tr is h at tracer points with a h_neglect added to ensure positive definiteness [H ~> m or kg m-2].
h_neglect
A thickness that is so small it is usually lost in roundoff and can be neglected [H ~> m or kg m-2].
Callers call graph
Text view
advection_test_tracer::advection_test_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
boundary_impulse_tracer::boundary_impulse_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
dome_tracer::dome_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
dyed_obc_tracer::dyed_obc_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
ideal_age_example::ideal_age_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
isomip_tracer::isomip_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
marbl_tracers::marbl_tracers_column_physics → mom_tracer_diabatic::tracer_vertdiff
mom_cfc_cap::cfc_cap_column_physics → mom_tracer_diabatic::tracer_vertdiff
mom_diabatic_driver::layered_diabatic → mom_tracer_diabatic::tracer_vertdiff
mom_ocmip2_cfc::ocmip2_cfc_column_physics → mom_tracer_diabatic::tracer_vertdiff
nw2_tracers::nw2_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
oil_tracer::oil_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
regional_dyes::dye_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
rgc_tracer::rgc_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
- subroutine tracer_vertdiff_Eulerian(h_old, ent, dt, tr, G, GV, sfc_flux, btm_flux, btm_reservoir, sink_rate, convert_flux_in)
This subroutine solves a tridiagonal equation for the final tracer concentrations after Eulerian mixing, and possibly sinking or surface and bottom sources, are applied. The sinking is implemented with an fully implicit upwind advection scheme. Alternate time units can be used for the timestep, surface and bottom fluxes and sink_rate provided they are all consistent.
- Parameters
G [in]
ocean grid structure
GV [in]
ocean vertical grid structure
h_old [in]
layer thickness before entrainment [H ~> m or kg m-2]
ent [in]
Amount of fluid mixed across interfaces [H ~> m or kg m-2]
tr [inout]
tracer concentration in concentration units [CU]
dt [in]
amount of time covered by this call [T ~> s]
sfc_flux [in]
surface flux of the tracer in units of [CU R Z T-1 ~> CU kg m-2 s-1] or [CU H ~> CU m or CU kg m-2] if convert_flux_in is .false.
btm_flux [in]
The (negative upward) bottom flux of the tracer in [CU kg m-2 T-1 ~> CU kg m-2 s-1] or [CU H ~> CU m or CU kg m-2] if convert_flux_in is .false.
btm_reservoir [inout]
amount of tracer in a bottom reservoir [CU R Z ~> CU kg m-2]
sink_rate [in]
rate at which the tracer sinks [Z T-1 ~> m s-1]
convert_flux_in [in]
True if the specified sfc_flux needs to be integrated in time
sink_dist
The distance the tracer sinks in a time step [H ~> m or kg m-2].
sfc_src
The time-integrated surface source of the tracer [CU H ~> CU m or CU kg m-2].
btm_src
The time-integrated bottom source of the tracer [CU H ~> CU m or CU kg m-2].
b1
b1 is used by the tridiagonal solver [H-1 ~> m-1 or m2 kg-1].
d1
d1=1-c1 is used by the tridiagonal solver [nondim].
c1
c1 is used by the tridiagonal solver [nondim].
h_minus_dsink
The layer thickness minus the difference in sinking rates across the layer [H ~> m or kg m-2]. By construction, 0 <= h_minus_dsink < h_work.
sink
The tracer's sinking distances at the interfaces, limited to prevent characteristics from crossing within a single timestep [H ~> m or kg m-2].
b_denom_1
The first term in the denominator of b1 [H ~> m or kg m-2].
h_tr
h_tr is h at tracer points with a h_neglect added to ensure positive definiteness [H ~> m or kg m-2].
h_neglect
A thickness that is so small it is usually lost in roundoff and can be neglected [H ~> m or kg m-2].
Callees call graph
- subroutine applyTracerBoundaryFluxesInOut(G, GV, Tr, dt, fluxes, h, evap_CFL_limit, minimum_forcing_depth, in_flux_optional, out_flux_optional, update_h_opt)
This routine is modeled after applyBoundaryFluxesInOut in MOM_diabatic_aux.F90 NOTE: Please note that in this routine sfc_flux gets set to zero to ensure that the surface flux of the tracer does not get applied again during a subsequent call to tracer_vertdif
- Parameters
G [in]
Grid structure
GV [in]
ocean vertical grid structure
Tr [inout]
Tracer concentration on T-cell [conc]
dt [in]
Time-step over which forcing is applied [T ~> s]
fluxes [in]
Surface fluxes container
h [inout]
Layer thickness [H ~> m or kg m-2]
evap_CFL_limit [in]
Limit on the fraction of the water that can be fluxed out of the top layer in a timestep [nondim]
minimum_forcing_depth [in]
The smallest depth over which fluxes can be applied [H ~> m or kg m-2]
in_flux_optional [in]
The total time-integrated amount of tracer that enters with freshwater [conc H ~> conc m or conc kg m-2]
out_flux_optional [in]
The total time-integrated amount of tracer that leaves with freshwater [conc H ~> conc m or conc kg m-2]
update_h_opt [in]
Optional flag to determine whether h should be updated
Callees call graph
Callers call graph
Text view
advection_test_tracer::advection_test_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
boundary_impulse_tracer::boundary_impulse_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
dome_tracer::dome_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
dyed_obc_tracer::dyed_obc_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
ideal_age_example::ideal_age_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
isomip_tracer::isomip_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
marbl_tracers::marbl_tracers_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
mom_cfc_cap::cfc_cap_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
mom_ocmip2_cfc::ocmip2_cfc_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
mom_offline_main::offline_fw_fluxes_into_ocean → mom_tracer_diabatic::applytracerboundaryfluxesinout
mom_offline_main::offline_fw_fluxes_out_ocean → mom_tracer_diabatic::applytracerboundaryfluxesinout
nw2_tracers::nw2_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
oil_tracer::oil_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
regional_dyes::dye_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
rgc_tracer::rgc_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout