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.

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

TypeNameDefaultDescription
IntegernPorts0Number of ports
Advanced
BooleanverifyInputsfalseSet to true to stop the simulation with an error if the medium temperature is outside its allowable range

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts]portsFluid ports

Contents

NameDescription
MediumMedium in the component

Revisions

  • May 21, 2026, by Michael Wetter:
    Removed deprecated cardinality function.
    Removed protected parameter flowDirection as it was set to Birectional and had no effect on the model.
    This is for Buildings, #4607.
  • June 18, 2024, by Michael Wetter:
    Added start and nominal attributes to avoid warnings in OpenModelica due to conflicting values.
    This is for IBPSA, #1890.
  • April 1, 2021, by Michael Wetter:
    Corrected misplaced each and 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.