modelMassFlowSource_T
Extends from Sources.BaseClasses.PartialFlowSource (Partial component source with one fluid connector).
Information
Models an ideal flow source, with prescribed values of flow rate, temperature, composition and trace substances:
- Prescribed mass flow rate.
- Prescribed temperature.
- Boundary composition (only for multi-substance or trace-substance flow).
If use_m_flow_in is false (default option), the m_flow parameter
is used as boundary pressure, and the m_flow_in input connector is disabled; if use_m_flow_in is true, then the m_flow parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the temperature and composition
Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary flow rate, do not have an effect.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from PartialFlowSource) | 0 | Number of ports |
| Boolean | use_m_flow_in | false | Get the mass flow rate from the input connector |
| Boolean | use_T_in | false | Get the temperature from the input connector |
| Boolean | use_X_in | false | Get the composition from the input connector |
| Boolean | use_C_in | false | Get the trace substances from the input connector |
| Medium.MassFlowRate | m_flow | 0 | Fixed mass flow rate going out of the fluid port |
| Medium.Temperature | T | Medium.T_default | Fixed value of temperature |
| Medium.MassFraction[Medium.nX] | X | Medium.X_default | Fixed value of composition |
| Medium.ExtraProperty[Medium.nC] | C | Medium.C_default | Fixed values of trace substances |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.FluidPort_b[nPorts] | ports (from PartialFlowSource) | ||
| Modelica.Blocks.Interfaces.RealInput | m_flow_in | Prescribed mass flow rate | |
| Modelica.Blocks.Interfaces.RealInput | T_in | Prescribed fluid temperature | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X_in | Prescribed fluid composition | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nC] | C_in | Prescribed boundary trace substances |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialFlowSource) | Medium in the source |