-
INGRID (INteractive GRID) is a Python based tokamak edge plasma grid generator capable of automatic generation of grids for magnetic-topologies with up to two x-points anywhere in the domain.
-
Developed at Lawrence Livermore National Laboratory by Bryan Garcia (UCSC), Jerome Guterl (GA), Joey Watkins (BYU), and Maxim Umansky (LLNL).
-
Maintained by Bryan Garcia and Maxim Umansky.
-
Our Read The Docs can be found here.
Clone the INGRID repo with the command:
git clone username@https://github.com/LLNL/INGRID.git IngridDir
where IngridDir
is the name of your clone destination.
To run INGRID on your machine, you must have anaconda3
and setuptools
installed
and up to date.
MacOS Mojave users please read on. Otherwise, continue to the next section.
MacOS Mojave has issues with certain backend libraries used in INGRID. This has been documented by Apple. To remedy this, a Conda evironment has been created and must be installed by the user. Inside the cloned repo should be the file conda_env.yml
. Creating the Conda environment can be done by running:
conda env create -f conda_env.yml
Activate the created Conda environment by running:
conda activate ingrid
When active, the terminal prompt should begin with (ingrid)
.
The user can install INGRID via the setup.py
file (MacOS Mojave users: make sure the ingrid
conda environment is activated). Installation can be started by running:
python setup.py install --user
Included in the example_files
directory are some test cases for Ingrid usuage.
Navigate into the drivers
directory.
python StartGUI.py
From here a user can select an example case from example_files
or create a new case by utilizing a template file.
Running the gui directly from a python session can be done as follows:
from INGRID import ingrid
ingrid.QuickStart()