Find pages across the documentation
Four mesh generation modes -- from automatic blockMesh to agentic GMSH scripting.
blockMeshDict and optionally snappyHexMeshDictblockMesh followed by snappyHexMesh if geometry refinement is needed.msh file generated by any meshing tool..msh file (MSH 2.2 recommended for compatibility).gmshToFoam to convert the mesh into OpenFOAM format.constant/polyMesh/boundary and validated. The agent checks that named physical groups exist and no defaultFaces patches remain.checkMesh runs to verify mesh integrity before the solver starts..msh file defines named physical groups for all boundary surfaces. Without them, OpenFOAM assigns everything to defaultFaces, which prevents proper boundary condition assignment.geometry.msh. The mesh is then converted to solver format via gmshToFoam.defaultFaces, or has mismatched boundaries, the LLM receives the error output and generates a corrected script. This retry loop runs up to 6 attempts by default.blockMeshDict alone.GeometryArtifact from the geometry phase, searches the built-in knowledge base for GMSH patterns, and streams real-time progress updates to the chat UI during generation.constant/triSurface/. If a STEP file is provided, it is first converted to STL.blockMeshDict and snappyHexMeshDict tailored to the geometry dimensions, scale, and flow type.surfaceFeatureExtract, then blockMesh, then snappyHexMesh -overwrite.checkMesh evaluates the mesh. If quality checks fail, the LLM regenerates snappyHexMeshDict with adjusted refinement and layer settings. This repair loop runs up to 6 attempts.| Tool | Purpose |
|---|---|
blockMesh | Structured hexahedral background mesh from blockMeshDict |
snappyHexMesh | Automatic hex-dominant mesh with surface refinement and boundary layers |
cfMesh / cartesianMesh / tetMesh | Alternative automatic mesh generators (cfMesh family) |
checkMesh | Mesh quality validation and diagnostics |
refineMesh | Selective cell refinement based on field or region criteria |
gmsh | External mesh generation via GMSH Python API or .geo scripts |
gmshToFoam | Convert GMSH .msh format to OpenFOAM polyMesh |
surfaceFeatureExtract | Extract feature edges from STL for snappyHexMesh refinement |
checkMesh evaluates quality metrics against configurable thresholds. Each metric receives a pass, warn, or fail status:| Metric | Description | Typical threshold |
|---|---|---|
| Non-orthogonality | Angle between cell-center vector and face normal | warn > 65, fail > 70 |
| Skewness | Offset of face center from cell-center connection | warn > 3, fail > 4 |
| Aspect ratio | Ratio of longest to shortest cell edge | warn > 100, fail > 1000 |