openfoam-21-environment-setup
Sub-skill of openfoam: 2.1 Environment Setup (+6).
Best use case
openfoam-21-environment-setup is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of openfoam: 2.1 Environment Setup (+6).
Teams using openfoam-21-environment-setup 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/21-environment-setup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How openfoam-21-environment-setup Compares
| Feature / Agent | openfoam-21-environment-setup | 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 openfoam: 2.1 Environment Setup (+6).
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
# 2.1 Environment Setup (+6) ## 2.1 Environment Setup ```bash source /usr/lib/openfoam/openfoam2312/etc/bashrc ``` ## 2.2 Serial Workflow ```bash # 1. Generate mesh blockMesh # 2. Check mesh quality checkMesh checkMesh -allTopology -allGeometry # comprehensive # 3. Initialize flow (optional, helps convergence) potentialFoam -writephi # 4. Run solver simpleFoam > log.simpleFoam 2>&1 # steady-state pimpleFoam > log.pimpleFoam 2>&1 # transient interFoam > log.interFoam 2>&1 # multiphase icoFoam > log.icoFoam 2>&1 # laminar transient # 5. Post-process simpleFoam -postProcess -func yPlus -latestTime foamToVTK -latestTime # export for ParaView foamLog log.simpleFoam # extract residuals to logs/ ``` ## 2.3 Parallel Workflow ```bash # 1. Decompose decomposePar # 2. Run in parallel mpirun -np 4 simpleFoam -parallel > log.simpleFoam 2>&1 # 3. Reconstruct reconstructPar -latestTime # latest time only reconstructPar # all times # 4. Cleanup processor directories (after reconstruction) rm -rf processor* ``` ## 2.4 Complex Geometry Workflow (snappyHexMesh) ```bash surfaceFeatureExtract # extract feature edges from STL blockMesh # background mesh decomposePar mpirun -np 6 snappyHexMesh -overwrite -parallel mpirun -np 6 potentialFoam -writephi -parallel mpirun -np 6 simpleFoam -parallel > log.simpleFoam 2>&1 reconstructPar -latestTime ``` ## 2.5 Multiphase Workflow (interFoam) ```bash blockMesh setFields # initialize alpha field from setFieldsDict interFoam > log.interFoam 2>&1 ``` ## 2.6 Solver Selection Guide | Scenario | Solver | Algorithm | |----------|--------|-----------| | Steady incompressible RANS | simpleFoam | SIMPLE | | Transient incompressible | pimpleFoam | PIMPLE | | Transient laminar | icoFoam | PISO | | VOF multiphase | interFoam | PIMPLE | | Potential flow init | potentialFoam | — | | Compressible | rhoSimpleFoam | SIMPLE | | Buoyant convection | buoyantSimpleFoam | SIMPLE | ## 2.7 Key CLI Flags | Flag | Purpose | |------|---------| | `-case <dir>` | Specify case directory | | `-parallel` | Run in parallel (after decomposePar) | | `-postProcess` | Execute function objects only | | `-latestTime` | Process latest time directory only | | `-overwrite` | Overwrite existing mesh (snappyHexMesh) | | `-writephi` | Write flux field (potentialFoam) | | `-dry-run` | Check setup without running | ---
Related Skills
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
large-parallel-planning-wave-environment-failure-handoff
Handle large pre-plan-review planning waves that succeed analytically but fail to persist artifacts due to quota exhaustion, sandbox write failures, or cancelled GitHub mutations.
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.
orcaflex-environment-config
Configure OrcaFlex environmental conditions including wave spectra (JONSWAP, Dean Stream), current profiles, wind loading, and seabed properties for offshore analysis.
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.
semantic-search-setup
Setup vector embeddings and semantic search for document collections. Use for AI-powered similarity search, finding related documents, and preparing knowledge bases for RAG systems.
json-config-loader-5-environment-variable-configuration
Sub-skill of json-config-loader: 5. Environment Variable Configuration.
gmsh-openfoam-orcaflex-stub-mode-details
Sub-skill of gmsh-openfoam-orcaflex: Stub Mode Details.
gmsh-openfoam-orcaflex-real-mode-requirements
Sub-skill of gmsh-openfoam-orcaflex: Real Mode Requirements.
gmsh-openfoam-orcaflex-quick-invocation
Sub-skill of gmsh-openfoam-orcaflex: Quick Invocation.