The requirement for a boundary-following coordinate system and for a
laterally variable grid resolution can both be met (for suitably
smooth domains) by introducing an appropriate orthogonal coordinate
transformation in the horizontal. Let the new coordinates be
and where the relationship of horizontal arc
length to the differential distance is given by:
Here, and are the scale factors which
relate the differential distances to the
actual (physical) arc lengths.
It is helpful to write the equations in vector notation and to use
the formulas for div, grad, and curl in curvilinear coordinates (see
Batchelor, Appendix 2):
- Failed to parse (unknown function "\vspace"): {\displaystyle \nabla \times \vec{a} = mn \left| \begin{array}{ccc} \vspace{1 mm} {\hat{\xi}_1 \over m} & {\hat{\xi}_2 \over n} & \hat{k} \\ \vspace{1 mm} {\partial \over \partial \xi} & {\partial \over \partial \eta} & {\partial \over \partial z} \\ {a \over m} & {b \over n} & c \end{array} \right|}
where is a scalar and is a vector with components
, , and .