Skip to content

The physical foundation ​

NeuralPOM advances the three-dimensional hydrostatic primitive equations with the Boussinesq approximation on an Arakawa C grid and a terrain-following vertical coordinate. The neural corrector acts at endpoints of this physical evolution. The formulation follows the Princeton Ocean Model; the implementation and numerical choices are described in the manuscript, Section 2.1 and Blumberg & Mellor (1987).

Momentum and hydrostatic pressure ​

Let x,y,z be eastward, northward, and upward coordinates, t time, and uh=(u,v) horizontal velocity. Let w be vertical velocity, f the Coriolis parameter, k^ the upward unit vector, p pressure, ρ density, ρ0 constant reference density, and g gravitational acceleration. With horizontal gradient ∇h, vertical viscosity KM, and horizontal momentum mixing Fh, the physical-coordinate equations are

(∂t+uh⋅∇h+w∂z)uh+fk^×uh=−1ρ0∇hp+∂z(KM∂zuh)+Fh,∂zp=−ρg,∇h⋅uh+∂zw=0.

Let η denote free-surface elevation and ρ′=ρ−ρ0 the density anomaly. With spatially uniform atmospheric pressure patm, hydrostatic pressure is

p(z)=patm+ρ0g(η−z)+g∫zηρ′(z′)dz′.

Its horizontal gradient contains the surface-slope contribution and a depth-dependent contribution from density. This connects tracer corrections to subsequent velocity evolution. The transformed pressure-gradient operators are implemented in momentum.py.

Tracers and density ​

For tracer C, representing temperature T or salinity S, let KH be vertical diffusivity and FC horizontal tracer mixing. The interior transport equation is

(∂t+uh⋅∇h+w∂z)C=∂z(KH∂zC)+FC.

Surface and bottom fluxes enter through the selected case's boundary conditions. The model evaluates density from temperature, salinity, and pressure through the POM equation of state. The EOS reference is Mellor (1991); vertical mixing follows the separate Mellor–Yamada closure.

Follow the seabed with sigma coordinates ​

Let H(x,y)>0 be resting depth and D=H+η the total water-column depth. Define

σ=z−ηH+η,−1≤σ≤0.

The seabed is σ=−1 and the free surface is σ=0. The numerical operators account for this coordinate transformation in transport and pressure gradients. The vertical arrays z and zz store sigma interfaces and midpoints; dz and dzz store their separations. The published coarse configuration has 15 active layers within 16 vertical storage levels. (Grid implementation, model contract)

Connect equations to the numerical model ​

Physical operationImplementation familyExplanation
Momentum and densitymomentum.pyPressure gradients, vertical momentum mixing, EOS
Tracer transporttracers.pyAdvection and vertical diffusion
Horizontal momentum and turbulencebaroclinic.pyInternal-mode operators and mixing closure
Free-surface evolutiontime_loop.py, implicit_barotropic.pyExplicit or semi-implicit external mode
Geometrygrid.pyStaggered grid and masks

The two core directories retain their own numerical implementation while sharing the hybrid state and correction interfaces. Continue with mode splitting to see why the fast surface mode receives special treatment.