What problem does it solve?
FluidSim solves the problem of running high-performance computational fluid dynamics (CFD) simulations and turning the results into analyzable physical metrics without switching toolchains.
Core Features & Use Cases
- High-performance CFD in Python: Object-oriented framework with solvers for periodic-domain equations using pseudospectral methods with FFT, aiming for Fortran/C++-like performance.
- Multiple physics-focused solvers: Supports 2D/3D Navier-Stokes, stratified flows, and shallow water equations, with solver-specific parameterization.
- Complete workflow and post-processing: Covers parameter setup, execution, parallelization (MPI), and output analysis including physical fields, spatial means, spectra, and energy budgets.
- Interactive analysis and visualization: Produces HDF5 outputs suitable for Python plotting and external tools like ParaView/VisIt.
- Use Case: You want to study 2D turbulence energy cascades by running a parameterized set of simulations, then compare spectra or energy decay across viscosity and resolution.
Quick Start
Run a 2D Navier-Stokes simulation by creating default parameters, setting domain size and viscosity, choosing a solver (e.g., ns2d), instantiating the simulation, starting the time stepping, and plotting results such as vorticity or 1D spectra.