turbo_moc.fluent.stage.planar module#

Planar stage and rotor-alone cases: the MoC stator and the Goldman vortex rotor as 2D cascades in Fluent.

On an axial machine the rotating-frame forces on a cylinder (centrifugal and Coriolis) are radial, so the blade-to-blade plane with the rotor zone translating at U is the stage at that radius, and the rotor alone is a stationary cascade fed with its relative inflow. Radial equilibrium and spanwise stream-tube changes are left out. Fluent’s 2D flows are per metre of depth.

python -m turbo_moc.fluent.stage.planar <workflow.yaml> [stage|rotor|stage-extract|rotor-extract] designs the rows (planar_design), assembles the planar mesh, writes the Fluent case and, when the workflow asks for it, solves it and extracts the fields; the -extract modes only re-extract a solved case.

turbo_moc.fluent.stage.planar.build_mesh(output_dir, design, rotor_only=False)[source]#
turbo_moc.fluent.stage.planar.close_fluent(solver, fluent_dir)[source]#

Exit Fluent, then run its own cleanup scripts so no MPI process keeps the licence or the files.

turbo_moc.fluent.stage.planar.configure_rotor(solver, mesh, state, expressions, cycle, options)[source]#

The rotor alone, at rest, fed with the design relative inflow.

inlet: mass_flow (default) imposes the flow of a choked stator, but lets the total pressure float, which favours the unstarted branch. inlet: pressure imposes the relative total pressure and direction like an upstream reservoir, with total_pressure_expression making Fluent’s incompressible p0-p relation isentropic.

turbo_moc.fluent.stage.planar.configure_stage(solver, mesh, state, expressions, cycle, options)[source]#

Stator at rest, rotor zone translating at U along the stator swirl, a non-conformal interface between them.

With interface: mixing_plane the stator outlet and rotor inlet become a pressure outlet and a pressure inlet, to be coupled by a mixing plane (Fluent: Setup > Turbomachinery > Mixing Planes); their values are only a start.

turbo_moc.fluent.stage.planar.extract(solver, configured, path)[source]#

Node and face values on the interior, flow and blade surfaces, the mass flows and the tangential blade forces.

Face normals are not requested: Fluent 24.2 crashes when they are asked for on a 2D interface zone.

turbo_moc.fluent.stage.planar.extract_case(config_file, name)[source]#

Re-read a solved planar case and extract its fields again, without redesigning or solving.

turbo_moc.fluent.stage.planar.flow_model(settings, options)[source]#

Inviscid when the workflow says viscous: false; the turbulence residuals then drop out.

turbo_moc.fluent.stage.planar.import_mesh(settings, mesh_file, rows)[source]#
turbo_moc.fluent.stage.planar.inflow_direction(rotor)[source]#

+1 when the rotor’s inlet extension runs towards +x as the flow runs towards -y.

turbo_moc.fluent.stage.planar.inlet_direction(inflow, beta)[source]#
turbo_moc.fluent.stage.planar.main(config_file, mode='stage')[source]#
turbo_moc.fluent.stage.planar.mass_flow_inflow(inflow, mesh)[source]#

The design relative inflow of one rotor passage, per metre of depth, and its planar direction.

turbo_moc.fluent.stage.planar.outlet_boundary(settings, zones, pressure, options)[source]#
turbo_moc.fluent.stage.planar.solve_rotor(solver, configured, options)[source]#

Start from a uniform inflow, then the staged strategy.

A stage beta [deg] turns the inlet flow direction, so a passage started with a supersonic axial inflow can be carried to the subsonic-axial unique incidence. A stage outlet_pressure [Pa] resets the back pressure, so a passage started against a low back pressure can be raised to the design one.

turbo_moc.fluent.stage.planar.summary(design, mesh, cycle)[source]#
turbo_moc.fluent.stage.planar.swirl_direction(stator)[source]#

+1 when the stator exit flow runs towards +x in the planar frame (the flow runs towards -y).

turbo_moc.fluent.stage.planar.total_pressure_expression(closure, total, static, degree=8)[source]#

Inlet total pressure that is isentropic on the barotropic model at any inlet state.

Fluent subtracts rho W^2 / 2 from the total pressure of a pressure-defined density; giving it p + rho(p) [H(P0_rel) - H(p)] makes that equal to the barotropic head drop, so W^2 / 2 = H(P0_rel) - H(p) whether the inflow is supersonic or subsonic. H(p) is fitted from 0.3 times the design static pressure to just below P0_rel.

turbo_moc.fluent.stage.planar.translational_periodicity(settings, zones, rows, pitch_m)[source]#

Each row’s sides paired one sector apart along +x (2D needs the explicit translation vector).

pitch_m is one sector for all rows, or a {row: sector} mapping when the rows differ (mixing plane).

turbo_moc.fluent.stage.planar.turbulence(boundary, options, backflow=False)[source]#