ai-modcon/genesis-skills/gs2
Claude Code and agent skill by ai-modcon/genesis-skills
- community
Checking that the SKILL.md file is still in the repository.
Gyrokinetics simulation code GS2. Use when installing GS2, writing or modifying GS2 input namelists, configuring species/grid/field/collision parameters, or launching GS2 runs on local machines or HPC clusters.
Install
npx vskill@latest install ai-modcon/genesis-skills/gs2SKILL.md
GS2 — Gyrokinetics Simulation Code
GS2 is an Eulerian gyrokinetic flux-tube code for studying low-frequency turbulence and instabilities in magnetized plasmas. It solves the nonlinear gyrokinetic equation for multiple species with optional electromagnetic fields.
Installation
If your HPC system is not in Makefiles/, create a new Makefile.$GK_SYSTEM. See references/installation.md for dependencies, supported systems, and build flags.
Input File Basics
GS2 uses Fortran namelist format (.in files):
Key namelists (order in file does not matter):
| Namelist | Purpose | |
|---|---|---|
knobs | Timestep, beta, run duration | |
species_parameters_N | Per-species mass, charge, temperature, density | |
theta_grid_knobs | Magnetic geometry / poloidal grid | |
fields_knobs | Field equation algorithm | |
dist_fn_knobs | Distribution function evolution | |
collisions_knobs | Collision operator | |
kt_grids_knobs | Perpendicular wavenumber grid type | |
init_g_knobs | Initial condition for distribution function | |
gs2_diagnostics_knobs | Output frequency and diagnostics | |
hyper_knobs | Hyperviscosity/hyperresistivity |
Start from an existing example rather than writing from scratch:
See references/namelists.md for parameter details.
Running Simulations
Output goes to run.out (text) and run.nc (NetCDF diagnostics).
See references/running.md for MPI decomposition strategies, HPC job scripts, convergence checks, and restart workflow.
Quick Reference
Common build flags:
Additional Resources
- Installation details
- Namelist parameter reference
- Running and HPC workflow
- GS2 docs: https://gyrokinetics.gitlab.io/gs2/
- Namelist reference: https://gyrokinetics.gitlab.io/gs2/page/namelists/index.html
- Source: https://bitbucket.org/gyrokinetics/gs2
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/plasma-sim-skills/gs2/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-modcon/genesis-skills/gs2)