Mesh requirements

Prepare and inspect a mesh before creating your first case

Prepare mesh elements, zones, boundary markers, and units, and inspect mesh quality before creating a Wake CFD case.

The packaged ONERA M6 example already includes a mesh. When moving to your own geometry, use the checks below before assigning boundary conditions or starting a run. The baseline element guidance here is for the DBNS/PBNS finite-volume path; FR has separate geometry and polynomial-order requirements.

Before you import a mesh

Check What to prepare
File format CGNS, SU2, Gmsh, or AFLR UGRID. Desktop’s import picker currently lists the first three; supply UGRID through JSONC.
Dimension Match the mesh cell dimension, analysis.dimension, and the 2D/3D executable. A thin extruded volume mesh is still 3D.
Units Know the coordinate units. Set mesh[].scale_factor to convert to metres, for example 0.001 for millimetres. Some meshes are normalized (for example, half-span 1) and need the factor that restores their physical size.
Axes Know which axis is the span and which way is lift. In 3D the angle of attack rotates the flow in the x–z plane (x–y in 2D); a wing whose span lies along z needs a freestream direction given as a vector, or a rotated mesh. Monitors and slices follow the same axes.
Elements For an initial finite-volume case, use the linear element families listed below.
Regions and boundaries Export named zones and boundary markers, including all external boundaries and any interface sides.
Near-wall resolution Choose resolved or automatic wall treatment and prepare the boundary-layer mesh accordingly.
Geometry and quality Inspect connectivity, cell orientation, volume, distorted cells, and abrupt spacing changes before solving.

The solver input defaults to format: "cgns"; it does not infer other formats from the filename. Desktop writes the detected format when exporting a case. See Mesh input for format and naming details.

Element families and solver choice

For a first DBNS/PBNS finite-volume case, export linear elements:

Cell dimension Volume elements Boundary elements
2D Triangles (TRI_3), quadrilaterals (QUAD_4) Line segments (BAR_2)
3D Tetrahedra (TETRA_4), pyramids (PYRA_5), triangular prisms (PENTA_6), hexahedra (HEXA_8) Triangles and quadrilaterals

Mixed meshes using these families are supported. Boundary-layer prisms or hexahedra can therefore transition to other supported cells in the outer flow.

Do not assume that a format reader’s capabilities define the solver’s element support. The shared readers recognize additional high-order elements, and FR has dedicated high-order geometry handling. Import success alone does not establish that a quadratic, curved, or general polyhedral mesh is suitable for the selected solver. For an initial finite-volume run, export the linear families above; evaluate FR geometry and order separately using an appropriate example and the numerical-method reference.

Zones, markers, and units

Connect volume zones to domains[].mesh_zones, and boundary markers to domains[].boundaries[].mesh_markers. In CGNS, boundaries are identified by BC_t node names, not FamilyName_t. SU2 uses MARKER_TAG; Gmsh uses physical-group names. Boundary-marker matching ignores ASCII letter case but otherwise requires matching names within the bound zone.

For multiple mesh files, give every file a distinct, nonempty scope without /. Use the scope to qualify zone paths; do not prefix boundary-marker names with it. See Multiple zones.

Check the imported geometry size as well as the configured scale factor. A millimetre/metre mistake changes the physical Reynolds number and wall resolution; changing reference values for force coefficients does not correct the mesh coordinates.

Boundary layers and refinement

For viscous cases, select the wall treatment explicitly when establishing a baseline. DBNS RANS no-slip walls default to automatic treatment except in axisymmetric cases; other paths default to resolved treatment. See Wall boundaries and wall-treatment constants.

  • Resolved treatment: resolve the viscous sublayer. A first off-wall solution-point target near \(y^+ = 1\) is a practical starting recommendation for wall-resolved RANS, not an enforced mesh-input limit. Check the resulting surface y+ after solving and adjust the spacing where needed.
  • Automatic treatment: the DBNS SA/SST wall laws vary continuously with y+, with no switching threshold to tune. This does not make boundary-layer thickness, layer count, or wall-normal resolution unimportant. Inspect wall shear and force sensitivity to refinement.
  • Layer construction: use smooth wall-normal growth and sufficient layers across the boundary layer. Highly stretched aligned cells can be useful; avoid combining large aspect ratios with abrupt turning or severe distortion.
  • Outer flow: refine leading/trailing edges, shocks, separation regions, wakes, and gaps according to the quantities of interest. Check the sensitivity to farfield placement instead of assuming one domain size fits every case.

These are mesh-design recommendations, not universal solver acceptance thresholds. Compare successively refined meshes using forces, wall quantities, shock location, or other engineering outputs; residual reduction on one mesh does not demonstrate mesh independence.

Inspect the mesh before solving

The standalone wake_grid tool reads a mesh without running the flow solver:

wake_grid model.cgns --bc
wake_grid model.cgns --metric --dualgrid -o model-check

--bc lists zones, sections, and boundary markers. --metric reports aspect ratio, skewness, scaled Jacobian, nonorthogonality, volume, and the bounding box. --dualgrid adds dual-grid quality, closure checks, and VTU output. Use -f su2, -f gmsh, or -f ugrid when an explicit reader is needed. Unlike the solver’s mesh[].format default, wake_grid defaults to automatic format selection. Review the reports and visualize problematic regions; a successful file read is not a mesh-quality certificate.

The finite-volume solver also checks negative-volume counts and dual-grid closure. Review these diagnostics before proceeding; they do not replace inspection of mesh skewness, aspect ratio, and local geometry.

Warning

Investigate orientation warnings

The current negative-volume report can count cells before automatic orientation repair. A repaired node-ordering issue can therefore still appear in the reported negative-volume count. Inspect the orientation-repair log and geometry before treating that count as an unrepaired inverted mesh. Do not dismiss it merely because the run continues.

Once these checks are complete, assign domains and boundaries, run a conservative baseline, and inspect the surface y+, solution fields, conservation, and quantities of interest. Continue with Mesh and boundary conditions in Desktop or Mesh input.