Text this: Complete derivation of 2D shallow-water model from the primitive equations governing geophysical flows