turbo_moc.visualization.mesh_mpl module#

Matplotlib mesh figures and Gmsh display configuration.

turbo_moc.visualization.mesh_mpl.annotate_mesh_boundaries(ax, data, options, shifts)[source]#

Label outer passage boundaries and a central blade for any blade count.

turbo_moc.visualization.mesh_mpl.collect_mesh_plot_data(fluid_surface, boundaries=None)[source]#

Read actual cells and named 1D physical groups; omit unused CAD nodes.

turbo_moc.visualization.mesh_mpl.configure_mesh_display()[source]#

Use orange for both 2D element types, independent of saved GUI colors.

turbo_moc.visualization.mesh_mpl.mesh_figure_options(settings)[source]#

Validate the small set of user controls for one exported mesh view.

turbo_moc.visualization.mesh_mpl.plot_mesh_figure(data, *, pitch, options)[source]#

Draw the selected number of pitch-translated blades in one boxed figure.

turbo_moc.visualization.mesh_mpl.save_mesh_image(filename, fluid_surface, *, boundaries=None, pitch=None, settings=None)[source]#

Export one Times-styled mesh view to PNG and SVG without opening a GUI.