Skip to content

arunav2123/BOOZ_xFORM

Repository files navigation

BOOZ_XFORM

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

Compilation on MIT PSFC MFEStation/others

Uses CMake and a Conda environment.

Note: Make sure to set your library paths correctly in CMakeLists.txt as needed.

Steps

  1. Create and activate your Conda environment:
    conda create -n booz_env
    conda activate booz_env
  2. 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.

  1. 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!

Output Files

When you run BOOZ_XFORM, it will create the following files in your working directory:

  • bmnc_booz.txt
  • gimnc_booz.txt
  • gmnc_booz.txt
  • grrmnc_booz.txt
  • grrojmnc_booz.txt
  • grtmnc_booz.txt
  • grtojmnc_booz.txt
  • gttmnc_booz.txt
  • gttojmnc_booz.txt
  • jbgrrmnc_booz.txt
  • jbgrtmnc_booz.txt
  • jbgttmnc_booz.txt
  • phi_1b.txt
  • phi_2b.txt
  • phi_3b.txt
  • pmns_booz.txt
  • prfeq_vmec.txt
  • R_Z_1.txt, R_Z_1b.txt
  • R_Z_2.txt, R_Z_2b.txt
  • R_Z_3.txt, R_Z_3b.txt
  • rmnc_booz.txt
  • sum_gmncb.txt
  • woutb
  • zmns_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

About

Standalone Booz_xform code package for FAR3D code :No need STELLOPT to read LIBSTELL libs and NETCDF libs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages