cfd-pipeline-openfoam-case-setup-from-mesh
Sub-skill of cfd-pipeline: OpenFOAM Case Setup from Mesh (+2).
Best use case
cfd-pipeline-openfoam-case-setup-from-mesh is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of cfd-pipeline: OpenFOAM Case Setup from Mesh (+2).
Teams using cfd-pipeline-openfoam-case-setup-from-mesh should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/openfoam-case-setup-from-mesh/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How cfd-pipeline-openfoam-case-setup-from-mesh Compares
| Feature / Agent | cfd-pipeline-openfoam-case-setup-from-mesh | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of cfd-pipeline: OpenFOAM Case Setup from Mesh (+2).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# OpenFOAM Case Setup from Mesh (+2)
## OpenFOAM Case Setup from Mesh
```bash
# After meshing, set up the solver case:
# 1. Copy 0/ boundary conditions (must match mesh patches)
# 2. Configure system/controlDict
# 3. Configure system/fvSchemes and system/fvSolution
# 4. Set physical properties in constant/
# Check that boundary names in 0/ match polyMesh/boundary
grep -r "type" constant/polyMesh/boundary | grep -v "//"
ls 0/ # Should have U, p, k, omega, etc.
```
## Boundary Condition Consistency Check
```python
def check_bc_consistency(case_dir):
"""Verify boundary conditions match mesh patches."""
from pathlib import Path
import re
# Get mesh patches
boundary_file = Path(case_dir) / 'constant' / 'polyMesh' / 'boundary'
boundary_text = boundary_file.read_text()
mesh_patches = set(re.findall(r'^\s+(\w+)\s*$', boundary_text, re.MULTILINE))
# Get BC patches from 0/ files
zero_dir = Path(case_dir) / '0'
issues = []
for bc_file in zero_dir.glob('*'):
if bc_file.is_file():
content = bc_file.read_text()
bc_patches = set(re.findall(r'^\s+(\w+)\s*\{', content, re.MULTILINE))
# Remove non-patch entries
bc_patches -= {'boundaryField', 'internalField', 'FoamFile', 'dimensions'}
missing = bc_patches - mesh_patches
if missing:
issues.append(f"{bc_file.name}: references non-existent patches: {missing}")
return issues
```
## Solver Execution
```bash
# Serial execution
simpleFoam -case /path/to/case 2>&1 | tee log.simpleFoam
# Parallel execution
decomposePar -case /path/to/case
mpirun -np 4 simpleFoam -parallel -case /path/to/case 2>&1 | tee log.simpleFoam
reconstructPar -case /path/to/case
```Related Skills
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
solidworks-to-blender-pipeline
Use when converting SolidWorks .sldprt/.sldasm geometry to Blender for rendering, animation, or visualization, including questions about STEP export settings, FreeCAD as a bridge, or which mesh format (STL/OBJ/GLTF) to choose.
tax-filing-session-setup-with-github-tracking
Structured workflow for preparing and tracking a tax filing session using prepared documents, task checklist, and GitHub issue cross-referencing
tax-filing-session-setup-with-github-traceability
Structured workflow for setting up a multi-file tax filing session with GitHub issue tracking and prepared-file validation
multi-role-agent-contract-review-pipeline
Execute a 4-role agent team (Planner/Architect/Reviewer/Integrator) pipeline for self-reviewing knowledge artifacts before delivery
awk-range-pattern-edge-case-debugging
Debugging technique for awk range patterns that collapse when start line matches end pattern
gtm-prospect-pipeline-phased-execution
Phased execution pattern for
nextflow-pipelines
Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data for gene expression, variant calling, and chromatin accessibility analyses.
orcawave-mesh-generation
Panel mesh generation for OrcaWave diffraction analysis. Use when converting CAD/STL to panel mesh, validating mesh quality, running convergence studies, or generating GDF files for hydrodynamic computations.
orcaflex-vessel-setup
Configure 6-DOF vessels in OrcaFlex with hydrodynamic properties, RAO import from AQWA, and vessel type creation. Covers initial position, orientation, calculation settings, and motion options.
hermes-windows-setup
Install and configure a repo-centric Hermes agent workspace on Windows. Covers prerequisites, repo cloning, Python/uv environment, skills system, memory bridge, and multi-agent coordination — the Windows equivalent of the Linux workspace-hub pattern.
gh-issue-creation-full-repo-and-batch-setup
Create multiple related GitHub issues safely by resolving full OWNER/REPO, checking duplicates and labels first, and verifying each created issue.