fluidsim

Run 2D/3D Navier-Stokes and stratified flow simulations with pseudospectral methods.

2|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill fluidsim-weiwei-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluidsim
Source: https://github.com/Weiwei-Mao/hydrology-skills/tree/main/hydrology-skills/fluidsim
Command: npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill fluidsim-weiwei-mao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fluidfft, pyfftw, mpi4py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables users to perform complex computational fluid dynamics (CFD) simulations, from basic turbulence studies to advanced geophysical flow modeling, without needing to write low-level simulation code.

Core Features & Use Cases

  • CFD Solvers: Supports Navier-Stokes (2D/3D), stratified flows, and shallow water equations.
  • High Performance: Utilizes pseudospectral methods and MPI for efficient computation.
  • Use Case: A researcher needs to simulate the behavior of ocean currents in a specific region. They can use the ns2d.strat solver to model stratified flow, configure parameters like viscosity and stratification strength, and run the simulation to analyze current patterns and turbulence.

Quick Start

Use the fluidsim skill to run a 2D Navier-Stokes simulation with noise initial conditions and end time of 10.0.

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 simulation for turbulence studies?

Run a 2D Navier-Stokes simulation by configuring a solver with initial conditions like noise and specifying an end time. This framework handles periodic-domain equations to compute fluid dynamics without writing low-level simulation code.

What is the best way to simulate stratified flows for geophysical modeling?

Simulating stratified flows for geophysical modeling is best done using the ns2d.strat solver. You configure parameters like viscosity and stratification strength to model ocean currents and analyze turbulence patterns.

Does this computational fluid dynamics framework support MPI parallelization?

Yes, this computational fluid dynamics framework supports MPI parallelization for efficient computation. It requires mpi4py for parallel execution and uses pseudospectral methods to handle large-scale simulations.

Do I need pyfftw and fluidfft to perform pseudospectral method simulations?

Yes, you need pyfftw and fluidfft to perform pseudospectral method simulations. These dependencies are required for the fast Fourier transform (FFT) operations that solve the periodic-domain equations.

Can I model shallow water equations in a periodic domain using Python?

Yes, you can model shallow water equations in a periodic domain using this Python framework. It provides dedicated solvers for shallow water equations alongside Navier-Stokes and stratified flow equations.

Why choose pseudospectral methods for high-performance CFD simulations?

Choose pseudospectral methods for high-performance CFD simulations to efficiently solve periodic-domain equations with high accuracy. This approach leverages FFT operations and MPI parallelization for advanced turbulence and flow analysis.