modelBoundary_pT
Boundary with prescribed pressure, temperature, composition and trace substances
Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Information
Defines prescribed values for boundary conditions:
- Prescribed boundary pressure.
- Prescribed boundary temperature.
- Boundary composition (only for multi-substance or trace-substance flow).
If use_p_in is false (default option), the p parameter
is used as boundary pressure, and the p_in input connector is disabled; if use_p_in is true, then the p parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the temperature, composition and trace substances.
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 pressure, do not have an effect.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from PartialSource) | 0 | Number of ports |
| Boolean | use_p_in | false | Get the pressure 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.AbsolutePressure | p | Medium.p_default | Fixed value of pressure |
| 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.FluidPorts_b[nPorts] | ports (from PartialSource) | ||
| Modelica.Blocks.Interfaces.RealInput | p_in | Prescribed boundary pressure | |
| Modelica.Blocks.Interfaces.RealInput | T_in | Prescribed boundary temperature | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X_in | Prescribed boundary composition | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nC] | C_in | Prescribed boundary trace substances |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialSource) | Medium in the source |