fluidsim

Simulate periodic-domain fluid flows with a Python pseudospectral FFT framework.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill fluidsim-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluidsim
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/10-%E6%9D%90%E6%96%99%E7%A7%91%E5%AD%A6%E4%B8%8E%E7%89%A9%E7%90%86%E8%AE%A1%E7%AE%97/fluidsim
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill fluidsim-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It eliminates the time-consuming setup and manual analysis of computational fluid dynamics by providing a Python framework that guides you from parameter configuration to simulation results and plots.

Core Features & Use Cases

  • High-performance CFD solvers: Run 2D/3D Navier-Stokes, shallow water, and stratified-flow equations on periodic domains using pseudospectral methods with FFT.
  • End-to-end workflow: Configure parameters, launch simulations (including MPI parallel runs), and analyze outputs like physical fields, spatial means, and spectra.
  • Practical research tasks: Study turbulence/vortex dynamics, validate benchmarks (e.g., Taylor-Green), perform stratified or rotating-flow experiments, and run parametric studies.

Quick Start

Use the fluidsim skill to simulate a 2D Navier-Stokes turbulence case by configuring a solver, setting grid/domain/viscosity/time parameters, running time stepping, and plotting vorticity and spectra from the generated outputs.

Frequently Asked Questions about fluidsim

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

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

To run a Navier-Stokes turbulence simulation, configure a pseudospectral solver with grid, domain, viscosity, and time parameters, then execute the time-stepping loop to generate physical fields and spectra outputs.

Can I use MPI to parallelize computational fluid dynamics simulations for parametric studies?

Yes, you can launch MPI parallel runs to execute computational fluid dynamics simulations, enabling efficient parametric experiments and benchmark validation across periodic domains using the pseudospectral FFT framework.

What is the best way to analyze vorticity and spectra from CFD outputs?

The best way to analyze vorticity and spectra from CFD outputs is to use included plotting and loading interfaces after running the simulation loop, extracting spatial means and physical fields for post-processing.

Does this pseudospectral FFT framework support stratified and shallow water flow modeling?

Yes, the pseudospectral FFT framework supports solving stratified flow and shallow water equations on periodic domains, specifically targeting geophysical flow modeling and rotating-flow experiments.

What are the limitations of using periodic domains for turbulence study and vortex dynamics?

Using periodic domains for turbulence study restricts simulations to boundaryless problems, making it ideal for vortex dynamics and benchmark validation but unsuitable for modeling wall-bounded flows or complex geometries.

How do I validate benchmarks like Taylor-Green using a Python CFD solver?

To validate benchmarks like Taylor-Green, configure the default solver parameters for the specific case, run the simulation loop, and compare the generated physical fields and spectra against known analytical solutions.