Initialise namelist variables and prepare diagnostics.
register fields
DESCRIPTION
Register diagnostic fields.
flux_calculations
DESCRIPTION
This function computes the thickness weighted tendency of tracers
due to neutral physics as well as the implicit vertical diffusivity
term.
compute_mass_diff
DESCRIPTION
Subroutine computes the vertical neutral diffusion tracer flux component.
Compute this component for all tracers at level k.
Surface and bottom boundary condition fz(k=0)=fz(k=kmt(i,j))=0
fz has physical dimensions (density*diffusivity*tracer gradient)
This is nearly the same as the subroutine in ocean_nphysicsA.
geometric_terms
DESCRIPTION
Calculate the density weighted quarter cell volumes of the triads.
compute_33_term
DESCRIPTION
K33 is the (3,3) term in small angle Redi diffusion tensor.
It is broken into an explicit in time piece and implicit
in time piece. It is weighted by density for non-Boussinesq
and rho0 for Boussinesq.
K33 has units (kg/m^3)*m^2/sec.
compute_fluxes
DESCRIPTION
Computes the tracer fluxes due to neutral diffusion and skew diffusion.
Fluxes are computed at the tracer cell faces and have units of [kg*T/s].
apply_tracer_limits
DESCRIPTION
If the neutral_physics_limit flag is set, then the flux used in regions of large
tracer gradients (as defined by T_prog(n)tmask_limit) are set to have purely
horizontal diffusion, with no vertical or skew terms.
update_tendencies
DESCRIPTION
Update the tendency for each tracer in each cell based on the total flux
flowing through each of the six cell faces. The tendency is calculated
separately for the flux due to neutral diffusion and due skew diffusion.
NAMELIST
&ocean_nphysics_flux_nml
diffusion_all_explicit
To compute K33 explicitly in time. This setting is meant
only for debugging tests, since in general the simulation
will go unstable.
Default diffusion_all_explicit=.false.
[logical]
neutral_physics_limit
Revert to horizontal diffusion when tracer falls outside specified range.
Default neutral_physics_limit=.true., so to keep tracers from going
too far outside of physical range.
[logical]
REFERENCES
S.M. Griffies
Fundamentals of Ocean Climate Models (FOCM) (2004)
Princeton University Press