turbo_moc.app.application module#
Row-aware TurboMoC geometry and meshing workspaces.
- turbo_moc.app.application.controls(value, prefix, row_id, *, hidden_paths=())[source]#
Stable row IDs separate field ownership from display order.
- turbo_moc.app.application.flow_domain_controls(project, row)[source]#
Retain solitary-row values while shared boundaries derive their extent.
Hidden controls remain mounted so switching to a single row restores its saved extension, instead of writing the derived assembly value into YAML.
- turbo_moc.app.application.flow_group(component, row_id, kind, part)[source]#
Outlet condition: hidden for blades built from geometry alone. The inlet group stays (coupling selector and rotor speed); its manual thermodynamic fields are hidden by rotor_inlet_display for those blades.
- turbo_moc.app.application.geometric_blade_groups(design, row_id, coupled=False)[source]#
Parameter groups of the geometry-only rotor blades, always mounted and shown for the selected type.
Saved values are shown, else the defaults. Hidden groups are ignored on edit (workflow.edited_project), so a vortex row never gains these inputs and keeps its job identities. With the inlet coupled to the stator exit, the inlet angle comes from the velocity triangle: its manual field is hidden (kept for the manual inlet).
- turbo_moc.app.application.internal_domain_sides(project, row_id)[source]#
Identify internal boundaries without requiring a currently valid gap.
- turbo_moc.app.application.outlet_controls(parameters, row_id, section='method_of_characteristics')[source]#
- turbo_moc.app.application.read_uploaded_project(contents)[source]#
Decode and validate a browser upload before changing any settings.
- turbo_moc.app.application.ready_rows(state, registry)[source]#
Yield current row profiles, resolving coupled inlet dependencies first.
- turbo_moc.app.application.rotor_blade_fields(design, row_id)[source]#
Vortex-solver inputs, each shown only for the blade types that read it.
- turbo_moc.app.application.rotor_inlet_controls(geometry, row_id, combined)[source]#
Keep manual values mounted while coupled values use separate read-only cells.
This preserves the user’s independent inlet state when toggling coupling, and prevents calculated values from feeding back into editable settings.
Show physical distances, not the inactive conformal chord fractions.