Terrain-Following Coordinate Transformation
From the point of view of the computational model, it is highly
convenient to introduce a stretched vertical coordinate system which
essentially "flattens out" the variable bottom at
.
Such "
" coordinate systems have long been used, with slight
appropriate modification, in both meteorology and oceanography
[e.g., Phillips (1957) and Freeman et al. (1972)].
To proceed, we make the coordinate transformation:

|
(1)
|
See Vertical S-coordinate for the form of
used here. Also, see Shchepetkin and McWilliams, 2005 for a discussion about the nature of this form of
and how it
differs from that used in SCRUM.
In the stretched system, the vertical coordinate
spans the range
; we are therefore left with level upper (
) and lower (
) bounding surfaces. The chain rules for this transformation are:

|
(2)
|
where

|
(3)
|
As a trade-off for this geometric simplification, the dynamic equations become somewhat more complicated. The resulting dynamic equations, after dropping the carats, are:
![{\displaystyle {\partial u \over \partial t}-fv+{\vec {v}}\cdot \nabla u=-{\partial \phi \over \partial x}-\left({\frac {g\rho }{\rho _{o}}}\right){\frac {\partial z}{\partial x}}-g{\partial \zeta \over \partial x}+{1 \over H_{z}}{\partial \over \partial \sigma }\left[{(K_{m}+\nu ) \over H_{z}}{\partial u \over \partial \sigma }\right]+{\cal {F}}_{u}+{\cal {D}}_{u}}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/487b4e188a579e162dabc07d33966bd1c9b47f0a)
|
(4)
|
![{\displaystyle {\frac {\partial v}{\partial t}}+fu+{\vec {v}}\cdot \nabla v=-{\frac {\partial \phi }{\partial y}}-\left({\frac {g\rho }{\rho _{o}}}\right){\frac {\partial z}{\partial y}}-g{\partial \zeta \over \partial y}+{1 \over H_{z}}{\partial \over \partial \sigma }\left[{(K_{m}+\nu ) \over H_{z}}{\partial v \over \partial \sigma }\right]+{\cal {F}}_{v}+{\cal {D}}_{v}}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/8dc2f5338bce5024907b81f40dad0c97c2e1eb0e)
|
(5)
|
![{\displaystyle {\frac {\partial C}{\partial t}}+{\vec {v}}\cdot \nabla C={1 \over H_{z}}{\partial \over \partial \sigma }\left[{(K_{C}+\nu ) \over H_{z}}{\partial C \over \partial \sigma }\right]+{\cal {F}}_{C}+{\cal {D}}_{C}}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/af6892023a11694d2a145679e95ac2f95f360ebf)
|
(6)
|

|
(7)
|

|
(8)
|

|
(9)
|
where

|
(10)
|

|
(11)
|
The vertical velocity in
coordinates is
![{\displaystyle \Omega (x,y,\sigma ,t)={1 \over H_{z}}\left[w-{z+h \over \zeta +h}{\partial \zeta \over \partial t}-u{\partial z \over \partial x}-v{\partial z \over \partial y}\right]}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/e4770e99d7e01eec1bb1529d1f8e9c766f4a8b7d)
|
(12)
|
and

|
(13)
|
Vertical Boundary Conditions
In the stretched coordinate system, the vertical boundary conditions
become:
top (
):

|
(14)
|
and bottom (
):

|
(15)
|
Note the simplification of the boundary conditions on vertical
velocity that arises from the
coordinate transformation.