ai-modcon/genesis-skills/gs2

Claude Code and agent skill by ai-modcon/genesis-skills

Trust tier 2
  • community
LLM review pending
Source check pending

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/gs2

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

bash
# Clone with all submodules
git clone --recurse-submodules https://bitbucket.org/gyrokinetics/gs2.git
cd gs2
# Set the system name (see references/installation.md for supported systems)
export GK_SYSTEM=your_system_name
# Build
make -I Makefiles

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

fortran
&namelist_name
parameter = value ! inline comments allowed
/

Key namelists (order in file does not matter):

NamelistPurpose
knobsTimestep, beta, run duration
species_parameters_NPer-species mass, charge, temperature, density
theta_grid_knobsMagnetic geometry / poloidal grid
fields_knobsField equation algorithm
dist_fn_knobsDistribution function evolution
collisions_knobsCollision operator
kt_grids_knobsPerpendicular wavenumber grid type
init_g_knobsInitial condition for distribution function
gs2_diagnostics_knobsOutput frequency and diagnostics
hyper_knobsHyperviscosity/hyperresistivity

Start from an existing example rather than writing from scratch:

bash
ls tests/linear_tests/cyclone_itg_collisional/

See references/namelists.md for parameter details.

Running Simulations

bash
# Validate input before running
gs2 --check-input run.in
# Serial run
gs2 run.in
# MPI parallel run
mpirun -np 128 gs2 run.in
# Restart from checkpoint
mpirun -np 128 gs2 run.in --restart

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

gs2 --help # list all command-line options
gs2 --check-input # validate namelists without running

Common build flags:

bash
make -I Makefiles DEBUG=on # debug build
make -I Makefiles USE_MPI=on # explicit MPI enable

Additional Resources

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ai-modcon/genesis-skills/gs2/badge)](https://verified-skill.com/skills/ai-modcon/genesis-skills/gs2)

Something wrong with this skill or its page? Tell us.