PERIODIC WATER · FOURIER PSEUDOSPECTRAL DNS
Spectral Flow
Laboratory
A direct numerical simulation of incompressible water in a repeating 3D cube. The velocity is represented with Fourier waves; no turbulence model is used.
CONNECTING
FLOW TRACERS
Each curve follows a moving parcel of water.
BLUE + CYAN — WATER PATHSGOLD — HIGHLIGHTED REFERENCE PATHSCLICK FOR A NEW FLOW · DRAG TO ROTATE
THE MODEL BEHIND THE PICTURE
Incompressible Navier–Stokes
The solver advances velocity u while pressure p enforces zero divergence:
\[\frac{\partial \mathbf{u}}{\partial t}+(\mathbf{u}\!\cdot\!\nabla)\mathbf{u}=-\frac{1}{\rho}\nabla p+\nu\nabla^2\mathbf{u}+\mathbf{f}\]\[\nabla\!\cdot\!\mathbf{u}=0\]
PERIODIC 3D DOMAIN
\[\mathbf{u}(\mathbf{x}+L\mathbf{e}_i,t)=\mathbf{u}(\mathbf{x},t),\qquad L=0.01\ \mathrm{m}\]
Leaving one face of the cube means re-entering through the opposite face. The wireframe is not a solid wall.
FOURIER FORM USED IN CODE
\[\frac{\partial\widehat{\mathbf{u}}}{\partial t}=-\mathbf{P}(\mathbf{k})\,\widehat{(\mathbf{u}\!\cdot\!\nabla)\mathbf{u}}-\nu|\mathbf{k}|^2\widehat{\mathbf{u}}+\widehat{\mathbf{f}}\]\[\mathbf{P}(\mathbf{k})=\mathbf{I}-\frac{\mathbf{k}\mathbf{k}^{\mathsf T}}{|\mathbf{k}|^2}\]
The projection \(\mathbf{P}\) removes the pressure contribution and enforces \(\mathbf{k}\!\cdot\!\widehat{\mathbf{u}}=0\). The nonlinear term is evaluated pseudospectrally with 2/3 dealiasing and integrated with fourth-order Runge–Kutta.