S-coordinate
Following Song and Haidvogel (1994), the vertical coordinate has
been chosen to be:
![{\displaystyle z=\zeta +\left(1+{\zeta \over h}\right)\left[h_{c}s+(h-h_{c})C(s)\right],\qquad \qquad -1\leq s\leq 0}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/dc086a4dfe9703eb3424f6e8e53f63de73914042)
where
is either the minimum depth or a shallower depth above which we wish to have more resolution.
is defined as:
![{\displaystyle C(s)=(1-b){\sinh(\theta s) \over \sinh \theta }+b{\tanh[\theta (s+{1 \over 2})]-\tanh({1 \over 2}\theta ) \over 2\tanh({1 \over 2}\theta )}}](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/5147aa9b14ed759eaf055b5a354a5277498432db)
where
and
are surface and bottom control parameters. Their ranges are
and
,
respectively. The first equation leads to
for
and
for
.
Some features of this coordinate system:
- It is a generalization of the
-coordinate system. Letting
go to zero and using L'Hopital's rule, we get:

which is the
-coordinate.
- It has a linear dependence on
and is infinitely differentiable in
.
- The larger the value of
, the more resolution is kept above
.
- For
, the resolution all goes to the surface as
is increased.
- For
, the resolution goes to both the surface and the bottom equally as
is increased.
- For
there is a subtle mismatch in the discretization of the model equations, for instance in the horizontal viscosity term. We recommend that you stick with "reasonable" values of
, say
.
- Some problems turn out to be sensitive to the value of
used.
The following figure shows the
-surfaces for several values of
and
for one of our domains. It was produced by a Matlab tool
written by Hernan Arango which is available from our web site.
[figure]
\caption{The
-surfaces for the North Atlantic with (a)
and
, (b)
and
, (c)
and
. (d) The actual values used in this domain were
and
.}
We find it convenient to define:

The derivative of
can be computed analytically:
![{\displaystyle {\partial C(s) \over \partial s}=(1-b){\cosh(\theta s) \over \sinh \theta }\theta +b{\coth({1 \over 2}\theta ) \over 2\cosh ^{2}[\theta (s+{1 \over 2})]}\theta }](https://www.myroms.org/www.myroms.org/v1/media/math/render/svg/03b2fa59b4c5ce2fdfa861533ada8f3d376ead72)
However, we choose to compute
discretely as
since this leads to the vertical sum of
being exactly the total water depth
.