Buildings.DHC.Networks.Controls.Examples
District controller example models
Information
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
AgentPump1PipeExample | |
MainPump1PipeExample |
Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample
Information
This model is used to test the controller Buildings.DHC.Networks.Controls.AgentPump. For a practical application of the model check Buildings.DHC.Examples.Combined.SeriesVariableFlowUpdate.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSou | 283.15 | Agent source temperature [K] |
Modelica definition
model AgentPump1PipeExample
extends Modelica.Icons.Example;
parameter Modelica.Units.SI.Temperature TSou(displayUnit="degC") = 283.15
"Agent source temperature";
Modelica.Blocks.Sources.CombiTimeTable TSouIn(
table=[0,TSou; 900,TSou + 3; 2700, TSou - 3; 3600,TSou],
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
Buildings.DHC.Networks.Controls.AgentPump1Pipe AgentPump(
yPumMin=0,
dToff=0.5,
k=1,
Ti=600);
Buildings.Controls.OBC.CDL.Reals.Sources.Constant con2(k=TSou);
Modelica.Blocks.Sources.CombiTimeTable TSouOut(
table=[0,TSou; 900,TSou + 1; 2700, TSou - 1; 3600,TSou],
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TsupDis(k=TSou);
Modelica.Blocks.Sources.CombiTimeTable TretDis(
table=[0,TSou; 1800,TSou + 1; 1800,TSou - 1; 3600,TSou],
smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments,
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
equation
connect(con2.y, AgentPump.TSou);
connect(TSouOut.y[1], AgentPump.TSouOut);
connect(TSouIn.y[1], AgentPump.TSouIn);
connect(TretDis.y[1],AgentPump.TRetDis);
connect(TsupDis.y,AgentPump.TSupDis);
end AgentPump1PipeExample;
Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample
Information
This model is used to test the controller Buildings.DHC.Networks.Controls.MainPump1Pipe.For a practical application of the model check Buildings.DHC.Examples.Combined.SeriesVariableFlow.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSou | 284.65 | Agent source temperature [K] |
Modelica definition
model MainPump1PipeExample
extends Modelica.Icons.Example;
parameter Modelica.Units.SI.Temperature TSou(displayUnit="degC") = 284.65
"Agent source temperature";
Modelica.Blocks.Sources.CombiTimeTable TMixandTSouIn(
table=[0,TSou; 900,TSou + 6.5; 2700,TSou - 6.5; 3600,TSou],
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
Modelica.Blocks.Sources.CombiTimeTable TSouOut(
table=[0,TSou; 900,TSou + 4; 2700,TSou - 4; 3600,TSou],
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
Buildings.DHC.Networks.Controls.MainPump1Pipe conPum(
nMix=1,
nSou=1,
nBui=1,
TMax=289.15);
Modelica.Blocks.Sources.CombiTimeTable QCoo_flow(
table=[0,-500; 1800,-500; 1800,0; 3600,0],
smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments,
extrapolation=Modelica.Blocks.Types.Extrapolation.Periodic);
equation
connect(TSouOut.y, conPum.TSouOut);
connect(TMixandTSouIn.y, conPum.TSouIn);
connect(QCoo_flow.y, conPum.QCoo_flow);
connect(TMixandTSouIn.y, conPum.TMix);
end MainPump1PipeExample;