Skip to content

Compressible Flow Tube

fullflow.CompressibleFlowTube

Compressible flow tube with longitudinal inertia and friction.

CompressibleFlowTube solves mass flow as an iteration variable using a steady momentum residual between upstream and downstream nodes. The branch supports forward and reverse flow through the longitudinal inertia sign convention.

Parameters

Name Type Description
namestr

Component name

networkNetwork

Network that owns this component

mass_flowState

Tube mass flow rate

upstream_static_pressureState

Upstream static pressure

upstream_static_temperatureState

Upstream static temperature

upstream_densityState

Upstream density

downstream_static_pressureState

Downstream static pressure

downstream_static_temperatureState

Downstream static temperature

downstream_densityState

Downstream density

lengthfloat

Tube length

inner_diameterfloat

Tube inner diameter

friction_factorfloat, optional

Darcy friction factor

upstream_static_enthalpyState, optional

Upstream static enthalpy

upstream_speed_of_soundState, optional

Upstream speed of sound

downstream_speed_of_soundState, optional

Downstream speed of sound

specific_heat_ratioState, optional

Specific heat ratio

Outputs

Name Type Description
total_enthalpyState, optional

Upstream total enthalpy

upstream_mach_numberState, optional

Upstream Mach number

downstream_mach_numberState, optional

Downstream Mach number

upstream_total_pressureState, optional

Upstream total pressure

upstream_total_temperatureState, optional

Upstream total temperature

downstream_total_pressureState, optional

Downstream total pressure

downstream_total_temperatureState, optional

Downstream total temperature

Iteration Variables

Name Type Description
mass_flowState

Tube mass flow rate

Residuals

Name Type Description
momentum_balancefloat

Enforces steady one-dimensional momentum balance through the tube

pressure_force - friction_force - inertia_force = 0