Buildings.Experimental.DHC.Loads.Heating.BaseClasses
Package with base classes that are used by multiple models
Information
This package contains base classes that are used to construct the classes in Buildings.Experimental.DHC.Loads.Cooling.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
PartialBuildingWithETS | Partial model with ETS model for heating and partial building model |
Buildings.Experimental.DHC.Loads.Heating.BaseClasses.PartialBuildingWithETS
Partial model with ETS model for heating and partial building model
Information
This model is composed of a direct controlled energy transfer station model for cooling Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Direct connected to a repleacable building load model.
Extends from Buildings.Experimental.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS (Partial model of a building with an energy transfer station).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumSer | Water | Service side medium | |
replaceable package MediumSerHea_a | Water | Service side medium at heating inlet | |
replaceable package MediumBui | Water | Building side medium | |
PartialBuilding | bui | redeclare Buildings.Experime... | Building model |
PressureDifference | dpSup | 5000 | Pressure drop in the ETS supply side [Pa] |
PressureDifference | dpRet | 5000 | Pressure drop in the ETS return side [Pa] |
Configuration | |||
Integer | nPorts_heaWat | 1 | Number of heating water fluid ports |
Integer | nPorts_chiWat | 0 | Number of chilled water fluid ports |
Scaling | |||
Real | facMul | 1 | Multiplier factor |
Nominal condition | |||
MassFlowRate | mBui_flow_nominal | Nominal mass flow rate [kg/s] | |
PID controller | |||
SimpleController | controllerType | Modelica.Blocks.Types.Simple... | Type of controller |
Real | k | 0.1 | Gain of controller [1] |
Time | Ti | 60 | Time constant of integrator block [s] |
Time | Td | 0.1 | Time constant of derivative block [s] |
Real | yMax | 1 | Upper limit of output |
Real | yMin | 0 | Lower limit of output |
Assumptions | |||
Boolean | allowFlowReversalSer | false | Set to true to allow flow reversal on service side |
Boolean | allowFlowReversalBui | false | Set to true to allow flow reversal on building side |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_aSerAmb | Fluid connector for ambient water service supply line |
FluidPort_b | port_bSerAmb | Fluid connector for ambient water service return line |
FluidPort_a | port_aSerHea | Fluid connector for heating service supply line |
FluidPort_b | port_bSerHea | Fluid connector for heating service return line |
FluidPort_a | port_aSerCoo | Fluid connector for cooling service supply line |
FluidPort_b | port_bSerCoo | Fluid connector for cooling service return line |
Bus | weaBus | Weather data bus |
output RealOutput | QHea_flow | Total heating heat flow rate transferred to the loads (>=0) [W] |
output RealOutput | QCoo_flow | Total cooling heat flow rate transferred to the loads (<=0) [W] |
output RealOutput | PHea | Power drawn by heating system [W] |
output RealOutput | PCoo | Power drawn by cooling system [W] |
output RealOutput | PFan | Power drawn by fan motors [W] |
output RealOutput | PPum | Power drawn by pump motors [W] |
output RealOutput | QFue_flow[nFue] | Fuel energy input rate [W] |
input RealInput | TSetDisRet | Setpoint for the maximum district return temperature [K] |
Modelica definition
model PartialBuildingWithETS
"Partial model with ETS model for heating and partial building model"
extends Buildings.Experimental.DHC.Loads.BaseClasses.PartialBuildingWithPartialETS
( nPorts_heaWat=1,
redeclare Buildings.Experimental.DHC.EnergyTransferStations.Heating.Direct
ets(
final mBui_flow_nominal=mBui_flow_nominal,
final controllerType=controllerType,
final k=k,
final Ti=Ti,
final Td=Td,
final yMax=yMax,
final yMin=yMin));
parameter Modelica.Units.SI.MassFlowRate mBui_flow_nominal(
final min=0,
final start=0.5)
"Nominal mass flow rate";
parameter Modelica.Units.SI.PressureDifference dpSup(
final min=0,
displayUnit="Pa")=5000
"Pressure drop in the ETS supply side";
parameter Modelica.Units.SI.PressureDifference dpRet(
final min=0,
displayUnit="Pa")=5000
"Pressure drop in the ETS return side";
// Controller parameters
parameter Modelica.Blocks.Types.SimpleController controllerType=Modelica.Blocks.Types.SimpleController.PI
"Type of controller";
parameter Real k(
final min=0,
final unit="1")=0.1
"Gain of controller";
parameter Modelica.Units.SI.Time Ti(
final min=Modelica.Constants.small)=60
"Time constant of integrator block";
parameter Modelica.Units.SI.Time Td(
final min=0)=0.1
"Time constant of derivative block";
parameter Real yMax(
final start=1)=1
"Upper limit of output";
parameter Real yMin=0
"Lower limit of output";
Modelica.Blocks.Interfaces.RealInput TSetDisRet(
final unit="K",
displayUnit="degC")
"Setpoint for the maximum district return temperature";
equation
connect(TSetDisRet, ets.TSetDisRet);
end PartialBuildingWithETS;