Buildings.Templates.Plants.HeatPumps.Components.HeatPumpGroups
Models for heat pump groups
Information
This package contains models of heat pump groups.
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Package Content
| Name | Description |
|---|---|
| Air-to-water heat pump group |
Buildings.Templates.Plants.HeatPumps.Components.HeatPumpGroups.AirToWater
Air-to-water heat pump group
Information
This model represents a group of heat pumps.
Extends from Buildings.Templates.Plants.HeatPumps.Components.Interfaces.PartialHeatPumpGroup (Interface for heat pump group).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| replaceable package MediumHeaWat | Water | HW medium | |
| replaceable package MediumChiWat | MediumHeaWat | CHW medium | |
| replaceable package MediumSou | Water | Source-side medium | |
| replaceable package MediumAir | Air | Air medium | |
| HeatPumpGroup | dat | Design and operating parameters | |
| Configuration | |||
| Boolean | have_hp | true | Set to true for plants with non-reversible or reversible heat pumps |
| Boolean | have_php | false | Set to true for plants with polyvalent heat pumps |
| Integer | nHp | Number of heat pumps (excluding polyvalent units) | |
| Integer | nPhp | 0 | Number of polyvalent heat pumps |
| HeatPump | typHp | Buildings.Templates.Componen... | Equipment type |
| Boolean | is_rev | Set to true for reversible heat pumps, false for heating only | |
| Dynamics | |||
| Conservation equations | |||
| Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
| Assumptions | |||
| Boolean | allowFlowReversal | true | Load side flow reversal: false to simplify equations, assuming, but not enforcing, no flow reversal |
| Boolean | allowFlowReversalSou | true | Source side flow reversal: false to simplify equations, assuming, but not enforcing, no flow reversal |
| Boolean | have_dpChiHeaWat | true | Set to true for CHW/HW pressure drop computed by this model, false for external computation |
| Boolean | have_dpSou | true | Set to true for source fluid pressure drop computed by this model, false for external computation |
| Advanced | |||
| String | idEqu[nHp + nPhp] | nHp then "HR-" + String(i - nHp) else "HP-" + String(i) for i in 1:nHp + nPhp}">(if typHp == Buildings.Templ... | Equipment identifier |
| Diagnostics | |||
| Boolean | show_T | false | = true, if actual temperature at port is computed |
Connectors
| Type | Name | Description |
|---|---|---|
| replaceable package MediumSou | Source-side medium | |
| FluidPorts_b | ports_bChiHeaWatHp[nHp] | CHW/HW supply – Heat pumps |
| FluidPorts_a | ports_aChiHeaWatHp[nHp] | CHW/HW return – Heat pumps |
| FluidPorts_b | ports_bSou[nHp + nPhp] | Source fluid return (from heat pumps) |
| FluidPorts_a | ports_aSou[nHp + nPhp] | Source fluid supply (to heat pumps) |
| FluidPorts_b | ports_bHeaWatPhp[nPhp] | HW supply – Polyvalent heat pumps |
| FluidPorts_b | ports_bChiWatPhp[nPhp] | CHW supply – Polyvalent heat pumps |
| FluidPorts_a | ports_aHeaWatPhp[nPhp] | HW return – Polyvalent heat pumps |
| FluidPorts_a | ports_aChiWatPhp[nPhp] | CHW return – Polyvalent heat pumps |
| Bus | bus | Plant control bus |
| Bus | busWea | Weather bus |
Modelica definition
model AirToWater
"Air-to-water heat pump group"
extends Buildings.Templates.Plants.HeatPumps.Components.Interfaces.PartialHeatPumpGroup(
redeclare final package MediumSou=MediumAir,
final typHp=Buildings.Templates.Components.Types.HeatPump.AirToWater);
Buildings.Templates.Components.HeatPumps.AirToWater hp[nHp](
each final show_T=show_T,
redeclare each final package MediumHeaWat=MediumHeaWat,
redeclare each final package MediumChiWat=MediumChiWat,
redeclare each final package MediumAir=MediumAir,
each final typMod=if is_rev
then Buildings.Templates.Components.Types.HeatPumpCapability.Reversible
else Buildings.Templates.Components.Types.HeatPumpCapability.HeatingOnly,
final dat=datHp,
each final allowFlowReversal=allowFlowReversal,
each final energyDynamics=energyDynamics,
each final have_dpChiHeaWat=have_dpChiHeaWat,
each final have_dpSou=have_dpSou)
if have_hp
"Heat pumps";
Buildings.Templates.Components.HeatPumps.AirToWater php[nPhp](
each final show_T=show_T,
redeclare each final package MediumHeaWat = MediumHeaWat,
redeclare each final package MediumChiWat = MediumChiWat,
redeclare each final package MediumAir = MediumAir,
each final typMod=Buildings.Templates.Components.Types.HeatPumpCapability.Polyvalent,
final dat=datPhp,
each final allowFlowReversal=allowFlowReversal,
each final energyDynamics=energyDynamics,
each final have_dpChiHeaWat=have_dpChiHeaWat,
each final have_dpSou=have_dpSou) if have_php "Polyvalent heat pumps";
equation
for i in 1:nHp loop
connect(busWea, hp[i].busWea);
connect(ports_aSou[i], hp[i].port_aSou);
connect(ports_bSou[i], hp[i].port_bSou);
end for;
for i in 1:nPhp loop
connect(busWea, php[i].busWea);
connect(ports_aSou[nHp + i], php[i].port_aSou);
connect(ports_bSou[nHp + i], php[i].port_bSou);
end for;
connect(ports_aHeaWatPhp,php.port_a);
connect(ports_bChiWatPhp,php.port_bChiWat);
connect(ports_aChiWatPhp,php.port_aChiWat);
connect(busPhp,php.bus);
connect(busHp, hp.bus);
connect(ports_aChiHeaWatHp, hp.port_a);
connect(hp.port_b, ports_bChiHeaWatHp);
connect(php.port_b, ports_bHeaWatPhp);
end AirToWater;