
This is a Python framework for running computational fluid dynamics simulations using pseudospectral methods. You'd use it for 2D/3D Navier-Stokes, shallow water equations, stratified flows, or turbulence analysis. The workflow is straightforward: import a solver, configure parameters via dot notation, instantiate, and run. It compiles with Pythran for performance, supports MPI parallelization, and automatically outputs HDF5 fields, spectra, and spatial means you can analyze in Python or ParaView. The hierarchical parameter system catches typos with AttributeError, which saves debugging time. Installation requires FFT libraries, and most realistic simulations will need the MPI flag for anything above toy resolutions.
$ npx -y skills add davila7/claude-code-templates --skill fluidsim --agent claude-codeInstalls into .claude/skills of the current project.
FluidSim is an object-oriented Python framework for high-performance computational fluid dynamics (CFD) simulations. It provides solvers for periodic-domain equations using pseudospectral methods with FFT, delivering performance comparable to Fortran/C++ while maintaining Python's ease of use.
Key strengths:
Install fluidsim using uv with appropriate feature flags:
# Basic installation
uv uv pip install fluidsim
# With FFT support (required for most solvers)
uv uv pip install "fluidsim[fft]"
# With MPI for parallel computing
uv uv pip install "fluidsim[fft,mpi]"
Set environment variables for output directories (optional):
export FLUIDSIM_PATH=/path/to/simulation/outputs
export FLUIDDYN_PATH_SCRATCH=/path/to/working/directory
No API keys or authentication required.
Sponsors