Skip to content

Flow Mixer

fullflow.FlowMixer

Two-inlet mixing volume with optional energy and species conservation.

FlowMixer combines two incoming streams into a single outlet stream while enforcing steady-state mass conservation. Optional energy and species balances may also be solved when the corresponding states are provided.

The outlet composition is calculated from the mass-flow-weighted mixture of the two inlet compositions.

Parameters

Name Type Description
namestr

Component name

networkNetwork

Network that owns this component

pressureState

Mixer pressure

volumefloat

Mixer control volume

enthalpyState, optional

Mixer specific enthalpy

temperatureState, optional

Mixer temperature

densityState, optional

Mixer density

internal_energyState, optional

Mixer specific internal energy

heat_rateState or float, optional

Net heat rate into the mixer

compositionComposition, optional

Mixed outlet composition

composition_in1Composition, optional

Composition of inlet stream 1

composition_in2Composition, optional

Composition of inlet stream 2

total_enthalpy_in1State, optional

Total specific enthalpy of inlet stream 1

total_enthalpy_in2State, optional

Total specific enthalpy of inlet stream 2

total_enthalpy_outState, optional

Outlet total specific enthalpy. If omitted, the mixer enthalpy is used.

mass_flow_in1State, optional

Inlet mass flow rate 1

mass_flow_in2State, optional

Inlet mass flow rate 2

mass_flow_outState, optional

Outlet mass flow rate

Iteration Variables

Name Type Description
pressureState

Mixer pressure

enthalpyState, optional

Mixer specific enthalpy when energy conservation is enabled

Residuals

Name Type Description
mass_balancefloat

Enforces steady-state mass conservation.

mass_flow_in1 + mass_flow_in2 - mass_flow_out = 0
energy_balancefloat, optional

Enforces steady-state flow energy conservation.

mass_flow_in1 * total_enthalpy_in1 + mass_flow_in2 * total_enthalpy_in2 - mass_flow_out * total_enthalpy_out + heat_rate = 0

Included only when energy solving is enabled.