vmec_jax.visualizationΒΆ
Visualization helpers (VTK export, field-line traces).
This module is intentionally dependency-free: it writes a small subset of VTK XML formats in ASCII for easy inspection in ParaView:
.vts: VTK XML StructuredGrid (good for (theta,zeta) surfaces).vtp: VTK XML PolyData (good for field-line polylines)
The functions here are not performance critical; they are meant for examples and debugging. They operate on NumPy arrays (not JAX) on purpose.
Functions
|
Export one surface + a fieldline trace to VTK for ParaView. |
|
Write a VTK XML PolyData ( |
|
Write a VTK XML StructuredGrid ( |