Curvilinear Coordinates
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):
where is a scalar and is a vector with components , , and .