turbo_moc.meshing.stator_structured_2d module#
Structured multi-block (O-H) 2D mesh of a stator blade passage.
TurboGrid-like topology on the same fluid domain as the unstructured mesh (stator_mesh_2d.stator_flow_domain): an O-grid around the blade carries the boundary layer – exactly num_layers cells at growth_ratio, first cell first_height – and five H-blocks fill the passage:
inlet
+------------------+
| upstream |
+---------O--------+ O = LE' / TE': the O-grid's offset curve
| channel |channel | at the blade's axial max / min, where
| (one O (other| pitchwise connectors start
| side) | side)|
+---------O--------+
| downstream |
+------------------+
outlet
Every block is a transfinite (TFI) quad patch, so the mesh is fully structured. Curves are split at block corners by exact knot insertion, so the geometry is the passage’s own B-splines (no resampling). The pitchwise connectors are horizontal (constant y): from the O-grid’s axial extremes they cannot cross the O-grid, and they meet each periodic side at the pitch-translated point of the other, keeping left/right periodic pieces exact translations.
Raises on anything it cannot build cleanly (offset self-intersection, inverted cells, …); stator_mesh_2d.mesh_sized_stator then falls back to the unstructured mesh.