modelSinkPressure
Extends from Icons.Gas.SourceP.
Information
Modelling options
The actual gas used in the component is determined by the replaceable Medium package. In the case of multiple component, variable composition gases, the nominal gas composition is given by Xnom, whose default value is Medium.reference_X .
If R is set to zero, the pressure sink is ideal; otherwise, the inlet pressure increases proportionally to the outgoing flowrate.
If the in_p connector is wired, then the source pressure is given by the corresponding signal, otherwise it is fixed to p0.
If the in_T connector is wired, then the source temperature is given by the corresponding signal, otherwise it is fixed to T.
If the in_X connector is wired, then the source massfraction is given by the corresponding signal, otherwise it is fixed to Xnom.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.AbsolutePressure | p0 | 101325 | Nominal pressure |
| Medium.Temperature | T | 300 | Nominal temperature |
| Medium.MassFraction[Medium.nX] | Xnom | Medium.reference_X | Nominal gas composition |
| Units.HydraulicResistance | R | 0 | Hydraulic Resistance |
| Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction |
| External inputs | |||
| Boolean | use_in_p0 | false | Use connector input for the pressure |
| Boolean | use_in_T | false | Use connector input for the temperature |
| Boolean | use_in_X | false | Use connector input for the composition |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FlangeA | flange | ||
| Modelica.Blocks.Interfaces.RealInput | in_p0 | ||
| Modelica.Blocks.Interfaces.RealInput | in_T | ||
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | in_X |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | gas | ||
| ThermoPower.System | system | System wide properties |
Contents
| Name | Description |
|---|---|
Revisions
- 19 Nov 2004
by Francesco Casella:
Removed p0fix and Tfix and Xfix; the connection of external signals is now detected automatically. - 1 Oct 2003
by Francesco Casella:
First release.
Adapted to Modelica.Media