Difference between revisions of "Equations of Motion"

From WikiROMS
Jump to navigationJump to search
m (doesn't like \cal :P)   (change visibility)
(added top and bottom BCs)   (change visibility)
Line 14: Line 14:


<math>\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} = 0</math>
<math>\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} = 0</math>
The variables are shown in this table:
{| border="1" cellspacing="0" cellpadding="5" align="center"
| <math>{D}_u, {D}_v, {D}_T, {D}_S</math>
| diffusive terms
|-
| <math>{F}_u, {F}_v, {F}_T, {F}_S</math>
| forcing terms
|-
| <math>f(x,y)</math>
| Coriolis parameter
|-
| <math>g</math>
| acceleration of gravity
|-
| <math>h(x,y)</math>
| bottom depth
|-
| <math>\nu, \kappa</math>
| horizontal viscosity and diffusivity
|-
| <math>K_m, K_T, K_S</math>
| vertical viscosity and diffusivity
|-
| <math>P</math>
| total pressure <math>P \approx -\rho_o gz</math>
|-
| <math>\phi(x,y,z,t)</math>
| dynamic pressure <math>\phi = \left(P/\rho_o \right)</math>
|-
| <math>\rho_o + \rho(x,y,z,t)</math>
| total {\sl in situ} density
|-
| <math>S(x,y,z,t)</math>
| salinity
|-
| <math>t</math>
| time
|-
| <math>T(x,y,z,t)</math>
| potential temperature
|-
| <math>u,v,w</math>
| the (<math>x,y,z</math>) components of vector velocity <math>\vec{v}</math>
|-
| <math>x,y</math>
| horizontal coordinates
|-
| <math>z</math>
| vertical coordinate
|-
| <math>\zeta(x,y,t)</math>
| the surface elevation
|-
|}
The first two equations express the momentum balance in
the <math>x</math>- and <math>y</math>-directions, respectively.  The time evolution of the
potential temperature and salinity fields, <math>T(x,y,z,t)</math> and
<math>S(x,y,z,t)</math>, are governed by the advective-diffusive equations.
The equation of state is given by
equation for density.  In the Boussinesq approximation, density
variations are neglected in the momentum equations except in their
contribution to the buoyancy force in the vertical momentum equation.
Under the hydrostatic approximation, it is further
assumed that the vertical pressure gradient balances the buoyancy
force.  The final equation expresses the continuity equation
for an incompressible fluid.  For the moment, the effects of forcing
and dissipation will be represented by the schematic terms <math>F</math>
and <math>D</math>, respectively.  The horizontal and vertical mixing will
be described more fully in [[Horizontal Mixing]] and [[Vertical Mixing Parameterizations]].
==Vertical Boundary Conditions==
The vertical boundary conditions can be prescribed as follows:
top (<math>z = \zeta(x,y,t))</math>:
::<math>K_m \, \frac{\partial u}{\partial z} = \tau^x_s (x,y,t)</math>
:: <math>K_m \, \frac{\partial v}{\partial z} = \tau_s^y(x,y,t)</math>
::<math>K_T \, \frac{\partial T}{\partial z} = {Q_T \over \rho_o c_P} + {1 \over \rho_o c_P} {dQ_T \over dT} (T - T_{\rm ref})</math>
::<math>K_S \, \frac{\partial S}{\partial z} = {(E-P)S \over \rho_o}</math>
::<math>w = {\partial \zeta \over \partial t}</math>
and bottom (<math>z = -h(x,y)</math>):
::<math>K_m \, \frac{\partial u}{\partial z} = \tau_b^x (x,y,t)</math>
::<math>K_m \, \frac{\partial v}{\partial z} = \tau_b^y (x,y,t)</math>
::<math>K_T \, \frac{\partial T}{\partial z} = 0</math>
::<math>K_S \, \frac{\partial S}{\partial z} = 0</math>
::<math>- w + \vec{v} \cdot \nabla h = 0</math>
The new variables above are:
{| border="1" cellspacing="0" cellpadding="5" align="center"
! Variable
! Description
|-
| <math>E-P</math>
| evaporation minus precipitation
|-
| <math>\gamma_1, \gamma_2</math>
| linear and quadratic bottom stress coefficients
|-
| <math>Q_T</math>
| surface heat flux
|-
| <math>\tau_s^x , \tau_s^y</math>
| surface wind stress
|-
| <math>\tau_b^x , \tau_b^y</math>
| bottom stress
|-
| <math>T_{\rm ref}</math>
| surface reference temperature
|-
|}
The surface boundary condition variables are defined in the table above.
Since <math>Q_T</math> is a strong function of the surface
temperature, it is also prudent to include a correction term for the
change in <math>Q</math> as the surface temperature drifts away from the reference
temperature that was used in computing <math>Q_T</math>.  On the variable bottom,
<math>z = -h(x,y)</math>, the horizontal velocity components are constrained to
accommodate a prescribed bottom stress which is a sum of linear and
quadratic terms (actually one or the other, or a log layer, depending on the cpp options):
<math>\tau_b^x = (\gamma_1 + \gamma_2 \sqrt{u^2 + v^2} ) u</math>
<math>\tau_b^y = (\gamma_1 + \gamma_2 \sqrt{u^2 + v^2} ) v</math>
The vertical heat and salt flux may also be prescribed at the bottom,
although they are usually set to zero.
==Horizontal Boundary Conditions==
As distributed, the model can easily be configured for a periodic
channel, a doubly periodic domain, or a closed basin.  Code is also
included for open boundaries which may or may not work for your
particular application.  Appropriate boundary conditions are
provided for <math>u,v,T,S,</math> and <math>\zeta</math>.
At every timestep the subroutines '''xxxx''' and
'''yyyy''' are called to fill in the necessary boundary values.
The model domain is logically rectangular, but it is possible to
mask out land areas on the boundary and in the interior.  Boundary
conditions on these masked regions are straightforward,
with a choice of no-slip or free-slip walls.
If biharmonic friction is used, a higher order boundary condition
must also be provided.  The model currently has this built into the
code where the biharmonic terms are calculated.  The high order
boundary conditions used for <math>u</math> are <math>\frac{\partial}{\partial x} \left(
\frac{h\nu}{mn} \frac{\partial ^2 u}{\partial x^2} \right) = 0</math> on the
eastern and western boundaries and <math>\frac{\partial}{\partial y} \left(
\frac{h\nu}{mn} \frac{\partial ^2 u}{\partial y^2} \right) = 0\,</math> on the
northern and southern boundaries.  The boundary conditions for <math>v,T,</math>
and <math>S</math> are similar.  These boundary conditions were chosen because
they preserve the property of no gain or loss of volume-integrated
momentum, temperature, or salt.

