Convert VMEC output data to Boozer coordinates for generating FAR3d input files.
No need to compile STELLOPT to read LIBSTELL libs.
About FAR3d: Gyro-Landau closure model for tokamaks and stellarators.
FAR3d GitHub Repo: https://github.com/DSfusion/FAR3d
Original Booz_xform code: https://github.com/DSfusion/FAR3d/tree/master/BOOZ_XFORM
Uses CMake and a Conda environment.
Note: Make sure to set your library paths correctly in
CMakeLists.txtas needed.
- Create and activate your Conda environment:
conda create -n booz_env conda activate booz_env
- Clone and build the code:
cd BOOZ_xform/ mkdir build cd build/ cmake .. make
This will create the executable xbooz_xform in the build folder.
- How to run (must have VMEC output wout_test.nc in same folder)
./xbooz_xform in_booz.test far
Test cases are available in the Equilibria folder.
Enjoy!
When you run BOOZ_XFORM, it will create the following files in your working directory:
bmnc_booz.txtgimnc_booz.txtgmnc_booz.txtgrrmnc_booz.txtgrrojmnc_booz.txtgrtmnc_booz.txtgrtojmnc_booz.txtgttmnc_booz.txtgttojmnc_booz.txtjbgrrmnc_booz.txtjbgrtmnc_booz.txtjbgttmnc_booz.txtphi_1b.txtphi_2b.txtphi_3b.txtpmns_booz.txtprfeq_vmec.txtR_Z_1.txt,R_Z_1b.txtR_Z_2.txt,R_Z_2b.txtR_Z_3.txt,R_Z_3b.txtrmnc_booz.txtsum_gmncb.txtwoutbzmns_booz.txt
The most important file for running FAR3d is woutb. See FAR3d User Guide (PDF) for details.
Feel free to contact: arunavk@mit.edu