Numerical Solution Technique

From WikiROMS
Jump to navigationJump to search
Numerical Solution Technique

Horizontal Discretization

In the horizontal, the ROMS governing equations are discretized over a boundary-fitted, orthogonal curvilinear coordinates (ξ, η) grid. The general formulation of the curvilinear coordinates system allows Cartesian, polar and spherical coordinates applications. The transformation of any of these coordinates to ROMS (ξ, η) grid is specified in the metric terms (pm, pn).

The model state variables are staggered using an Arakawa C-grid. As illustrated below, the free-surface (zeta), density (ρ), and active/passive tracers (t) are located at the center of the cell whereas the horizontal velocity (u, v) are located at the (west/east, south/north) edges of the cell. That is, the density is evaluated between points where the currents are evaluated.


ROMS staggered horizontal grid


In ROMS all the state arrays are dimensioned the same size to facilitate parallelization. However, the computational ranges for all the state variables are:


Variable Interior Range Full Range
ρ-type 1:Lm(ng),1:Mm(ng) 0:L(ng),0:M(ng)
ψ-type 2:Lm(ng),2:Mm(ng) 1:L(ng),1:M(ng)
u-type 2:Lm(ng),1:Mm(ng) 1:L(ng),0:M(ng)
v-type 1:Lm(ng),2:Mm(ng) 0:L(ng),1:M(ng)


Coastal boundaries can also be specified as a finite-discretized grid via land/sea masking arrays (rmask, umask, and vmask).

Vertical Discretization

The ROMS governing equations are discretized over variable topography using a stretched, terrain-following, vertical coordinate. As a result, each grid cell may have different level thickness (Hz) and volume. The model state variables are vertically staggered so that horizontal momentum (u, v), (ρ), and active/passive tracers (t) are located at the center of the grid cell. The vertical velocity (ω, w) and vertical mixing variables (Akt, Akv, etc) are located at the bottom and top faces of cell. See diagram below.


Vieste-Dubrovnik Transect
ROMS staggered vertical grid


The total thickness of the water column is ζ(i,j)+h(i,j) . The bathymetry (h) is usually time invariant whereas the free-surface (ζ) evolves in time. However, in sediment applications h changes with time when SED_MORPH is activated. At input and output, the bathymetry is always a positive quantity. However, the depths z_r(i,j,k) and z_w(i,j,k) of every grid cell are negative quantities in ROMS.

Time-Stepping

Horizontal and Vertical Advection

Pressure Gradient