Model Diagnostics

From WikiROMS
Jump to: navigation, search
Model Diagnostics

Time-averaged values for each of the terms in the momentum and tracer equations can be written out by defining the variables DIAGNOSTICS_UV and DIAGNOSTICS_TS, respectively, in cppdefs.h.


Output Variables

The tables below show the variables that are written to the diagnostics output file.

2D Diagnostic momentum terms (m/s2)
ubar_accel vbar_accel Net acceleration
ubar_cor vbar_cor Coriolis contribution*
ubar_hadv vbar_hadv Horizontal advection contribution*
ubar_xadv vbar_xadv Horizontal advection -direction component
ubar_yadv vbar_yadv Horizontal advection -direction component
ubar_hvisc vbar_hvisc Horizontal viscosity contribution*
ubar_xvisc vbar_xvisc Horizontal viscosity -direction component
ubar_yvisc vbar_yvisc Horizontal viscosity -direction component
ubar_prsgrd vbar_prsgrd Pressure gradient contribution
ubar_strs vbar_strs Stress divergence contribution


3D Diagnostic momentum terms (m/s2)
u_accel v_accel Net acceleration
u_cor v_cor Coriolis contribution*
u_hadv v_hadv Horizontal advection contribution*
u_xadv v_xadv Horizontal advection -direction component
u_yadv v_yadv Horizontal advection -direction component
u_vadv v_vadv Vertical advection contribution*
u_hvisc v_hvisc Horizontal viscosity contribution*
u_xvisc v_xvisc Horizontal viscosity -direction component
u_yvisc v_yvisc Horizontal viscosity -direction component
u_prsgrd v_prsgrd Pressure gradient contribution
u_vvisc v_vvisc Vertical viscosity contribution*


Tracer Diagnostic terms (Tunits/s)
Tname_hadv Horizontal advection contribution
Tname_xadv Horizontal advection -direction component
Tname_yadv Horizontal advection -direction component
Tname_hdiff Horizontal diffusivity contribution*
Tname_xdiff Horizontal diffusivity -direction component
Tname_ydiff Horizontal diffusivity -direction component
Tname_sdiff Horizontal diffusivity -direction component due to rotated tensor
(used only when MIX_GEO_TS or MIX_ISO_TS is set).
Tname_vadv Vertical advection contribution
Tname_vdiff Vertical diffusivity contribution
Tname_rate Net time rate-of-change


Vorticity Diagnostics
pvorticity_bar Depth integrated 2D potential vorticity (m-1 s-1)
rvorticity_bar Depth integrated 2D relative vorticity (s-1)
pvorticity 3D potential vorticity (m-1 s-1)
rvorticity 3D relative vorticity (s-1)


where Tname represents the name of the tracer (i.e. temp, salt, etc.).


NoteThe diagnostics code adapts to the model configuration, the terms marked with * are written to the diagnostics output file when appropriate. Diagnostic terms are reported for all tracers.


Because the diagnostic terms are accelerations (changes in current velocity over time), the terms from the depth-average momentum calculations must be integrated over all short timesteps when the model is configured in 3D.

Derivation of the 2D momentum diagnostic terms integrated over short timesteps.


where is water column depth at barotropic (short) timestep and is the right-hand-side term. Combining:



Expanding:



where the asterisks ( ) superscript denotes the value calculated during corrector timestep.