fluidsim

Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC support, and comprehensive output analysis.

Install

Hot:8

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=k-dense-ai-scientific-skills-fluidsim&locale=en&source=copy

FluidSim - Python Computational Fluid Dynamics Simulation Framework

Capabilities Overview


FluidSim is an object-oriented Python high-performance computational fluid dynamics (CFD) framework that provides pseudo-spectral, FFT-based solvers for periodic-domain equations, delivering computational performance comparable to Fortran/C++ while retaining Python's ease of use.

Use Cases

1. Turbulence and Vortex Dynamics Research


Suitable for studying 2D/3D turbulence, vortex evolution, energy cascades, and other fluid dynamics phenomena. Supports high-resolution grid simulations and energy spectrum analysis.

2. Geophysical Fluid Simulations


Supports shallow-water equations and stratified flow simulations, usable for oceanic and atmospheric dynamics studies, including configuration of geophysical parameters such as Coriolis force and buoyancy frequency.

3. High-Performance Parallel Computing


Supports multi-processor parallel computing via MPI and, combined with Pythran/Transonic compilation optimizations, is suitable for large-scale 3D simulations and parameter studies.

Core Features

Multiple Specialized Solvers


Provides various solvers such as 2D/3D Navier–Stokes, shallow-water equations, and stratified flow solvers. Users can choose the appropriate solver type for the physical problem and configure viscosity, forcing, initial conditions, and other parameters.

Complete Simulation Workflow


Supports the full workflow from parameter configuration and simulation execution to results analysis. Parameter objects use a hierarchical structure, accessed with dot notation, and include automatic spell-checking to prevent configuration errors.

Interactive Result Analysis


Automatically saves multiple output formats such as velocity fields, vorticity, spatio-temporal averages, and energy spectra. Supports Python post-processing and visualization, and can also use ParaView/VisIt for 3D visualization.

Frequently Asked Questions

How do I install FluidSim?


Install using uv or pip: uv pip install fluidsim. Most solvers require FFT support; it is recommended to install fluidsim[fft]. For parallel computing, install fluidsim[fft,mpi]. No API key or authentication is required.

What types of fluid simulations does FluidSim support?


It supports a variety of solvers including 2D/3D Navier–Stokes (ns2d/ns3d), stratified flow (ns2d.strat/ns3d.strat), and shallow-water equations (sw1l), covering applications in turbulence, vortex dynamics, oceanic and atmospheric flows, and geophysical fluid dynamics.

Can FluidSim run with MPI for parallel computing?


Yes, FluidSim supports MPI parallel computing. Run on multiple processors with mpirun -np 8 python script.py, which is ideal for high-resolution 3D simulations. The framework also supports Pythran/Transonic compilation optimizations to further improve performance.