modelPartialPlant

Partial class for modeling a plant

Information

Partial class to be used for modeling a plant.

The connectors to the service lines are configured based on an enumeration defining the type of district system, see Buildings.DHC.Types.DistrictSystemType. In case of a heating service line, the model allows for using two different media at the supply port port_bSerHea and at the return port_aSerHea to represent a steam supply and condensate return.

Parameters

TypeNameDefaultDescription
Booleanhave_fuenFue > 0Set to true if the plant has fuel use
Buildings.Fluid.Data.Fuels.Generic[nFue]fueFuel type
Configuration
Buildings.DHC.Types.DistrictSystemTypetypBuildings.DHC.Types.DistrictSystemType.CombinedGeneration2to4Type of district system
Booleanhave_fanfalseSet to true if fan power is computed
Booleanhave_pumfalseSet to true if pump power is computed
Booleanhave_eleHeafalseSet to true if the plant has electric heating system
IntegernFue0Number of fuel types (0 means no combustion system)
Booleanhave_eleCoofalseSet to true if the plant has electric cooling system
Booleanhave_weaBusfalseSet to true to use a weather bus
Assumptions
BooleanallowFlowReversalfalseSet to true to allow flow reversal in service lines

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_aSerAmbFluid connector for ambient water service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerAmbFluid connector for ambient water service return line
Modelica.Fluid.Interfaces.FluidPort_aport_aSerHeaFluid connector for heating service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerHeaFluid connector for heating service return line
Modelica.Fluid.Interfaces.FluidPort_aport_aSerCooFluid connector for cooling service supply line
Modelica.Fluid.Interfaces.FluidPort_bport_bSerCooFluid connector for cooling service return line
Buildings.BoundaryConditions.WeatherData.BusweaBusWeather data bus
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPHeaPower drawn by heating system
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPCooPower drawn by cooling system
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPFanPower drawn by fan motors
Buildings.Controls.OBC.CDL.Interfaces.RealOutputPPumPower drawn by pump motors
Buildings.Controls.OBC.CDL.Interfaces.RealOutputQFue_flowFuel energy input rate

Contents

NameDescription
Medium
MediumHea_b

Revisions

  • June 20, 2024, by Michael Wetter:
    Corrected annotation.
    This is for issue 3900.
  • September 20, 2021, by Mingzhe Liu:
    Refactored if statement to correctly enable and disable the fluid connector under different system types.
  • December 21, 2020, by Antoine Gautier:
    First implementation.