nw2_tracers module reference
Ideal tracers designed to help diagnose a tracer diffusivity tensor in NeverWorld2
Data Types
The control structure for the nw2_tracers package |
Functions/Subroutines
Register the NW2 tracer fields to be used with MOM. |
|
Sets the NW2 traces to their initial values and sets up the tracer output |
|
Applies diapycnal diffusion, aging and regeneration at the surface to the NW2 tracers |
|
The target value of a NeverWorld2 tracer label m [conc] at non-dimensional position x=lon/Lx, y=lat/Ly, z=eta/H |
|
Deallocate any memory associated with this tracer package |
Detailed Description
TBD
Type Documentation
- type, public :: nw2_tracers_CS
The control structure for the nw2_tracers package
- Parameters
ntr
The number of tracers that are actually used.
Time
A pointer to the ocean model's clock.
tr_Reg
A pointer to the tracer registry
tr
The array of tracers used in this package, in [conc] (g m-3)?
restore_rate
The rate at which the tracer is damped toward its target profile [T-1 ~> s-1]
diag
A structure that is used to regulate the timing of diagnostic output.
restart_CSp
A pointer to the restart controls structure
Functions/Subroutine Documentation
- logical function register_nw2_tracers(HI, GV, US, param_file, CS, tr_Reg, restart_CS)
Register the NW2 tracer fields to be used with MOM.
- Parameters
HI [in]
A horizontal index type 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
CS
The control structure returned by a previous call to register_nw2_tracer.
tr_Reg
A pointer that is set to point to the control structure for the tracer advection and diffusion module
restart_CS [inout]
MOM restart control struct
Callees call graph
Callers call graph
- subroutine initialize_nw2_tracers(restart, day, G, GV, US, h, tv, diag, CS)
Sets the NW2 traces to their initial values and sets up the tracer output
- Parameters
restart [in]
.true. if the fields have already been read from a restart file.
day [in]
Time of the start of the run.
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
diag [in]
A structure that is used to regulate diagnostic output.
CS
The control structure returned by a previous call to register_nw2_tracer.
Callees call graph
Text view
nw2_tracers::initialize_nw2_tracers → mom_error_handler::mom_error
nw2_tracers::initialize_nw2_tracers → mom_interface_heights::interface::thickness_to_dz
nw2_tracers::initialize_nw2_tracers → mom_restart::interface::query_initialized
nw2_tracers::initialize_nw2_tracers → mom_restart::interface::set_initialized
nw2_tracers::initialize_nw2_tracers → nw2_tracers::nw2_tracer_dist
Callers call graph
- subroutine nw2_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, tv, CS, evap_CFL_limit, minimum_forcing_depth)
Applies diapycnal diffusion, aging and regeneration at the surface to the NW2 tracers
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
h_old [in]
Layer thickness before entrainment [H ~> m or kg m-2].
h_new [in]
Layer thickness after entrainment [H ~> m or kg m-2].
ea [in]
an array to which the amount of fluid entrained from the layer above during this call will be added [H ~> m or kg m-2].
eb [in]
an array to which the amount of fluid entrained from the layer below during this call will be added [H ~> m or kg m-2].
fluxes [in]
A structure containing pointers to thermodynamic and tracer forcing fields. Unused fields have NULL ptrs.
dt [in]
The amount of time covered by this call [T ~> s]
US [in]
A dimensional unit scaling type
tv [in]
A structure pointing to various thermodynamic variables
CS
The control structure returned by a previous call to register_nw2_tracer.
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]
Callees call graph
Text view
nw2_tracers::nw2_tracer_column_physics → mom_error_handler::mom_error
nw2_tracers::nw2_tracer_column_physics → mom_interface_heights::interface::thickness_to_dz
nw2_tracers::nw2_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
nw2_tracers::nw2_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
nw2_tracers::nw2_tracer_column_physics → nw2_tracers::nw2_tracer_dist
Callers call graph
- real function nw2_tracer_dist(m, G, GV, eta, i, j, k)
The target value of a NeverWorld2 tracer label m [conc] at non-dimensional position x=lon/Lx, y=lat/Ly, z=eta/H
- Parameters
m [in]
Indicates the NW2 tracer
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
eta [in]
Interface position [Z ~> m]
i [in]
Cell index i
j [in]
Cell index j
k [in]
Layer index k
Callers call graph
- subroutine nw2_tracers_end(CS)
Deallocate any memory associated with this tracer package
- Parameters
CS
The control structure returned by a previous call to register_nw2_tracers.