Skip to content

Taylor–Green Vortex

The classic 3D transition-to-turbulence benchmark at Re=1600: incompressible Navier–Stokes on the periodic cube [0,2π]3,

ut+(u)u+pν2u=0,u=0,

starting from the analytic vortex u0=(cosxsinycosz,sinxcosycosz,0). The initial vortex sheet stretches, rolls up, and cascades to small scales.

Taylor-Green initial vorticity

Initial z-vorticity on the z = 0 plane.

Run

bash
cd examples/taylor_green

# Standard time-window training
python3 main.py --config=configs/baseline.py

# Multi-stage eps-homotopy training
python3 main.py --config=configs/multi_stage.py
ConfigDescription
configs/baseline.pySingle network per time window
configs/multi_stage.pyMulti-stage correction cascade per window
configs/pseudo_time.pyAdds adaptive pseudo-time stepping

Notes

  • The flagship example for multi-stage training: each stage trains a correction network around the frozen previous stages (sol=prev+εdiff) with a linearized Navier–Stokes residual, a larger Fourier frequency, and rejection-sampled collocation points where the previous residual is large.
  • Long cascades are fully resumable: per-window, per-stage checkpoints (time_window_{w}_stage_{s}) plus --config.training.resume=True.
  • Enstrophy of the predicted field is logged at every window boundary as a physical sanity check against the known Re 1600 reference curve.

Released under the Apache 2.0 License.