-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further update the test hall models, #79
- Loading branch information
1 parent
ae1e4b3
commit 9097876
Showing
23 changed files
with
557 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
260 changes: 150 additions & 110 deletions
260
pyDMPC/ModelicaModels/ModelicaModels/ControlledSystems/TestHall.mo
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
pyDMPC/ModelicaModels/ModelicaModels/ControlledSystems/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ControlledSystemBoundaries | ||
AHU | ||
TestHall |
18 changes: 0 additions & 18 deletions
18
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/DetailedModels/Geo/Building.mo
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/DetailedModels/Geo/Field.mo
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
...licaModels/ModelicaModels/SubsystemModels/DetailedModels/Geo/GeoCommunicationBaseClass.mo
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/DetailedModels/Geo/package.order
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/TestHall/HallLong.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
within ModelicaModels.SubsystemModels.TestHall; | ||
model HallLong | ||
"Version of the hall model for long prediction horizons" | ||
|
||
extends ModelicaModels.Subsystems.TestHall.BaseClasses.HallConnected; | ||
|
||
Modelica.Blocks.Sources.CombiTimeTable weather( | ||
tableOnFile=true, | ||
extrapolation=Modelica.Blocks.Types.Extrapolation.HoldLastPoint, | ||
columns={2}, | ||
tableName="InputTable", | ||
fileName="weather.mat", | ||
smoothness=Modelica.Blocks.Types.Smoothness.LinearSegments) | ||
"Table with weather forecast" annotation (Placement(transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=0, | ||
origin={-10,50}))); | ||
Modelica.Blocks.Sources.CombiTimeTable decisionVariables( | ||
tableOnFile=true, | ||
extrapolation=Modelica.Blocks.Types.Extrapolation.HoldLastPoint, | ||
tableName="tab1", | ||
smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments, | ||
columns={2}, | ||
fileName="decisionVariables.mat") | ||
"Table with decision variables" annotation (Placement( | ||
transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=0, | ||
origin={30,50}))); | ||
Modelica.Blocks.Sources.Constant AirVolumeFlow(k=8000) | ||
"Air volume flow rate, could be an initial value" | ||
annotation (Placement(transformation(extent={{-100,80},{-80,100}}))); | ||
Modelica.Blocks.Math.Gain V2m(k=1.2/3600) "Volume to mass flow" | ||
annotation (Placement(transformation(extent={{-62,84},{-50,96}}))); | ||
Modelica.Blocks.Sources.Constant Tnormal(k=273 + 22) | ||
"Average Temperature of supply air or forecast" | ||
annotation (Placement(transformation(extent={{-100,40},{-80,60}}))); | ||
Modelica.Blocks.Sources.RealExpression realExpression(y=35 - | ||
decisionVariables.y[1]) | ||
annotation (Placement(transformation(extent={{-66,-44},{-10,-26}}))); | ||
Modelica.Blocks.Interfaces.RealOutput hallTemperature | ||
"Absolute temperature as output signal" | ||
annotation (Placement(transformation(extent={{90,50},{110,70}}))); | ||
equation | ||
connect(AirVolumeFlow.y,V2m. u) annotation (Line(points={{-79,90},{-63.2,90}}, | ||
color={0,0,127})); | ||
connect(realExpression.y, hallBaseClass.CCA_SEN_T__WS_SUP__AI_U_C) | ||
annotation (Line(points={{-7.2,-35},{0,-35},{0,-14},{20,-14}}, color={0,0, | ||
127})); | ||
connect(V2m.y, fluidSource.dotm) annotation (Line(points={{-49.4,90},{-40,90}, | ||
{-40,3.34},{-18.2,3.34}}, color={0,0,127})); | ||
connect(Tnormal.y, fluidSource.T_fluid) annotation (Line(points={{-79,50},{ | ||
-60,50},{-60,-2.78},{-18.2,-2.78}}, color={0,0,127})); | ||
connect(weather.y[1], hallBaseClass.AIR_AHU_SEN_T_AIR_ODA__AI_U__C) | ||
annotation (Line(points={{1,50},{8,50},{8,10},{20,10}}, color={0,0,127})); | ||
connect(hallBaseClass.hallTemperature, hallTemperature) annotation (Line( | ||
points={{60,14},{80,14},{80,60},{100,60}}, color={0,0,127})); | ||
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( | ||
coordinateSystem(preserveAspectRatio=false))); | ||
end HallLong; |
71 changes: 71 additions & 0 deletions
71
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/TestHall/HallShort.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
within ModelicaModels.SubsystemModels.TestHall; | ||
model HallShort "Version of the hall model for short prediction horizons" | ||
|
||
extends ModelicaModels.Subsystems.TestHall.BaseClasses.HallConnected; | ||
|
||
Modelica.Blocks.Sources.CombiTimeTable weather( | ||
tableOnFile=true, | ||
extrapolation=Modelica.Blocks.Types.Extrapolation.HoldLastPoint, | ||
columns={2}, | ||
tableName="InputTable", | ||
fileName="weather.mat", | ||
smoothness=Modelica.Blocks.Types.Smoothness.LinearSegments) | ||
"Table with weather forecast" annotation (Placement(transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=0, | ||
origin={-10,50}))); | ||
Modelica.Blocks.Sources.CombiTimeTable decisionVariables( | ||
tableOnFile=true, | ||
extrapolation=Modelica.Blocks.Types.Extrapolation.HoldLastPoint, | ||
tableName="tab1", | ||
smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments, | ||
columns={2}, | ||
fileName="decisionVariables.mat") | ||
"Table with decision variables" annotation (Placement( | ||
transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=0, | ||
origin={30,50}))); | ||
Modelica.Blocks.Sources.Constant AirVolumeFlow(k=8000) | ||
"Air volume flow rate, could be an initial value" | ||
annotation (Placement(transformation(extent={{-100,80},{-80,100}}))); | ||
Modelica.Blocks.Math.Gain V2m(k=1.2/3600) "Volume to mass flow" | ||
annotation (Placement(transformation(extent={{-62,84},{-50,96}}))); | ||
Modelica.Blocks.Interfaces.RealOutput hallTemperature | ||
"Absolute temperature as output signal" | ||
annotation (Placement(transformation(extent={{90,50},{110,70}}))); | ||
Modelica.Blocks.Sources.CombiTimeTable variation( | ||
tableOnFile=true, | ||
extrapolation=Modelica.Blocks.Types.Extrapolation.HoldLastPoint, | ||
tableName="tab1", | ||
columns=2:3, | ||
fileName="variation.mat") "Table with control input" | ||
annotation ( | ||
Placement(transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=0, | ||
origin={-90,48}))); | ||
Modelica.Thermal.HeatTransfer.Celsius.ToKelvin hallTemperature1 | ||
annotation (Placement(transformation(extent={{-70,42},{-58,54}}))); | ||
Modelica.Blocks.Sources.Constant currentWaterTemperature(k=22) | ||
"Can be an iniitial value" | ||
annotation (Placement(transformation(extent={{-40,-40},{-20,-20}}))); | ||
equation | ||
connect(AirVolumeFlow.y,V2m. u) annotation (Line(points={{-79,90},{-63.2,90}}, | ||
color={0,0,127})); | ||
connect(V2m.y, fluidSource.dotm) annotation (Line(points={{-49.4,90},{-40,90}, | ||
{-40,3.34},{-18.2,3.34}}, color={0,0,127})); | ||
connect(weather.y[1], hallBaseClass.AIR_AHU_SEN_T_AIR_ODA__AI_U__C) | ||
annotation (Line(points={{1,50},{8,50},{8,10},{20,10}}, color={0,0,127})); | ||
connect(hallBaseClass.hallTemperature, hallTemperature) annotation (Line( | ||
points={{60,14},{80,14},{80,60},{100,60}}, color={0,0,127})); | ||
connect(currentWaterTemperature.y, hallBaseClass.CCA_SEN_T__WS_SUP__AI_U_C) | ||
annotation (Line(points={{-19,-30},{0,-30},{0,-14},{20,-14}}, color={0,0, | ||
127})); | ||
connect(fluidSource.T_fluid, hallTemperature1.Kelvin) annotation (Line(points= | ||
{{-18.2,-2.78},{-46,-2.78},{-46,48},{-57.4,48}}, color={0,0,127})); | ||
connect(variation.y[1], hallTemperature1.Celsius) | ||
annotation (Line(points={{-79,48},{-71.2,48}}, color={0,0,127})); | ||
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( | ||
coordinateSystem(preserveAspectRatio=false))); | ||
end HallShort; |
3 changes: 3 additions & 0 deletions
3
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/TestHall/package.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
within ModelicaModels.SubsystemModels; | ||
package TestHall "Models for the test hall case study" | ||
end TestHall; |
2 changes: 2 additions & 0 deletions
2
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/TestHall/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
HallLong | ||
HallShort |
1 change: 1 addition & 0 deletions
1
pyDMPC/ModelicaModels/ModelicaModels/SubsystemModels/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
BaseClasses | ||
DetailedModels | ||
TestHall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
pyDMPC/ModelicaModels/ModelicaModels/Subsystems/TestHall/BaseClasses/HallConnected.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
within ModelicaModels.Subsystems.TestHall.BaseClasses; | ||
model HallConnected "A model of the hall with fluid source and sink" | ||
|
||
parameter AixLib.FastHVAC.Media.BaseClasses.MediumSimple medium=ModelicaModels.Subsystems.TestHall.BaseClasses.SimpleAir(); | ||
|
||
HallBaseClass hallBaseClass(medium=medium) | ||
annotation (Placement(transformation(extent={{20,-20},{60,20}}))); | ||
AixLib.FastHVAC.Components.Pumps.FluidSource | ||
fluidSource(medium=medium) | ||
annotation (Placement(transformation(extent={{-20,10},{-2,-8}}))); | ||
AixLib.FastHVAC.Components.Sinks.Vessel vessel | ||
annotation (Placement(transformation(extent={{80,-10},{100,10}}))); | ||
equation | ||
connect(fluidSource.enthalpyPort_b, hallBaseClass.enthalpyPort_a) annotation ( | ||
Line(points={{-2,0.1},{14,0.1},{14,0},{20,0}}, color={176,0,0})); | ||
connect(hallBaseClass.enthalpyPort_b, vessel.enthalpyPort_a) | ||
annotation (Line(points={{60,0},{83,0}}, color={176,0,0})); | ||
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( | ||
coordinateSystem(preserveAspectRatio=false))); | ||
end HallConnected; |
1 change: 1 addition & 0 deletions
1
pyDMPC/ModelicaModels/ModelicaModels/Subsystems/TestHall/BaseClasses/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
HallBaseClass | ||
HallCalibrationBaseClass | ||
SimpleAir | ||
HallConnected |
Oops, something went wrong.