fluidsim

Automate FluidSim CFD simulation setup, execution, and analysis for periodic-domain flows.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/shushuzn/Rairos --skill fluidsim-shushuzn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluidsim
Source: https://github.com/shushuzn/Rairos/tree/main/skills/fluidsim
Command: npx skills add https://github.com/shushuzn/Rairos --skill fluidsim-shushuzn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

FluidSim helps you set up, run, and post-process computational fluid dynamics simulations without manually assembling a full CFD workflow.

Core Features & Use Cases

  • Pseudospectral CFD solvers: Use FFT-based solvers for periodic-domain equations.
  • Multi-physics coverage: Simulate 2D/3D Navier-Stokes, shallow water, and stratified (buoyancy) flows.
  • End-to-end workflow: Configure parameters, execute simulations, and analyze fields, spectra, and spatial means.

Use case: You need to study how energy cascades and turbulence evolve in a 2D Navier-Stokes flow, then plot spectra and vorticity from saved outputs for comparison across viscosities and resolutions.

Quick Start

Tell the AI to run a 2D Navier-Stokes turbulence simulation with FluidSim (FFT-enabled) by importing the ns2d solver, creating default parameters, setting nx=ny=256, choosing Lx=Ly=2*pi, configuring nu_2 and t_end, and starting time-stepping for subsequent plotting of vorticity and spectra.

Frequently Asked Questions about fluidsim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a 2D Navier-Stokes turbulence simulation in Python?

Run a 2D Navier-Stokes turbulence simulation in Python by importing the ns2d solver, creating default parameters, setting grid dimensions like nx=ny=256, configuring viscosity and t_end, and starting time-stepping for subsequent plotting of vorticity and spectra.

What is a pseudospectral CFD solver and when do I need it?

A pseudospectral CFD solver uses FFT-based methods to solve periodic-domain fluid equations. You need it when studying turbulence, energy cascades, or geophysical dynamics like shallow water and stratified buoyancy-driven flows in idealized periodic boundaries.

Can I simulate 3D Navier-Stokes and stratified buoyancy-driven flows using FFT?

Yes, you can simulate 3D Navier-Stokes and stratified buoyancy-driven flows using FFT by selecting the ns3d or strat solver keys. You configure the parameters via a YAML-instructed workflow and enable optional FFT and MPI feature flags.

How do I compute turbulence diagnostics like spectra and spatial means from CFD outputs?

Compute turbulence diagnostics like spectra and spatial means from CFD outputs by using FluidSim's built-in post-processing modules. These structured output modules analyze saved fields to plot vorticity and compare energy cascades across viscosities and resolutions.

Does Python CFD simulation support MPI for high-performance turbulence computing?

Yes, Python CFD simulation supports MPI for high-performance turbulence computing through optional FFT and MPI feature flags in the parameter configuration, allowing you to scale pseudospectral solvers for periodic-domain flows.

What are the limitations of FFT-based CFD solvers for periodic-domain flows?

FFT-based CFD solvers for periodic-domain flows are limited to idealized periodic boundaries, meaning they cannot model complex real-world geometries. They are best suited for fundamental turbulence studies, shallow-water dynamics, and stratified flows rather than applied engineering design.