Skip to content
/ INGRID Public
forked from LLNL/INGRID

Interactive Grid Generator for Tokamak Boundary Region

Notifications You must be signed in to change notification settings

holm10/INGRID

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INGRID

  • 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.

Obtaining INGRID:

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.

Installation prerequisites:

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).

Installing 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

Example cases

Included in the example_files directory are some test cases for Ingrid usuage.

Running GUI from drivers

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 GUI from CL

Running the gui directly from a python session can be done as follows:

from INGRID import ingrid
ingrid.QuickStart()

About

Interactive Grid Generator for Tokamak Boundary Region

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%