turbo_moc.fluent.stage.planar_mesh module

turbo_moc.fluent.stage.planar_mesh module#

Planar stage mesh: the rows’ midspan reference sections assembled into one 2D CGNS for Fluent.

Each row’s reference section lives in its own conformal frame (x along the pitch, y along the meridional direction, millimetres), with periodic_right one pitch to +x of periodic_left. On an axial channel at the reference radius this frame is the unwrapped midspan cylinder, so the rows are joined by a translation that puts the rotor inlet on the stator outlet; the rotor passage is repeated along the pitch until both rows span the same sector, as for the 3D frozen rotor.

turbo_moc.fluent.stage.planar_mesh.assemble(stator, rotor, rotor_copies, match=True)[source]#

Rotor passages repeated to the stator pitch and moved so that their inlet lies on the stator outlet.

With match=False (mixing plane) the rows keep their own pitches.

turbo_moc.fluent.stage.planar_mesh.edge_line(section, name)[source]#
turbo_moc.fluent.stage.planar_mesh.load_section(path)[source]#
turbo_moc.fluent.stage.planar_mesh.oriented(section)[source]#

Cells counterclockwise and each boundary edge with its owner cell and local edge position (1-based).

turbo_moc.fluent.stage.planar_mesh.replicate(section, copies)[source]#

copies passages side by side along +x, the shared periodic seams merged into interior edges.

turbo_moc.fluent.stage.planar_mesh.translated(section, offset)[source]#
turbo_moc.fluent.stage.planar_mesh.write_cgns(filename, zones, length_scale=0.001)[source]#

One 2D CGNS base with a zone per row; zones maps a row id to its section, boundaries named <row>_<name>.