openfoam-cfd

Automate OpenFOAM CFD case setup, solver execution, and headless post-processing.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill openfoam-cfd-xjtulyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openfoam-cfd
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/06-engineering/openfoam-cfd
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill openfoam-cfd-xjtulyc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual, error-prone overhead of setting up, running, and analyzing OpenFOAM CFD cases by automating the workflow with Python-based tooling and programmatic post-processing.

Core Features & Use Cases

  • Case setup automation: Generate and edit core OpenFOAM dictionaries (e.g., 0/, constant/, system/) from Python so you can rapidly start new simulations.
  • Solver execution & monitoring: Launch solvers (e.g., simpleFoam, pisoFoam, interFoam) and parse solver logs to track convergence residuals.
  • Headless post-processing & exports: Convert results for visualization, compute derived fields (like velocity magnitude), render plots off-screen, and export analysis-ready outputs (images/CSV/VTK).
  • Parameter sweeps: Run batches of simulations by varying parameters (e.g., viscosity) and aggregate metrics into tabular results for comparison.

Quick Start

Use the openfoam-cfd skill to run an OpenFOAM cavity case, parse residuals during icoFoam, and generate a velocity-magnitude rendering using pyvista and vtk.

Frequently Asked Questions about openfoam-cfd

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

FAQPage Schema
How do I run OpenFOAM CFD simulations without using ParaView for post-processing?

You can run OpenFOAM CFD simulations headlessly by using Python to automate case setup, launch solvers, and compute derived fields with pyvista and vtk, completely bypassing the need for ParaView.

Can I automate OpenFOAM dictionary file generation and solver execution in Python?

Yes, you can automate OpenFOAM dictionary file generation and solver execution by using PyFoam to handle case directories and parse solver logs for convergence residuals.

What is the best way to monitor convergence residuals during an OpenFOAM solver run?

The best way to monitor convergence residuals is to parse the solver logs using PyFoam during execution, allowing you to track simulation progress and stability programmatically.

How do I perform a parameter sweep across multiple OpenFOAM simulation cases?

You can perform a parameter sweep by writing a Python script to vary parameters like viscosity across multiple OpenFOAM cases, running them in batches, and aggregating metrics into tabular results for comparison.

Does OpenFOAM headless post-processing with pyvista support exporting analysis-ready outputs?

Yes, OpenFOAM headless post-processing with pyvista supports exporting analysis-ready outputs, allowing you to render plots off-screen and save results as images, CSV files, or VTK formats.

Why do I need PyFoam to run OpenFOAM CFD simulations in an automated workflow?

You need PyFoam to run OpenFOAM CFD simulations in an automated workflow because it provides the necessary libraries for case handling, dictionary manipulation, and parsing solver logs to monitor convergence.