Model Diagnostics

From WikiROMS
Revision as of 19:27, 14 April 2008 by Robertson (talk | contribs) (New page: <div class="title">Diagnostics</div> Time-averaged values for each of the terms in the momentum and tracer equations can be written out by defining the variables [[Options#DIAGNOSTICS_UV|D...)
(change visibility) (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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_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_hvisc v_hvisc Horizontal viscosity contribution*
u_prsgrd v_prsgrd Pressure gradient contribution
u_vadv v_vadv Vertical advection contribution*
u_vvisc v_vvisc Vertical viscosity contribution*


Tracer Diagnostic terms (Tunits/s)
Tname_hadv Horizontal advection contribution
Tname_hdiff Horizontal diffusivity contribution*
Tname_vadv Vertical advection contribution
Tname_vdiff Vertical diffusivity contribution
Tname_rate Net time rate-of-change

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 Dn is water column depth at barotropic (short) timestep n and Rn is the right-hand-side term.
Combining:



Expanding:



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