fluidsim

Run CFD simulations with FluidSim pseudospectral solvers and MPI parallelization.

18|1|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill fluidsim-logauaengstrom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluidsim
Source: https://github.com/LogauaEngstrom/claude-scientific-skills/tree/main/scientific-skills/fluidsim
Command: npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill fluidsim-logauaengstrom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

FluidSim provides a scalable, Python-based framework to perform high-fidelity computational fluid dynamics (CFD) simulations using pseudospectral methods on periodic domains, enabling researchers to configure, run, and analyze complex flows with MPI parallelism.

Core Features & Use Cases

  • Pseudospectral solvers for 2D/3D Navier-Stokes, shallow water, and stratified flows
  • MPI parallelization and high-performance Python interfaces
  • Comprehensive workflow: parameter setup, execution, and post-processing
  • Use Case: Run a 2D turbulence experiment and analyze energy spectra and vorticity fields

Quick Start

Install fluidsim, create default params, and start a 2D ns2d simulation with a noise initial field

Frequently Asked Questions about fluidsim

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

FAQPage Schema
How do I run CFD simulations in Python using pseudospectral methods?

You can run CFD simulations in Python by configuring a hierarchical Parameters object and selecting pseudospectral solvers for 2D/3D Navier-Stokes, shallow water, or stratified flows. FluidSim provides this framework to execute and analyze complex periodic domain flows.

Can I use MPI parallelization for high-performance fluid dynamics simulations in Python?

Yes, MPI parallelization is supported for high-performance fluid dynamics simulations in Python. FluidSim integrates MPI to enable scalable execution of pseudospectral solvers, allowing researchers to run large-scale parameter sweeps and performance tests efficiently.

What Python environment do I need for spectral solver execution and post-processing?

Spectral solver execution requires a Python 3.9+ environment, compatible FFT libraries, and optional MPI configurations. You create a typed hierarchical Parameters object to safely configure the simulation before running and post-processing the output fields.

How do I configure and analyze a 2D turbulence experiment with energy spectra?

To analyze a 2D turbulence experiment, you configure the ns2d solver with a noise initial field, execute the simulation, and use post-processing tools to evaluate energy spectra and vorticity fields. This workflow is directly supported by the pseudospectral framework.

What distinguishes pseudospectral solvers from other CFD approaches for periodic domains?

Pseudospectral solvers provide high-fidelity results for periodic domains by computing spatial derivatives in Fourier space, unlike traditional finite difference methods. This approach offers high accuracy for fluid turbulence simulations while maintaining Python accessibility and MPI scalability.

What are the limitations of using Python-based pseudospectral CFD solvers?

Python-based pseudospectral CFD solvers are primarily limited to periodic domain boundaries and require specific FFT libraries plus Python 3.9+. Users must also navigate a hierarchical Parameters object for safe, typed configuration to avoid runtime errors during complex flow execution.