Equations of Motion: Difference between revisions
Rob found on the web that \,\! forces the TeX png image generation (change visibility) |
No edit summary (change visibility) |
||
Line 2: | Line 2: | ||
the <math>\,\!x</math>- and <math>\,\!y</math>-directions are: | the <math>\,\!x</math>- and <math>\,\!y</math>-directions are: | ||
<math>\frac{\partial u}{\partial t} + \vec{v} \cdot \nabla u - fv = - \frac{\partial \phi}{\partial x} + {F}_u + {D}_u</math> | :<math>\frac{\partial u}{\partial t} + \vec{v} \cdot \nabla u - fv = - \frac{\partial \phi}{\partial x} + {F}_u + {D}_u</math> | ||
<math>\frac{\partial v}{\partial t} + \vec{v} \cdot \nabla v + fu = - \frac{\partial \phi}{\partial y} + {F}_v + {D}_v</math> | :<math>\frac{\partial v}{\partial t} + \vec{v} \cdot \nabla v + fu = - \frac{\partial \phi}{\partial y} + {F}_v + {D}_v</math> | ||
The time evolution of the | The time evolution of the | ||
Line 10: | Line 10: | ||
<math>\,\!S(x,y,z,t)</math>, are governed by the advective-diffusive equations: | <math>\,\!S(x,y,z,t)</math>, are governed by the advective-diffusive equations: | ||
<math>\frac{\partial T}{\partial t} + \vec{v} \cdot \nabla T ={F}_T + {D}_T</math> | :<math>\frac{\partial T}{\partial t} + \vec{v} \cdot \nabla T ={F}_T + {D}_T</math> | ||
<math>\frac{\partial S}{\partial t} + \vec{v} \cdot \nabla S ={F}_S + {D}_S</math> | :<math>\frac{\partial S}{\partial t} + \vec{v} \cdot \nabla S ={F}_S + {D}_S</math> | ||
The equation of state is given by: | The equation of state is given by: | ||
<math>\rho = \rho(T,S,P)\,\!</math> | :<math>\rho = \rho(T,S,P)\,\!</math> | ||
In the Boussinesq approximation, density | In the Boussinesq approximation, density | ||
Line 25: | Line 25: | ||
force: | force: | ||
<math>\frac{\partial \phi}{\partial z} = \frac{-\rho g}{\rho_o}</math> | :<math>\frac{\partial \phi}{\partial z} = \frac{-\rho g}{\rho_o}</math> | ||
The final equation expresses the continuity equation | The final equation expresses the continuity equation | ||
for an incompressible fluid: | for an incompressible fluid: | ||
<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> | ||
For the moment, the effects of forcing | For the moment, the effects of forcing | ||
Line 95: | Line 95: | ||
The vertical boundary conditions can be prescribed as follows: | The vertical boundary conditions can be prescribed as follows: | ||
top (<math>z = \zeta(x,y,t))\,\!</math>: | :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 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_m \, \frac{\partial v}{\partial z} = \tau_s^y(x,y,t)</math> | ||
Line 102: | Line 102: | ||
::<math>w = {\partial \zeta \over \partial t}</math> | ::<math>w = {\partial \zeta \over \partial t}</math> | ||
and bottom (<math>z = -h(x,y)\,\!</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 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_m \, \frac{\partial v}{\partial z} = \tau_b^y (x,y,t)</math> | ||
Line 143: | Line 143: | ||
quadratic terms (actually one or the other, or a log layer, depending on the cpp options): | 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^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> | :<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, | The vertical heat and salt flux may also be prescribed at the bottom, |
Revision as of 17:35, 11 November 2006
The primitive equations in Cartesian coordinates are shown here. The momentum balance in the - and -directions are:
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:
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. The variables used are shown here:
diffusive terms | |
forcing terms | |
Coriolis parameter | |
acceleration of gravity | |
bottom depth | |
horizontal viscosity and diffusivity | |
vertical viscosity and diffusivity | |
total pressure | |
dynamic pressure | |
total in situ density | |
salinity | |
time | |
potential temperature | |
the () components of vector velocity | |
horizontal coordinates | |
vertical coordinate | |
the surface elevation |
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.