modelPartialSource
Partial component source with one fluid connector
Information
Partial model for a fluid source that either prescribes
pressure or mass flow rate.
Models that extend this partial model need to prescribe the outflowing
specific enthalpy, composition and trace substances.
This partial model only declares the ports
and ensures that the pressures at all ports are equal.
Implementation
If the parameter verifyInputs is set to true,
then a protected instance of medium base properties is enabled.
This instance verifies that the
medium temperature is within the bounds T_min and T_max,
where T_min and T_max are constants of the Medium.
If the temperature is outside these bounds, the simulation will stop with an error.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts | 0 | Number of ports |
| Advanced | |||
| Boolean | verifyInputs | false | Set to true to stop the simulation with an error if the medium temperature is outside its allowable range |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts] | ports |
Contents
| Name | Description |
|---|---|
| Medium model within the source |
Revisions
-
May 30, 2018, by Michael Wetter:
Improved documentation. -
February 2nd, 2018 by Filip Jorissen
Initial version for refactoring inputs of sources. See #882.