scaffold_case
Set up a runnable OpenFOAM case with specified solver, mesh dimensions, and turbulence fields. Generates system, constant, and 0 directories for immediate blockMesh and solver execution.
Instructions
Create a runnable OpenFOAM case skeleton at case_dir for the chosen
solver (simpleFoam / pimpleFoam / icoFoam). Writes system/, constant/ and 0/
with a single-block box mesh (patches: inlet, outlet, walls, frontAndBack)
and consistent turbulence fields.
openfoam_flavor selects the case style:
'classic' (default): application ; + transportProperties. Validated on ESI v1912; works on ESI v2006+ and Foundation v8-v10.
'foundation-v12': application foamRun; solver incompressibleFluid; + physicalProperties. Targets OpenFOAM Foundation v11/v12. Run blockMesh, then
<solver>(classic) orfoamRun(foundation-v12).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solver | No | simpleFoam | |
| cells_x | No | ||
| cells_y | No | ||
| cells_z | No | ||
| case_dir | Yes | ||
| domain_x | No | ||
| domain_y | No | ||
| domain_z | No | ||
| end_time | No | ||
| velocity | No | ||
| openfoam_flavor | No | classic | |
| kinematic_viscosity | No |