cfd-code-mod

Automate implementing, modifying, and testing custom OpenFOAM models in CFD cases.

40|4|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/csml-rpi/AI-CFD-Scientist --skill cfd-code-mod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfd-code-mod
Source: https://github.com/csml-rpi/AI-CFD-Scientist/tree/main/skills/cfd-code-mod
Command: npx skills add https://github.com/csml-rpi/AI-CFD-Scientist --skill cfd-code-mod

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

It simplifies the process of implementing and modifying custom models in OpenFOAM CFD simulations.

Core Features & Use Cases

  • Custom Model Implementation: Facilitate the addition or alteration of viscosity, turbulence, or source terms locally within a case.
  • Code Integration: Automate the compilation and testing of custom OpenFOAM code snippets embedded in a simulation setup.
  • Use Case: A researcher modifies the turbulence model to test a new closure law, seamlessly integrating code changes and verifying results.

Quick Start

Follow the steps in the embedded recipe to prepare, compile, and test your custom OpenFOAM model.

Frequently Asked Questions about cfd-code-mod

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

FAQPage Schema
How do I modify and compile custom OpenFOAM models within a CFD case?

To modify custom OpenFOAM models within a CFD case, you can use an automated workflow that handles local code changes, compilation, and verification. This requires Bash scripting and access to OpenFOAM build tools to integrate changes seamlessly.

Can I automate testing for custom turbulence or viscosity models in OpenFOAM?

Yes, you can automate the compilation and testing of custom OpenFOAM code snippets embedded in your simulation setup. This allows you to verify modifications to viscosity, turbulence, or source terms locally within the case.

What do I need to build custom OpenFOAM simulation components locally?

You need Bash scripting knowledge and access to OpenFOAM build tools to build custom simulation components locally. The environment must support compiling and testing specialized code snippets within a structured workflow.

What is the best way to integrate new closure laws into an OpenFOAM turbulence model?

The best way to integrate new closure laws is to automate the modification and testing of the turbulence model within your CFD case. This allows seamless integration of code changes and immediate verification of the simulation results.

Does this workflow support adding local source terms to OpenFOAM simulations?

Yes, the workflow facilitates the addition or alteration of local source terms within an OpenFOAM case. It automates the code integration and compilation needed to test these specialized simulation components.