Flow Mixer
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 |
|---|---|---|
name | str | Component name |
network | Network | Network that owns this component |
pressure | State | Mixer pressure |
volume | float | Mixer control volume |
enthalpy | State, optional | Mixer specific enthalpy |
temperature | State, optional | Mixer temperature |
density | State, optional | Mixer density |
internal_ | State, optional | Mixer specific internal energy |
heat_ | State or float, optional | Net heat rate into the mixer |
composition | Composition, optional | Mixed outlet composition |
composition_ | Composition, optional | Composition of inlet stream 1 |
composition_ | Composition, optional | Composition of inlet stream 2 |
total_ | State, optional | Total specific enthalpy of inlet stream 1 |
total_ | State, optional | Total specific enthalpy of inlet stream 2 |
total_ | State, optional | Outlet total specific enthalpy. If omitted, the mixer enthalpy is used. |
mass_ | State, optional | Inlet mass flow rate 1 |
mass_ | State, optional | Inlet mass flow rate 2 |
mass_ | State, optional | Outlet mass flow rate |
Iteration Variables
| Name | Type | Description |
|---|---|---|
pressure | State | Mixer pressure |
enthalpy | State, optional | Mixer specific enthalpy when energy conservation is enabled |
Residuals
| Name | Type | Description |
|---|---|---|
mass_ | float | Enforces steady-state mass conservation. mass_flow_in1 + mass_flow_in2 - mass_flow_out = 0 |
energy_ | float, 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 = 0Included only when energy solving is enabled. |