pw_export_openfoam
Export a volume mesh from Fidelity Pointwise into OpenFOAM case polyMesh format, mapping boundary domains to patches by name pattern and optionally running checkMesh.
Instructions
Export the volume mesh with CAE solver OpenFOAM to <case_dir>/constant/polyMesh. Boundary domains map to OpenFOAM patches by name pattern (first match wins). Default patches: symmetry-* -> 'symmetry' (symmetryPlane), farfield-* -> 'farfield' (patch), everything else -> 'wall' (wall). Unmatched domains fail the export unless unassigned='allow'. Optionally writes minimal system/ files and runs checkMesh in WSL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"case_dir": "<case_dir>"
},
"name": "pw_export_openfoam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | No | Block name patterns to export (default all). | |
| backend | No | 'batch' (default): a headless tclsh run per call, state passed through .pw files. 'live': send the step to a running Pointwise GUI through its Glyph Server (port 2807). | |
| patches | No | Ordered patch rules {name, type, domains}. | |
| project | No | Input Fidelity Pointwise project (.pw). Required with the batch backend. With the live backend omit it to work on the session open in the GUI; giving it loads that file first. | |
| save_as | No | Also save the project (with the OpenFOAM BCs) to this .pw. | |
| case_dir | Yes | OpenFOAM case folder; the mesh goes to constant/polyMesh. | |
| overwrite | No | Replace an existing polyMesh in case_dir. | |
| unassigned | No | What to do with boundary domains no rule matches. | error |
| run_checkmesh | No | Run OpenFOAM checkMesh in WSL after export. | |
| discard_unsaved | No | Live backend only: allow replacing a GUI session with unsaved changes. | |
| timeout_seconds | No | Seconds before the Pointwise run is stopped with kind=timeout (default 1800). Counts time the computer is awake; sleep or hibernation does not count. | |
| write_case_files | No | Write minimal system/controlDict, fvSchemes, fvSolution if missing. | |
| export_attributes | No | OpenFOAM exporter attributes, e.g. {"PointPrecision": 16}. | |
| checkmesh_timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||