modelPartialSource
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.
Usage
This partial model provides medium selection for water, moist air and glycol. For a model that only provides moist air as a selection, use Buildings.Fluid.Sources.BaseClasses.PartialAirSource.
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 | Fluid ports |
Contents
| Name | Description |
|---|---|
| Medium in the component |
Revisions
-
May 21, 2026, by Michael Wetter:
Removed deprecatedcardinalityfunction.
Removed protected parameterflowDirectionas it was set toBirectionaland had no effect on the model.
This is for Buildings, #4607. -
June 18, 2024, by Michael Wetter:
Addedstartandnominalattributes to avoid warnings in OpenModelica due to conflicting values.
This is for IBPSA, #1890. -
April 1, 2021, by Michael Wetter:
Corrected misplacedeachand added missing instance comment.
See IBPSA, #1462. -
January 18, 2019, by Jianjun Hu:
Limited the media choice. See IBPSA, #1050. -
May 30, 2018, by Michael Wetter:
Improved documentation. -
February 2nd, 2018 by Filip Jorissen
Initial version for refactoring inputs of sources. See IBPSA, #882.