Hydrodynamics

One-cell primitives. The caller owns the mesh and the time step.

Equations of state

Four closures. Energy is per reference volume.

Each fills a vm_eos_state with pressure, sound speed, and internal energy. A non-positive density returns false.

Cell primitives

Artificial viscosity is zero in expansion. Pure spin gives zero stress. Symmetric states give zero mass flux.

Projection

Incompressible step. Reuses the existing Laplacian and vm_cg.

SPH

Cubic spline and Wendland C2, both supported on r < 2 h and normalized so the integral is 1.

There is no search structure. A caller bins with vm_geom3_cell_index and an AABB.