openfoam-21-environment-setup
БесплатноБез исполняемых скриптовНе проверенSub-skill of openfoam: 2.1 Environment Setup (+6).
от vamseeachanta★ 21 звезда на GitHubОб этом скилле
2.1 Environment Setup (+6)
2.1 Environment Setup
source /usr/lib/openfoam/openfoam2312/etc/bashrc
2.2 Serial Workflow
# 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
# 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)
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)
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 |
Установить openfoam-21-environment-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл openfoam-21-environment-setup?
Sub-skill of openfoam: 2.1 Environment Setup (+6).
Как установить скилл openfoam-21-environment-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openfoam-21-environment-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic