turbo_moc.deprecated.meshing.passage_volume module#

Swept passage volumes: discrete hex/prism assembly, checks and CGNS export.

Geometry-independent core shared by the app’s swept stator mesh (turbo_moc.meshing.stator_mesh_3d) and examples/gmsh_3D: a 2D passage section (quads/triangles, named boundary edges, periodic node pairs) plus its node coordinates on each span station become hexahedra/prisms with seven named patches and rotational periodicity about Z.

channel is any object with orientation (+1/-1: cell winding that gives positive volumes), pitch_angle [rad], reference_radius [mm] and rotation() (4x4 homogeneous periodic_left -> periodic_right transform). Volume assembly and the CGNS audit follow ParaBlade’s mesh_examples/3D and 3D_v2, without a ParaBlade dependency.

turbo_moc.deprecated.meshing.passage_volume.add_cgns_periodicity(zone, node_tags, channel)[source]#

Store reciprocal vertex correspondences and current-to-donor rotations.

turbo_moc.deprecated.meshing.passage_volume.add_cgns_units(base)[source]#

CGNS coordinates are metres, while rotational angles are radians.

turbo_moc.deprecated.meshing.passage_volume.assemble_volume(section, xyz_sections, channel)[source]#

Turn section quads/triangles into oriented hexes/prisms and surface faces.

turbo_moc.deprecated.meshing.passage_volume.boundary_types(overrides=None)[source]#

Default to reference-compatible Null; do not infer unspecified physics.

turbo_moc.deprecated.meshing.passage_volume.collect_surface_mesh()[source]#

Gather mesh polygons without any refitting or reconstructed geometry.

turbo_moc.deprecated.meshing.passage_volume.export_cgns(path, settings, channel)[source]#

Write the current 3D Gmsh mesh as CGNS 3.4 ADF, and audit its BC tree.

Requires exactly one fluid physical volume plus the seven named patches. Returns statistics suitable for the example’s JSON/Markdown report. CGNS periodic patches remain named BCs; Fluent’s rotational pairing is a solver setup step, with the transform recorded in the mesh summary and MSH file.

turbo_moc.deprecated.meshing.passage_volume.validate_volume(section, xyz_sections, channel)[source]#

Check Jacobians, seven exterior patches and a complete rotational bijection.