Revision as of 01:33, 4 November 2006

The primitive equations in Cartesian coordinates can be written:

The variables are shown in this table:

diffusive terms
forcing terms
Coriolis parameter
acceleration of gravity
bottom depth
horizontal viscosity and diffusivity
vertical viscosity and diffusivity
total pressure
dynamic pressure
total {\sl in situ} density
salinity
time
potential temperature
the () components of vector velocity
horizontal coordinates
vertical coordinate
the surface elevation

The first two equations express the momentum balance in the - and -directions, respectively. The time evolution of the potential temperature and salinity fields, and , are governed by the advective-diffusive equations. The equation of state is given by equation for density. In the Boussinesq approximation, density variations are neglected in the momentum equations except in their contribution to the buoyancy force in the vertical momentum equation. Under the hydrostatic approximation, it is further assumed that the vertical pressure gradient balances the buoyancy force. The final equation expresses the continuity equation for an incompressible fluid. For the moment, the effects of forcing and dissipation will be represented by the schematic terms and , respectively. The horizontal and vertical mixing will be described more fully in Horizontal Mixing and Vertical Mixing Parameterizations.

Vertical Boundary Conditions

The vertical boundary conditions can be prescribed as follows:

top (:

and bottom ():

The new variables above are:

Variable Description
evaporation minus precipitation
linear and quadratic bottom stress coefficients
surface heat flux
surface wind stress
bottom stress
surface reference temperature

The surface boundary condition variables are defined in the table above. Since is a strong function of the surface temperature, it is also prudent to include a correction term for the change in as the surface temperature drifts away from the reference temperature that was used in computing . On the variable bottom, , the horizontal velocity components are constrained to accommodate a prescribed bottom stress which is a sum of linear and quadratic terms (actually one or the other, or a log layer, depending on the cpp options):

The vertical heat and salt flux may also be prescribed at the bottom, although they are usually set to zero.

Horizontal Boundary Conditions

As distributed, the model can easily be configured for a periodic channel, a doubly periodic domain, or a closed basin. Code is also included for open boundaries which may or may not work for your particular application. Appropriate boundary conditions are provided for and . At every timestep the subroutines xxxx and yyyy are called to fill in the necessary boundary values.

The model domain is logically rectangular, but it is possible to mask out land areas on the boundary and in the interior. Boundary conditions on these masked regions are straightforward, with a choice of no-slip or free-slip walls.

If biharmonic friction is used, a higher order boundary condition must also be provided. The model currently has this built into the code where the biharmonic terms are calculated. The high order boundary conditions used for are on the eastern and western boundaries and on the northern and southern boundaries. The boundary conditions for and are similar. These boundary conditions were chosen because they preserve the property of no gain or loss of volume-integrated momentum, temperature, or salt.