How gafusion/gacode works
GACODE is a suite of scientific plasma-physics codes: CGYRO and GYRO model gyrokinetic behavior, NEO models neoclassical transport, TGLF provides a transport model, and TGYRO evolves profiles. A typical user prepares code inputs, runs a physics code, then examines its outputs with Python readers and plotting tools; the README documents the codes, while the supplied excerpts mainly show input handling and analysis rather than the simulation engines. The graph also includes profile-generation tools and XGYRO’s multi-directory setup. Edges are limited to excerpted references, visible calls, or README statements; unsampled engine links are not inferred.
Main entry points: gacodeinput.py Shared input parser · gacodefuncs.py Shared analysis functions · tglf_input_gene.py TGLF conversion · plot_notebook.py TGYRO notebook plots
Components 26
Physics codes
- CGYRO simulation
cgyro - GYRO simulation
gyro - NEO simulation
neo - TGLF transport
tglf - TGYRO evolution
tgyro
Inputs and coordination
- Shared input parser
tglf/bin/gacodeinput.py - CGYRO input
cgyro/bin/cgyro_parse.py - GYRO input
gyro/bin/gyro_parse.py - NEO input
neo/bin/neo_parse.py - TGYRO input
tgyro/bin/tgyro_parse.py - TGLF conversion
tglf/bin/tglf_input_gene.py - XGYRO coordination
xgyro/bin/xgyro_parse.py - Restart handling
cgyro/bin/libcgyrorestart.py - Restart dimensions
cgyro/bin/restart_add_dims.py - Restart species
cgyro/bin/restart_add_species.py
Analysis and visualization
- CGYRO data reader
f2py/pygacode/cgyro/data.py - CGYRO plotting
f2py/pygacode/cgyro/data_plot.py - GYRO data reader
f2py/pygacode/gyro/data.py - GYRO plotting
f2py/pygacode/gyro/data_plot.py - NEO data reader
f2py/pygacode/neo/data.py - TGYRO notebook plots
f2py/pygacode/tgyro/plot_notebook.py - Shared analysis functions
f2py/pygacode/gacodefuncs.py
Profiles and utilities
- Profile generation
profiles_gen - Profile plotting
f2py/pygacode/profiles_gen/plot_profile.py
Other components
- Researcher
- Simulation outputs
Connections 34
- Researcher → CGYRO input: configures
- Researcher → GYRO input: configures
gyro/bin/gyro_parse.py - Researcher → NEO input: configures
neo/bin/neo_parse.py - Researcher → TGYRO input: configures
tgyro/bin/tgyro_parse.py - Researcher → TGLF conversion: prepares inputs
tglf/bin/tglf_input_gene.py - CGYRO input → Shared input parser: uses parser
- GYRO input → Shared input parser: uses parser
gyro/bin/gyro_parse.py - NEO input → Shared input parser: uses parser
neo/bin/neo_parse.py - TGYRO input → Shared input parser: uses parser
tgyro/bin/tgyro_parse.py - TGLF conversion → Shared input parser: uses parser
tglf/bin/tglf_input_gene.py - TGLF conversion → TGLF transport: configures
tglf/bin/tglf_input_gene.py - XGYRO coordination → Shared input parser: uses parser
xgyro/bin/xgyro_parse.py - Researcher → CGYRO simulation: runs
- Researcher → GYRO simulation: runs
- Researcher → NEO simulation: runs
- Researcher → TGLF transport: runs
- Researcher → TGYRO evolution: runs
- CGYRO simulation → Simulation outputs: produces
- GYRO simulation → Simulation outputs: produces
- NEO simulation → Simulation outputs: produces
- Simulation outputs → CGYRO data reader: reads
- Simulation outputs → GYRO data reader: reads
- CGYRO data reader → CGYRO plotting: supplies data
f2py/pygacode/cgyro/data_plot.py - GYRO data reader → GYRO plotting: supplies data
f2py/pygacode/gyro/data_plot.py - CGYRO plotting → Shared analysis functions: uses helpers
f2py/pygacode/cgyro/data_plot.py - GYRO plotting → Shared analysis functions: uses helpers
f2py/pygacode/gyro/data_plot.py - TGYRO notebook plots → Shared analysis functions: uses helpers
f2py/pygacode/tgyro/plot_notebook.py - TGYRO notebook plots → NEO data reader: reads data
f2py/pygacode/tgyro/plot_notebook.py - Researcher → Restart dimensions: adjusts restart
cgyro/bin/restart_add_dims.py - Researcher → Restart species: adjusts restart
cgyro/bin/restart_add_species.py - Restart dimensions → Restart handling: uses restart API
cgyro/bin/restart_add_dims.py - Restart species → Restart handling: uses restart API
cgyro/bin/restart_add_species.py - Researcher → Profile generation: generates profiles
- Profile plotting → Shared analysis functions: uses helpers