This package contains example models
Information
This package contains an example illustrating the use of the model in
Buildings.DHC.Loads.Combined.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name |
Description |
BuildingTimeSeriesWithETS
|
Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water |
BuildingTimeSeriesWithETSDHWTank
|
Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water |
Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump domestic hot water
Information
Example model of a building in an ambient district network with loads
provided as time series and heat pump heating, free cooling,
and heat pump domestic hot water. It uses
Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETS
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model BuildingTimeSeriesWithETS
extends Modelica.Icons.Example;
package Medium=
Buildings.Media.Water
;
Buildings.Fluid.Sources.Boundary_pT supAmbWat(
redeclare package Medium = Medium,
p(displayUnit="bar"),
use_T_in=true,
T=280.15,
nPorts=1) ;
Buildings.Fluid.Sources.Boundary_pT sinAmbWat(
redeclare package Medium = Medium,
p(displayUnit="bar"),
nPorts=1) ;
Buildings.Fluid.Sensors.MassFlowRate senMasFlo(
redeclare package Medium = Medium)
;
Modelica.Blocks.Sources.Constant TDisSup(k(
unit="K",
displayUnit="degC") = 288.15)
;
Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETS bui(
redeclare package MediumSer = Medium,
redeclare package MediumBui = Medium,
bui(facMul=10),
allowFlowReversalSer=true,
THotWatSup_nominal=322.15,
filNam="modelica://Buildings/Resources/Data/DHC/Loads/Examples/SwissOffice_20190916.mos");
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TColWat(k=bui.ets.TColWat_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THotWatSupSet(k=bui.ets.THotWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TChiWatSupSet(k=bui.TChiWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMaxSet(k=bui.THeaWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMinSet(
k(
final unit="K",
displayUnit="degC") = 301.15)
;
equation
connect(supAmbWat.ports[1], senMasFlo.port_a);
connect(TDisSup.y,supAmbWat. T_in);
connect(senMasFlo.port_b, bui.port_aSerAmb);
connect(sinAmbWat.ports[1], bui.port_bSerAmb);
connect(THeaWatSupMinSet.y, bui.THeaWatSupMinSet);
connect(THeaWatSupMaxSet.y, bui.THeaWatSupMaxSet);
connect(TChiWatSupSet.y, bui.TChiWatSupSet);
connect(THotWatSupSet.y, bui.THotWatSupSet);
connect(TColWat.y, bui.TColWat);
end BuildingTimeSeriesWithETS;
Example model of a building in an ambient district network with loads provided as time series and heat pump heating, free cooling, and heat pump with storage tank domestic hot water
Information
Example model of a building in an ambient district network with loads
provided as time series and heat pump heating, free cooling, and heat pump
with storage tank domestic hot water
Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETSWithDHWTank
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Modelica definition
model BuildingTimeSeriesWithETSDHWTank
extends Modelica.Icons.Example;
package Medium=
Buildings.Media.Water
;
Buildings.Fluid.Sources.Boundary_pT supAmbWat(
redeclare package Medium = Medium,
p(displayUnit="bar"),
use_T_in=true,
T=280.15,
nPorts=1) ;
Buildings.Fluid.Sources.Boundary_pT sinAmbWat(
redeclare package Medium = Medium,
p(displayUnit="bar"),
nPorts=1) ;
Buildings.Fluid.Sensors.MassFlowRate senMasFlo(
redeclare package Medium = Medium)
;
Modelica.Blocks.Sources.Constant TDisSup(k(
unit="K",
displayUnit="degC") = 288.15)
;
Buildings.DHC.Loads.Combined.BuildingTimeSeriesWithETSWithDHWTank bui(
redeclare package MediumSer = Medium,
redeclare package MediumBui = Medium,
bui(facMul=10),
allowFlowReversalSer=true,
THotWatSup_nominal=313.15,
filNam=
"modelica://Buildings/Resources/Data/DHC/Loads/Examples/SwissOffice_20190916.mos",
datWatHea=datWatHea) ;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TColWat(k=bui.ets.TColWat_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THotWatSupSet(k=bui.THotWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TChiWatSupSet(k=bui.TChiWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMaxSet(k=bui.THeaWatSup_nominal)
;
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THeaWatSupMinSet(k=28 + 273.15)
;
parameter Buildings.DHC.Loads.HotWater.Data.GenericDomesticHotWaterWithHeatExchanger
datWatHea(VTan=0.3,
mDom_flow_nominal=0.03,
TDom_nominal=318.15)
;
equation
connect(supAmbWat.ports[1], senMasFlo.port_a);
connect(TDisSup.y,supAmbWat. T_in);
connect(senMasFlo.port_b, bui.port_aSerAmb);
connect(sinAmbWat.ports[1], bui.port_bSerAmb);
connect(THeaWatSupMinSet.y, bui.THeaWatSupMinSet);
connect(THeaWatSupMaxSet.y, bui.THeaWatSupMaxSet);
connect(TChiWatSupSet.y, bui.TChiWatSupSet);
connect(THotWatSupSet.y, bui.THotWatSupSet);
connect(TColWat.y, bui.TColWat);
end BuildingTimeSeriesWithETSDHWTank;