modelPartialBuilding

Partial class for building model

Information

Partial model to be used for modeling the thermal loads on an energy transfer station or a dedicated plant. Models extending this class are typically used in conjunction with Buildings.DHC.Loads.BaseClasses.FlowDistribution and models extending Buildings.DHC.Loads.BaseClasses.PartialTerminalUnit as described in the schematics here under. The fluid ports represent the connection between the production system and the building distribution system.

Scaling

Scaling is implemented by means of a multiplier factor facMul. Each extensive quantity (mass and heat flow rate, electric power) flowing out through fluid ports, or connected to an output connector is multiplied by facMul. Each extensive quantity (mass and heat flow rate, electric power) flowing in through fluid ports, or connected to an input connector is multiplied by 1/facMul. This allows modeling, with a single instance, multiple identical buildings served by the same energy transfer station.

Examples

See various use cases in Buildings.DHC.Loads.BaseClasses.Examples.


image

Parameters

TypeNameDefaultDescription
IntegernPorts_aHeaWat0Number of heating water inlet ports
IntegernPorts_bHeaWat0Number of heating water outlet ports
IntegernPorts_aChiWat0Number of chilled water inlet ports
IntegernPorts_bChiWat0Number of chilled water outlet ports
Configuration
Booleanhave_heaWatfalseSet to true if the building has heating water system
Booleanhave_chiWatfalseSet to true if the building has chilled water system
Booleanhave_eleHeafalseSet to true if the building has decentralized electric heating system
Booleanhave_eleCoofalseSet to true if the building has decentralized electric cooling system
Booleanhave_fanfalseSet to true if fan power is computed
Booleanhave_pumfalseSet to true if pump power is computed
Booleanhave_weaBusfalseSet to true to use a weather bus
Booleanhave_heaLoahave_heaWat or have_eleHeaSet to true if the building has heating loads
Booleanhave_cooLoahave_chiWat or have_eleCooSet to true if the building has cooling loads
Scaling
RealfacMul1Multiplier factor
Assumptions
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)

Connectors

TypeNameDefaultDescription
Buildings.BoundaryConditions.WeatherData.BusweaBusWeather data bus
Modelica.Fluid.Interfaces.FluidPorts_a[nPorts_aHeaWat]ports_aHeaWatHeating water inlet ports
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts_bHeaWat]ports_bHeaWatHeating water outlet ports
Modelica.Fluid.Interfaces.FluidPorts_a[nPorts_aChiWat]ports_aChiWatChilled water inlet ports
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts_bChiWat]ports_bChiWatChilled water outlet ports
Modelica.Blocks.Interfaces.RealOutputQHea_flowTotal heating heat flow rate transferred to the loads (>=0)
Modelica.Blocks.Interfaces.RealOutputQCoo_flowTotal cooling heat flow rate transferred to the loads (<=0)
Modelica.Blocks.Interfaces.RealOutputPHeaPower drawn by decentralized heating system
Modelica.Blocks.Interfaces.RealOutputPCooPower drawn by decentralized cooling system
Modelica.Blocks.Interfaces.RealOutputPFanPower drawn by fan motors
Modelica.Blocks.Interfaces.RealOutputPPumPower drawn by pump motors

Components

TypeNameDefaultDescription
Fluid.BaseClasses.MassFlowRateMultiplier[nPorts_aHeaWat]mulHeaWatInlMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultiplier[nPorts_aChiWat]mulChiWatInlMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultiplier[nPorts_bHeaWat]mulHeaWatOutMass flow rate multiplier
Fluid.BaseClasses.MassFlowRateMultiplier[nPorts_bChiWat]mulChiWatOutMass flow rate multiplier
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulQHea_flowScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulQCoo_flowScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPHeaScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPCooScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPFanScaling
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametermulPPumScaling

Contents

NameDescription
Medium

Revisions

  • December 21, 2020, by Antoine Gautier:
    Added multiplier factor.
    This is for issue 2291.
  • February 21, 2020, by Antoine Gautier:
    First implementation.