cfd-code-modify

Implement custom turbulence, viscosity, or source models in OpenFOAM cases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies implementing and validating custom OpenFOAM models within existing simulation cases, reducing manual coding effort.

Core Features & Use Cases

  • Model Customization: Allows users to embed custom turbulence, viscosity, or source term models directly into local case directories.
  • Automated Compilation & Testing: Builds and smoke-tests the custom code, ensuring compatibility and correctness.
  • Use Case: Imagine a researcher developing a new turbulence model; this Skill guides them through code creation, compilation, and basic validation.

Quick Start

Use the cfd-code-modify skill to create, compile, and validate a custom turbulence model in your case directory.

Frequently Asked Questions about cfd-code-modify

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

FAQPage Schema
How do I implement a custom turbulence model in OpenFOAM?

You can implement custom OpenFOAM models by embedding turbulence, viscosity, or source term code directly into local case directories. This Skill automates the creation, local compilation, and basic validation workflows for these modifications.

How does OpenFOAM custom model compilation and testing work?

Custom model compilation builds and smoke-tests the modified code locally to ensure compatibility and correctness. This Skill automates building and testing custom OpenFOAM viscosity or source terms within existing simulation cases.

Can I add custom viscosity or source term models to existing OpenFOAM cases?

Yes, you can embed custom viscosity or source term models directly into existing OpenFOAM case directories. This Skill supports literature-based modifications, local compilation, and validation workflows for your simulation cases.

What do I need to provide to automate OpenFOAM custom model development?

You need structured payloads including the model description, local case paths, and literature references. These inputs allow the Skill to automate custom OpenFOAM model creation, compilation, and validation workflows.

What is the best way to validate a custom OpenFOAM turbulence model?

The best way to validate a custom OpenFOAM turbulence model is through automated local compilation and smoke-testing. This Skill streamlines the validation workflow by building and testing custom code within your simulation case directory.