SkillAgentSearch skills...

FCODE

MagLIF Simulation

Install / Use

/learn @fuse-energy/FCODE
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

FCODE

Accompanying simulation code for MagLIF: Dynamics and energetics of liner and fuel.

https://github.com/fuse-energy/FCODE/assets/77456691/39d5dfd2-c731-4351-a44f-a1cb29a1bc93

Single Simulation

  1. Create a config file in the config directory to change the initial conditions.
  2. Change the import statement (line 5) of MagLIF.py to match the name of the newly created config file.
  3. Run MagLIF.py to run the simulation.
  4. The result are stored under the results directory.
  • simulation.py: Simulation results, each row is an iteration.
  • initial.csv: Key-value pair of initial conditions.
  • results.csv: Key-value pair of simulation results.
  1. Run plot.py to show the plots.

Example of plot output 70MA90atm

Multiple Simulations: Parametric Variation

  1. Create a config file in the config_params directory to change the initial conditions.
  2. Change the import statement (line 9) of MagLIF_param.py to match the name of the newly created config file.
  3. Run MagLIF_param.py to run simulations of all initial condition permutations.
  4. The results are stored in results/params.csv.
  5. Rename the results file to params_XXMA.csv, where XX is the current in MA.
  6. In plot_params.py, change the I variable to match the XX from step 5.
  7. Run plot_params.py to show the plots.

Example of plot output 70MA params

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks1

Languages

Python

Security Score

65/100

Audited on Jul 24, 2024

No findings