Agent skill · research science · k-dense-ai
fluidsim
Plan, configure, inspect, restart, and analyze bounded FluidSim computational-fluid-dynamics simulations with explicit numerical-validity and HPC safety checks. Use for FluidSim solver selection, parameter review, FFT/MPI setup, output diagnostics, or restart compatibility.
Why this skill is useful
Provides specific workflows and configurations for running complex CFD simulations that the AI wouldn't reliably generate on its own.
What it needs
Requires fluidfft, fluidsim, mpi4py, pyfftw installed locally. About 6k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.
What this skill does
FluidSim Use FluidSim 0.9.0 as a framework for Python-defined numerical solvers, especially periodic Cartesian pseudospectral CFD. Upstream FluidSim is CeCILL-2.1; the MIT frontmatter license applies only to this skill. This skill does not treat a completed run, a stable time step, a smooth plot, or a closed program exit as evidence of numerical convergence or physical validity. Required workflow 1. State equations, units or nondimensionalization, geometry, boundaries, initial conditions, forcing, observables, and acceptance criteria. 2. Select a verified solver and inspect its generated default parameters. 3. Create a strict JSON plan with explicit CPU, RAM, disk, wall-time, output-file, timestep, CFL, resolution, and dealiasing bounds. 4. Run the bundled validator and resource estimator. 5. Generate and review a dry-run script. It does nothing unless executed with an explicit config-ID acknowledgement. 6. Run one tiny serial pilot. Inspect budgets, divergence/constraints, spectral tails, CFL/time-step history, and output growth. 7. Refine grid and time step independently. Check conservation/budget residuals and observable sensitivity. 8. Only then prepare a site-specific MPI job. Never submit or launch MPI automatically. 9. Preserve config, script, uv.lock, package/platform/backend versions, logs, output inventory, checksums, and restart lineage. Stop if physical assumptions, units, boundary conditions, forcing semantics, resolution criteria, resource limits, or acceptance criteria are missing. Version and installation As verified on 2026-07-23: Latest stable PyPI release: fluidsim==0.9.0 (2025-12-04). Package metadata requires Python >=3.11 and lists Python 3.11–3.14. Pseudospectral parameter creation needs FluidFFT; bare fluidsim imported in the smoke test, but ns2d.createdefaultparams() failed until the fft extra was installed. Current companion versions tested here: fluidfft==0.4.5 and pyFFTW==0.15.1. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills k-dense-ai/fluidsim