modelMassFractionModifier
Mass fraction modifier
Extends from ThermofluidStream.Interfaces.SISOFlow.
Information
Process to achieve a change in composition. Further assumptions:
- Isobaric:
p_out = p_in - Isothermal:
T_out = T_in. This can lead to errors in the two-phase region, where temperature alone does not uniquely define the thermodynamic state.. - Steady-state conditions:
dE_sys/dt = 0, dm_sys/dt = 0
The following quantities can be specified either as parameters or as time-varying input signals:
- Difference in mass fractions:
dXi = X_out - X_in - Outlet mass fractions:
X_out
See the example Tests.Processes.MassFractionModifier.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Specification | |||
| OutletSpecification | outletSpec | ThermofluidStream.Idealized.Types.OutletSpecification.Composition.MassFractionsDifference | Quantity used to define the outlet state |
| ValueSpecification | outletValueSpec | ThermofluidStream.Types.ValueSpecification.Fixed | Specifies whether the quantity is fixed or prescribed |
| ThermofluidStream.Units.MassFractionDifference[Medium.nXi] | dXi_fixed | fill(0, Medium.nXi) | Fixed difference in mass fractions (dXi = Xi_out - Xi_in) |
| Medium.MassFraction[Medium.nXi] | Xi_out_fixed | Medium.X_default[1:Medium.nXi] | Fixed outlet mass fractions |
| Layout › Display parameters | |||
| Boolean | showOutletSpecification | true | = true to show the fixed outlet specification value (either dXi_fixed or Xi_out_fixed) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | outletSpec_prescribed | Prescribed outlet specification [kg/kg] | |
| ThermofluidStream.Units.MassFractionDifference[Medium.nXi] | dXi | Difference in mass fractions | |
| Medium.Temperature | T_in | Medium.temperature(inlet.state) | Inlet temperature |
Revisions
-
2026-08, by Silvan Keim (silvan.keim@dlr.de):
Improved icon. -
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.