Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
1732de5 to
17eede4
Compare
Include vacuum NCSX VMEC equilibrium (wout_ncsx_vacuum.nc) in test data so tests can run without needing separate VMEC runs. Add four example configurations for GC orbit comparisons: - vmec_vacuum: VMEC field (isw_field_type=1) - meiss_vacuum: Meiss canonical coords from coils (isw_field_type=3) - meiss_vmec_vacuum: Meiss canonical coords from VMEC (isw_field_type=3) - coils_vacuum: Cartesian coils GC (isw_field_type=5) All use NCSX c09r00 coils and consistent parameters for reproducible orbit comparisons between field representations.
User description
Add a minimal example script (examples/compare_gc_coils_rk.py) that runs SIMPLE twice in RK guiding-center mode: once with the VMEC field and once with a coils-based Meiss canonical field. Both runs use VMEC reference coordinates and trace a single particle for 1e-4 s with 1000 output points, then plot s, theta, and phi versus time for comparison.
PR Type
Enhancement, Tests
Description
Add example script comparing VMEC vs coils RK guiding-center orbits
Runs SIMPLE twice with different field configurations
Traces single particle for 1e-4 s with 1000 output points
Plots s, theta, phi coordinates versus time for comparison
Diagram Walkthrough
File Walkthrough
compare_gc_coils_rk.py
RK guiding-center VMEC vs coils comparison exampleexamples/compare_gc_coils_rk.py
run_simple()function to execute SIMPLE with config filesand extract NetCDF trajectory data
with Meiss canonical coordinates (isw_field_type=3)
using matplotlib
and SIMPLE execution failures