diff --git a/tests/data/buildings_free_float_single_zone.mo b/tests/data/buildings_free_float_single_zone.mo
index 6908265..60a84dc 100644
--- a/tests/data/buildings_free_float_single_zone.mo
+++ b/tests/data/buildings_free_float_single_zone.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -436,7 +436,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2153,11 +2153,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2192,11 +2192,11 @@ package MediumW = Buildings.Media.Water "Medium model";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2225,9 +2225,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_single_zone.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2242,7 +2242,7 @@ package MediumW = Buildings.Media.Water "Medium model";
buildings_free_float_single_zone.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -5.256918515349156, 174.6859463033137 },
+ Placement(transformation(origin = { 182.21324562383674, 40.44480545728656 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2258,21 +2258,21 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -27.628459257674578, 0.0 } ,{ -27.628459257674578, 174.6859463033137 } ,{ -5.256918515349156, 174.6859463033137 } },
+points={{ -50.0, 0.0 } ,{ 66.10662281191837, 0.0 } ,{ 66.10662281191837, 40.44480545728656 } ,{ 182.21324562383674, 40.44480545728656 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -2.628459257674578, 0.0 } ,{ -2.628459257674578, 174.6859463033137 } ,{ -5.256918515349156, 174.6859463033137 } },
+points={{ 0.0, 0.0 } ,{ 91.10662281191837, 0.0 } ,{ 91.10662281191837, 40.44480545728656 } ,{ 182.21324562383674, 40.44480545728656 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -2.628459257674578, 0.0 } ,{ -2.628459257674578, 174.6859463033137 } ,{ -5.256918515349156, 174.6859463033137 } },
+points={{ 0.0, 0.0 } ,{ 91.10662281191837, 0.0 } ,{ 91.10662281191837, 40.44480545728656 } ,{ 182.21324562383674, 40.44480545728656 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-249.6293977228463,-245.78740620304913},{242.89673693804014,250.0}})), Icon(
- coordinateSystem(extent={{-249.6293977228463,-245.78740620304913},{242.89673693804014,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-249.65839091628038,-227.4091936305794},{232.21324562383674,250.0}})), Icon(
+ coordinateSystem(extent={{-249.65839091628038,-227.4091936305794},{232.21324562383674,250.0}})));
annotation (
- Documentation(info="
SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_free_float_single_zone;
+end buildings_free_float_single_zone;
\ No newline at end of file
diff --git a/tests/data/buildings_free_float_single_zone_with_data.mo b/tests/data/buildings_free_float_single_zone_with_data.mo
index c7f86d5..f899d54 100644
--- a/tests/data/buildings_free_float_single_zone_with_data.mo
+++ b/tests/data/buildings_free_float_single_zone_with_data.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -443,7 +443,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2160,11 +2160,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2199,11 +2199,11 @@ package Medium = Buildings.Media.Air(extraPropertiesNames={"CO2"}) "Medium model
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2232,9 +2232,9 @@ package Medium = Buildings.Media.Air(extraPropertiesNames={"CO2"}) "Medium model
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_single_zone_with_data.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2249,7 +2249,7 @@ package Medium = Buildings.Media.Air(extraPropertiesNames={"CO2"}) "Medium model
buildings_free_float_single_zone_with_data.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 179.61576103852005, -107.42783544499112 },
+ Placement(transformation(origin = { -200.0, -1.4412649874116201 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2265,21 +2265,21 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 64.80788051926002, 0.0 } ,{ 64.80788051926002, -107.42783544499112 } ,{ 179.61576103852005, -107.42783544499112 } },
+points={{ -50.0, 0.0 } ,{ -125.0, 0.0 } ,{ -125.0, -1.4412649874116201 } ,{ -200.0, -1.4412649874116201 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 89.80788051926002, 0.0 } ,{ 89.80788051926002, -107.42783544499112 } ,{ 179.61576103852005, -107.42783544499112 } },
+points={{ 0.0, 0.0 } ,{ -100.0, 0.0 } ,{ -100.0, -1.4412649874116201 } ,{ -200.0, -1.4412649874116201 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 89.80788051926002, 0.0 } ,{ 89.80788051926002, -107.42783544499112 } ,{ 179.61576103852005, -107.42783544499112 } },
+points={{ 0.0, 0.0 } ,{ -100.0, 0.0 } ,{ -100.0, -1.4412649874116201 } ,{ -200.0, -1.4412649874116201 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-226.59037209826502,-181.7601518146015},{250.0,250.0}})), Icon(
- coordinateSystem(extent={{-226.59037209826502,-181.7601518146015},{250.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-233.40445631033964},{227.83129008055334,250.0}})), Icon(
+ coordinateSystem(extent={{-250.0,-233.40445631033964},{227.83129008055334,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_free_float_single_zone_with_data;
+end buildings_free_float_single_zone_with_data;
\ No newline at end of file
diff --git a/tests/data/buildings_free_float_three_zones.mo b/tests/data/buildings_free_float_three_zones.mo
index c8e2dcb..7b9a898 100644
--- a/tests/data/buildings_free_float_three_zones.mo
+++ b/tests/data/buildings_free_float_three_zones.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model OccupancyOccupancy_1
extends buildings_free_float_three_zones.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -421,7 +421,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model OccupancyOccupancy_2
extends buildings_free_float_three_zones.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -430,7 +430,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_3, occSch2.occupied);
end OccupancyOccupancy_2;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[3]
@@ -462,7 +462,7 @@ connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
connect(dataBus.ppmCO2Space_3, TRoo1[3].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2179,11 +2179,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2231,11 +2231,11 @@ package MediumW = Buildings.Media.Water "Medium model";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=2,
datConExt(
@@ -2268,20 +2268,20 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_three_zones.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2314,20 +2314,20 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_three_zones.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_3(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=2,
datConExt(
@@ -2360,9 +2360,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_three_zones.Common.Controls.ventilation.OccupancyOccupancy_2
- occupancy_2( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_2( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2404,7 +2404,7 @@ package MediumW = Buildings.Media.Water "Medium model";
buildings_free_float_three_zones.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -102.03708430702017, 176.6591251921885 },
+ Placement(transformation(origin = { -33.59512259423684, -190.40237686912033 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2468,45 +2468,45 @@ points={{ 500.0, 150.0 } ,{ 200.0, 150.0 } ,{ 200.0, 200.0 } ,{ -100.0,
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -76.01854215351008, 0.0 } ,{ -76.01854215351008, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ -50.0, 0.0 } ,{ -41.79756129711842, 0.0 } ,{ -41.79756129711842, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 48.98145784648992, 150.0 } ,{ 48.98145784648992, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 200.0, 150.0 } ,{ 83.20243870288158, 150.0 } ,{ 83.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 150.0 } ,{ 173.9814578464899, 150.0 } ,{ 173.98145784648995, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 450.0, 150.0 } ,{ 208.20243870288158, 150.0 } ,{ 208.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -51.01854215351008, 0.0 } ,{ -51.01854215351008, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 0.0, 0.0 } ,{ -16.79756129711842, 0.0 } ,{ -16.79756129711842, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -51.01854215351008, 0.0 } ,{ -51.01854215351008, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 0.0, 0.0 } ,{ -16.79756129711842, 0.0 } ,{ -16.79756129711842, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 73.98145784648992, 150.0 } ,{ 73.98145784648992, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 250.0, 150.0 } ,{ 108.20243870288158, 150.0 } ,{ 108.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 73.98145784648992, 150.0 } ,{ 73.98145784648992, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 250.0, 150.0 } ,{ 108.20243870288158, 150.0 } ,{ 108.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.heaPorAir,data_bus.port[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 198.9814578464899, 150.0 } ,{ 198.98145784648995, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 500.0, 150.0 } ,{ 233.20243870288158, 150.0 } ,{ 233.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.ports[1],data_bus.port_a[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 198.9814578464899, 150.0 } ,{ 198.98145784648995, 176.6591251921885 } ,{ -102.03708430702017, 176.6591251921885 } },
+points={{ 500.0, 150.0 } ,{ 233.20243870288158, 150.0 } ,{ 233.20243870288158, -190.40237686912033 } ,{ -33.59512259423684, -190.40237686912033 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-241.23363911137133,-241.89757461879515},{550.0,250.0}})), Icon(
- coordinateSystem(extent={{-241.23363911137133,-241.89757461879515},{550.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-249.5665530121633,-240.40237686912033},{550.0,250.0}})), Icon(
+ coordinateSystem(extent={{-249.5665530121633,-240.40237686912033},{550.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | win1_1 | 10.0 | 45.0 | wall | | Window | win2_1 | 10.0 | 90.0 | wall | | Window | floor_1 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 90.0 | wall | | ExternalWall | win1_2 | 10.0 | 0.0 | wall | | Window | win2_2 | 10.0 | 90.0 | wall | | Window | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_3 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_3 | 10.0 | 135.0 | wall | | ExternalWall | w2_3 | 10.0 | 0.0 | wall | | ExternalWall | w3_3 | 10.0 | 45.0 | wall | | ExternalWall | w4_3 | 10.0 | 45.0 | wall | | Window | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | win1_1 | 10.0 | 45.0 | wall | | win2_1 | 10.0 | 90.0 | wall | | floor_1 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_1_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 90.0 | wall | | win1_2 | 10.0 | 0.0 | wall | | win2_2 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_3 |
---|
parameters | |
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_3 | 10.0 | 135.0 | wall | | w2_3 | 10.0 | 0.0 | wall | | w3_3 | 10.0 | 45.0 | wall | | w4_3 | 10.0 | 45.0 | wall | | floor_3 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_free_float_three_zones;
+end buildings_free_float_three_zones;
\ No newline at end of file
diff --git a/tests/data/buildings_free_float_two_zones.mo b/tests/data/buildings_free_float_two_zones.mo
index a0c3eb5..b04f6c7 100644
--- a/tests/data/buildings_free_float_two_zones.mo
+++ b/tests/data/buildings_free_float_two_zones.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model OccupancyOccupancy_1
extends buildings_free_float_two_zones.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -421,7 +421,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[2]
@@ -449,7 +449,7 @@ connect(dataBus.TZonSpace_2, TRoo[2].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2166,11 +2166,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2218,11 +2218,11 @@ package MediumW = Buildings.Media.Water "Medium model";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2255,20 +2255,20 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_two_zones.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2292,9 +2292,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
buildings_free_float_two_zones.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2318,7 +2318,7 @@ package MediumW = Buildings.Media.Water "Medium model";
buildings_free_float_two_zones.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 178.48717751813723, 71.44390196119032 },
+ Placement(transformation(origin = { -18.8262513254061, 197.3857270372442 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2353,33 +2353,33 @@ points={{ 250.0, 150.0 } ,{ 75.0, 150.0 } ,{ 75.0, 200.0 } ,{ -100.0, 2
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 64.24358875906861, 0.0 } ,{ 64.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ -50.0, 0.0 } ,{ -34.41312566270305, 0.0 } ,{ -34.41312566270305, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 189.24358875906861, 150.0 } ,{ 189.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ 200.0, 150.0 } ,{ 90.58687433729695, 150.0 } ,{ 90.58687433729695, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 89.24358875906861, 0.0 } ,{ 89.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ 0.0, 0.0 } ,{ -9.41312566270305, 0.0 } ,{ -9.41312566270305, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 89.24358875906861, 0.0 } ,{ 89.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ 0.0, 0.0 } ,{ -9.41312566270305, 0.0 } ,{ -9.41312566270305, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 214.24358875906861, 150.0 } ,{ 214.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ 250.0, 150.0 } ,{ 115.58687433729696, 150.0 } ,{ 115.58687433729693, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 214.24358875906861, 150.0 } ,{ 214.24358875906861, 71.44390196119032 } ,{ 178.48717751813723, 71.44390196119032 } },
+points={{ 250.0, 150.0 } ,{ 115.58687433729696, 150.0 } ,{ 115.58687433729693, 197.3857270372442 } ,{ -18.8262513254061, 197.3857270372442 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-218.1440226373386,-248.50638131816442},{300.0,250.0}})), Icon(
- coordinateSystem(extent={{-218.1440226373386,-248.50638131816442},{300.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-229.6650150805502,-217.09144061652506},{300.0,250.0}})), Icon(
+ coordinateSystem(extent={{-229.6650150805502,-217.09144061652506},{300.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 90.0 | wall | | ExternalWall | floor_1 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 90.0 | wall | | floor_1 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_free_float_two_zones;
+end buildings_free_float_two_zones;
\ No newline at end of file
diff --git a/tests/data/buildings_simple_hydronic.mo b/tests/data/buildings_simple_hydronic.mo
index c5d83dc..44ec9a9 100644
--- a/tests/data/buildings_simple_hydronic.mo
+++ b/tests/data/buildings_simple_hydronic.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,19 +467,19 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model ThreeWayValveControlThree_way_valve_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -505,18 +505,18 @@ connect(dataBus.TAirOutBoiler, lesThrTOut.u);
connect(dataBus.yBoiConBoiler, booToReaBoi.y);
connect(dataBus.yPumBoiBoiler, booToReaPum.y);
end BoilerControlBoiler_control;
-
+
model CollectorControlPump_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=1)
@@ -560,12 +560,12 @@ port_a(redeclare package Medium
iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Controls.BaseClasses.DataBus dataBus
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_valve_control
- (y=298.15);
Modelica.Blocks.Sources.RealExpression
TColSetThree_way_valve_control
(y=363.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetEmission_valve_control
+ (y=298.15);
Modelica.Blocks.Sources.RealExpression
TAirOutBoiler_control
(y=0.0);
@@ -577,16 +577,16 @@ connect(port[1],TRoo[1]. port);
connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
-connect(dataBus.TCooSetSpace_1,
-TCooSetEmission_valve_control.y);
connect(dataBus.TColSetThree_way_valve_control,
TColSetThree_way_valve_control.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetEmission_valve_control.y);
connect(dataBus.TAirOutBoiler,
TAirOutBoiler_control.y);
connect(dataBus.triggerThree_way_valve_control,
triggerThree_way_valve_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1018,7 +1018,7 @@ connect(dataBus.yPumBoiBoiler, pumBoi.y);
connect(dataBus.TStoTopBoiler, tanTemTop.T);
connect(dataBus.TStoBotBoiler, tanTemBot.T);
end BoilerWithStorageBoiler;
-
+
end Boilers;
@@ -2214,7 +2214,7 @@ connect(dataBus.yPump, pumRad.y);
connect(dataBus.y_gainPump, gain.y);
connect(dataBus.TPump_control, temSup.T);
end PumpPump;
-
+
end Ventilation;
end Fluid;
@@ -2326,11 +2326,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2399,11 +2399,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2433,20 +2433,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2455,15 +2455,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2473,13 +2473,13 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_simple_hydronic.Common.Controls.ventilation.EmissionControlEmission_valve_control
emission_valve_control annotation (
- Placement(transformation(origin = { -1.1614198458157337, -199.99999999999997 },
+ Placement(transformation(origin = { -137.1847311799441, 149.8801745138205 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2501,15 +2501,15 @@ parameter Integer nRoo = 2 "Number of rooms";
three_way_valve(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -200, -275 },
@@ -2522,9 +2522,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.Junction split_valve (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -2536,31 +2536,31 @@ parameter Integer nRoo = 2 "Number of rooms";
buildings_simple_hydronic.Common.Fluid.Boilers.
BoilerWithStorageBoiler boiler(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=2000,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.03571428571428571,
+ linearizeFlowResistance=false,
nominal_mass_flow_radiator_loop=0.07142857142857142,
- V_flow=0.03571428571428571/1000*{0.5,1}
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { 230, -275 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic.Common.Controls.ventilation.BoilerControlBoiler_control
- boiler_control( TSup_nominal=353.15,
- threshold_outdoor_air_cutoff=288.15,
- threshold_to_switch_off_boiler=288.15
+ boiler_control( threshold_outdoor_air_cutoff=288.15,
+ threshold_to_switch_off_boiler=288.15,
+ TSup_nominal=353.15
) annotation (
Placement(transformation(origin = { 180, -275 },
extent = {{-10, -10}, {10, 10}}
@@ -2568,8 +2568,8 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
buildings_simple_hydronic.Common.
Fluid.Ventilation.PumpPump
pump(
- m_flow_nominal=0.008,
- dp_nominal=10000
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -2585,7 +2585,7 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
buildings_simple_hydronic.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 110.79837855275669, 177.88559610656128 },
+ Placement(transformation(origin = { 7.9575515975142395, -200.0 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2616,7 +2616,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.y,emission_valve_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ -0.5807099229078668, -75.0 } ,{ -0.5807099229078668, -199.99999999999997 } ,{ -1.1614198458157337, -199.99999999999997 } },
+points={{ 0.0, -75.0 } ,{ -68.59236558997205, -75.0 } ,{ -68.59236558997205, 149.8801745138205 } ,{ -137.1847311799441, 149.8801745138205 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.port_b,emission.port_a)
@@ -2676,37 +2676,37 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -1.1614198458157337, -199.99999999999997 } ,{ 54.81847935347047, -199.99999999999997 } ,{ 54.81847935347048, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ -137.1847311799441, 149.8801745138205 } ,{ -64.61358979121493, 149.8801745138205 } ,{ -64.61358979121492, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 30.399189276378337, 0.0 } ,{ 30.39918927637835, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ -50.0, 0.0 } ,{ -21.02122420124288, 0.0 } ,{ -21.02122420124288, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -69.60081072362166, -275.0 } ,{ -69.60081072362165, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ -250.0, -275.0 } ,{ -121.02122420124289, -275.0 } ,{ -121.02122420124287, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(boiler_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 180.0, -275.0 } ,{ 145.39918927637834, -275.0 } ,{ 145.39918927637834, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ 180.0, -275.0 } ,{ 93.97877579875711, -275.0 } ,{ 93.97877579875713, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(pump_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -119.60081072362166, -375.0 } ,{ -119.60081072362165, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ -350.0, -375.0 } ,{ -171.0212242012429, -375.0 } ,{ -171.0212242012429, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 55.399189276378344, 0.0 } ,{ 55.399189276378344, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ 0.0, 0.0 } ,{ 3.9787757987571197, 0.0 } ,{ 3.9787757987571197, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 55.399189276378344, 0.0 } ,{ 55.399189276378344, 177.88559610656128 } ,{ 110.79837855275669, 177.88559610656128 } },
+points={{ 0.0, 0.0 } ,{ 3.9787757987571197, 0.0 } ,{ 3.9787757987571197, -200.0 } ,{ 7.9575515975142395, -200.0 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-400.0,-425.0},{280.0,250.0}})), Icon(
coordinateSystem(extent={{-400.0,-425.0},{280.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 2000 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.03571428571428571 |
---|
nominal_mass_flow_radiator_loop | 0.07142857142857142 |
---|
V_flow | 0.03571428571428571/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve | | emission | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_simple_hydronic;
+end buildings_simple_hydronic;
\ No newline at end of file
diff --git a/tests/data/buildings_simple_hydronic_three_zones.mo b/tests/data/buildings_simple_hydronic_three_zones.mo
index 58ed962..bba0dd5 100644
--- a/tests/data/buildings_simple_hydronic_three_zones.mo
+++ b/tests/data/buildings_simple_hydronic_three_zones.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,20 +467,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model EmissionControlEmission_valve_control_2
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -531,20 +531,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model EmissionControlEmission_valve_control_3
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -595,19 +595,19 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_3, occSch2.occupied);
end OccupancyOccupancy_2;
-
+
model ThreeWayValveControlThree_way_valve_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -625,14 +625,14 @@ annotation (Line(points={{10,0},{110,0}}, color={0,0,127})); connect(u, conVal.
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -658,18 +658,18 @@ connect(dataBus.TAirOutBoiler, lesThrTOut.u);
connect(dataBus.yBoiConBoiler, booToReaBoi.y);
connect(dataBus.yPumBoiBoiler, booToReaPum.y);
end BoilerControlBoiler_control;
-
+
model CollectorControlPump_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=3)
@@ -716,7 +716,10 @@ iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Cont
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_valve_control
+ TColSetThree_way_valve_control
+ (y=363.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetEmission_valve_control_2
(y=298.15);
Modelica.Blocks.Sources.RealExpression
TAirOutBoiler_control
@@ -725,14 +728,11 @@ Modelica.Blocks.Sources.RealExpression
TCooSetEmission_valve_control_3
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TColSetThree_way_valve_control_2
- (y=363.15);
+ TCooSetEmission_valve_control
+ (y=298.15);
Modelica.Blocks.Sources.RealExpression
- TColSetThree_way_valve_control
+ TColSetThree_way_valve_control_2
(y=363.15);
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_valve_control_2
- (y=298.15);
Modelica.Blocks.Sources.BooleanExpression
triggerThree_way_valve_control_2
(y=true);
@@ -752,24 +752,24 @@ connect(dataBus.TZonSpace_3, TRoo[3].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
connect(dataBus.ppmCO2Space_3, TRoo1[3].ppm);
-connect(dataBus.TCooSetSpace_1,
-TCooSetEmission_valve_control.y);
+connect(dataBus.TColSetThree_way_valve_control,
+TColSetThree_way_valve_control.y);
+connect(dataBus.TCooSetSpace_2,
+TCooSetEmission_valve_control_2.y);
connect(dataBus.TAirOutBoiler,
TAirOutBoiler_control.y);
connect(dataBus.TCooSetSpace_3,
TCooSetEmission_valve_control_3.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetEmission_valve_control.y);
connect(dataBus.TColSetThree_way_valve_control_2,
TColSetThree_way_valve_control_2.y);
-connect(dataBus.TColSetThree_way_valve_control,
-TColSetThree_way_valve_control.y);
-connect(dataBus.TCooSetSpace_2,
-TCooSetEmission_valve_control_2.y);
connect(dataBus.triggerThree_way_valve_control_2,
triggerThree_way_valve_control_2.y);
connect(dataBus.triggerThree_way_valve_control,
triggerThree_way_valve_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1201,7 +1201,7 @@ connect(dataBus.yPumBoiBoiler, pumBoi.y);
connect(dataBus.TStoTopBoiler, tanTemTop.T);
connect(dataBus.TStoBotBoiler, tanTemBot.T);
end BoilerWithStorageBoiler;
-
+
end Boilers;
@@ -2397,7 +2397,7 @@ connect(dataBus.yPump, pumRad.y);
connect(dataBus.y_gainPump, gain.y);
connect(dataBus.TPump_control, temSup.T);
end PumpPump;
-
+
end Ventilation;
end Fluid;
@@ -2509,11 +2509,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2595,11 +2595,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2633,20 +2633,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2655,15 +2655,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2673,24 +2673,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control
emission_valve_control annotation (
- Placement(transformation(origin = { -190.6939527929451, 7.548666918951189 },
+ Placement(transformation(origin = { 88.33529171793924, 175.45352793261546 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2724,20 +2724,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission_2(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2746,15 +2746,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_2(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2764,24 +2764,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control_2
emission_valve_control_2 annotation (
- Placement(transformation(origin = { -48.776124054468795, 177.724973706343 },
+ Placement(transformation(origin = { 62.54770864000147, 185.96070284754612 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_3(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2815,20 +2815,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission_3(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2837,15 +2837,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_3(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2855,13 +2855,13 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control_3
emission_valve_control_3 annotation (
- Placement(transformation(origin = { 27.81312644679909, -184.90546772873046 },
+ Placement(transformation(origin = { 192.09831631530122, -32.50591864897783 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_2
- occupancy_2( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_2( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2910,15 +2910,15 @@ parameter Integer nRoo = 2 "Number of rooms";
three_way_valve(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -200, -275 },
@@ -2940,15 +2940,15 @@ parameter Integer nRoo = 2 "Number of rooms";
three_way_valve_2(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { 300, -125 },
@@ -2961,9 +2961,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.Junction split_valve (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -2973,9 +2973,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.Junction split_valve_2 (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -2987,31 +2987,31 @@ parameter Integer nRoo = 2 "Number of rooms";
buildings_simple_hydronic_three_zones.Common.Fluid.Boilers.
BoilerWithStorageBoiler boiler(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=2000,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.03571428571428571,
+ linearizeFlowResistance=false,
nominal_mass_flow_radiator_loop=0.07142857142857142,
- V_flow=0.03571428571428571/1000*{0.5,1}
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { 230, -275 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.BoilerControlBoiler_control
- boiler_control( TSup_nominal=353.15,
- threshold_outdoor_air_cutoff=288.15,
- threshold_to_switch_off_boiler=288.15
+ boiler_control( threshold_outdoor_air_cutoff=288.15,
+ threshold_to_switch_off_boiler=288.15,
+ TSup_nominal=353.15
) annotation (
Placement(transformation(origin = { 180, -275 },
extent = {{-10, -10}, {10, 10}}
@@ -3019,8 +3019,8 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
buildings_simple_hydronic_three_zones.Common.
Fluid.Ventilation.PumpPump
pump(
- m_flow_nominal=0.008,
- dp_nominal=10000
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -3036,7 +3036,7 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
buildings_simple_hydronic_three_zones.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -21.998554729576362, -198.13518227497354 },
+ Placement(transformation(origin = { -180.81802748350114, 55.20712745433545 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -3077,7 +3077,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.y,emission_valve_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ -95.34697639647256, -75.0 } ,{ -95.34697639647256, 7.548666918951189 } ,{ -190.6939527929451, 7.548666918951189 } },
+points={{ 0.0, -75.0 } ,{ 44.16764585896962, -75.0 } ,{ 44.16764585896962, 175.45352793261546 } ,{ 88.33529171793924, 175.45352793261546 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.port_b,emission.port_a)
@@ -3121,7 +3121,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.y,emission_valve_control_2.y)
annotation (Line(
-points={{ 250.0, 75.0 } ,{ 100.61193797276559, 75.0 } ,{ 100.61193797276562, 177.724973706343 } ,{ -48.776124054468795, 177.724973706343 } },
+points={{ 250.0, 75.0 } ,{ 156.27385432000074, 75.0 } ,{ 156.27385432000074, 185.96070284754612 } ,{ 62.54770864000147, 185.96070284754612 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.port_b,emission_2.port_a)
@@ -3165,7 +3165,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.y,emission_valve_control_3.y)
annotation (Line(
-points={{ 500.0, 75.0 } ,{ 263.90656322339953, 75.0 } ,{ 263.90656322339953, -184.90546772873046 } ,{ 27.81312644679909, -184.90546772873046 } },
+points={{ 500.0, 75.0 } ,{ 346.0491581576506, 75.0 } ,{ 346.0491581576506, -32.50591864897783 } ,{ 192.09831631530122, -32.50591864897783 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.port_b,emission_3.port_a)
@@ -3265,73 +3265,73 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -190.6939527929451, 7.548666918951189 } ,{ -106.34625376126074, 7.548666918951189 } ,{ -106.34625376126073, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 88.33529171793924, 175.45352793261546 } ,{ -46.241367882780935, 175.45352793261546 } ,{ -46.24136788278096, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -35.999277364788185, 0.0 } ,{ -35.999277364788185, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ -50.0, 0.0 } ,{ -115.40901374175057, 0.0 } ,{ -115.40901374175057, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(emission_valve_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -48.776124054468795, 177.724973706343 } ,{ -35.38733939202258, 177.724973706343 } ,{ -35.38733939202258, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 62.54770864000147, 185.96070284754612 } ,{ -59.13515942174984, 185.96070284754612 } ,{ -59.13515942174983, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 89.00072263521182, 150.0 } ,{ 89.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 200.0, 150.0 } ,{ 9.590986258249416, 150.0 } ,{ 9.590986258249444, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(emission_valve_control_3.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 27.81312644679909, -184.90546772873046 } ,{ 2.9072858586113632, -184.90546772873046 } ,{ 2.9072858586113632, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 192.09831631530122, -32.50591864897783 } ,{ 5.640144415900039, -32.50591864897783 } ,{ 5.640144415900039, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 150.0 } ,{ 214.00072263521182, 150.0 } ,{ 214.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 450.0, 150.0 } ,{ 134.59098625824942, 150.0 } ,{ 134.59098625824944, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -135.99927736478818, -275.0 } ,{ -135.99927736478818, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ -250.0, -275.0 } ,{ -215.40901374175058, -275.0 } ,{ -215.40901374175058, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 250.0, -125.0 } ,{ 114.00072263521182, -125.0 } ,{ 114.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 250.0, -125.0 } ,{ 34.590986258249416, -125.0 } ,{ 34.590986258249444, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(boiler_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 180.0, -275.0 } ,{ 79.00072263521182, -275.0 } ,{ 79.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 180.0, -275.0 } ,{ -0.40901374175058436, -275.0 } ,{ -0.40901374175055594, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(pump_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -185.99927736478818, -375.0 } ,{ -185.99927736478818, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ -350.0, -375.0 } ,{ -265.4090137417506, -375.0 } ,{ -265.4090137417506, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -10.999277364788181, 0.0 } ,{ -10.999277364788181, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 0.0, 0.0 } ,{ -90.40901374175057, 0.0 } ,{ -90.40901374175057, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -10.999277364788181, 0.0 } ,{ -10.999277364788181, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 0.0, 0.0 } ,{ -90.40901374175057, 0.0 } ,{ -90.40901374175057, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 114.00072263521182, 150.0 } ,{ 114.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 250.0, 150.0 } ,{ 34.590986258249416, 150.0 } ,{ 34.590986258249444, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 114.00072263521182, 150.0 } ,{ 114.00072263521182, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 250.0, 150.0 } ,{ 34.590986258249416, 150.0 } ,{ 34.590986258249444, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.heaPorAir,data_bus.port[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 239.00072263521184, 150.0 } ,{ 239.0007226352118, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 500.0, 150.0 } ,{ 159.59098625824942, 150.0 } ,{ 159.59098625824944, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.ports[1],data_bus.port_a[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 239.00072263521184, 150.0 } ,{ 239.0007226352118, -198.13518227497354 } ,{ -21.998554729576362, -198.13518227497354 } },
+points={{ 500.0, 150.0 } ,{ 159.59098625824942, 150.0 } ,{ 159.59098625824944, 55.20712745433545 } ,{ -180.81802748350114, 55.20712745433545 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-400.0,-425.0},{680.0,250.0}})), Icon(
coordinateSystem(extent={{-400.0,-425.0},{680.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_2 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission_2 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 45.0 | wall | | ExternalWall | w4_2 | 10.0 | 90.0 | wall | | ExternalWall | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround | win1_2 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_3 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_3 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission_3 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_3 | 10.0 | 135.0 | wall | | ExternalWall | w2_3 | 10.0 | 0.0 | wall | | ExternalWall | w3_3 | 10.0 | 45.0 | wall | | ExternalWall | w4_3 | 10.0 | 90.0 | wall | | ExternalWall | floor_4 | 10.0 | 90.0 | floor | | FloorOnGround | win1_3 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 2000 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.03571428571428571 |
---|
nominal_mass_flow_radiator_loop | 0.07142857142857142 |
---|
V_flow | 0.03571428571428571/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve | | emission | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_1_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_2 | | emission_2 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 45.0 | wall | | w4_2 | 10.0 | 90.0 | wall | | floor_3 | 10.0 | 90.0 | floor | | win1_2 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_3 |
---|
parameters | |
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_3 | | emission_3 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_3 | 10.0 | 135.0 | wall | | w2_3 | 10.0 | 0.0 | wall | | w3_3 | 10.0 | 45.0 | wall | | w4_3 | 10.0 | 90.0 | wall | | floor_4 | 10.0 | 90.0 | floor | | win1_3 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_simple_hydronic_three_zones;
+end buildings_simple_hydronic_three_zones;
\ No newline at end of file
diff --git a/tests/data/buildings_two_rooms_with_storage.mo b/tests/data/buildings_two_rooms_with_storage.mo
index 1af8773..7ad0241 100644
--- a/tests/data/buildings_two_rooms_with_storage.mo
+++ b/tests/data/buildings_two_rooms_with_storage.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,20 +467,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model EmissionControlEmission_valve_control_2
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -531,18 +531,18 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model CollectorControlPump_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=2)
@@ -574,14 +574,14 @@ end CollectorControlPump_control;
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -607,7 +607,7 @@ connect(dataBus.TAirOutBoiler, lesThrTOut.u);
connect(dataBus.yBoiConBoiler, booToReaBoi.y);
connect(dataBus.yPumBoiBoiler, booToReaPum.y);
end BoilerControlBoiler_control;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[2]
@@ -625,15 +625,15 @@ port_a(redeclare package Medium
iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Controls.BaseClasses.DataBus dataBus
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
+Modelica.Blocks.Sources.RealExpression
+ TColSetThree_way_valve_control
+ (y=363.15);
Modelica.Blocks.Sources.RealExpression
TCooSetEmission_valve_control_2
(y=298.15);
Modelica.Blocks.Sources.RealExpression
TCooSetEmission_valve_control
(y=298.15);
-Modelica.Blocks.Sources.RealExpression
- TColSetThree_way_valve_control
- (y=363.15);
Modelica.Blocks.Sources.RealExpression
TAirOutBoiler_control
(y=0.0);
@@ -649,18 +649,18 @@ connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.TZonSpace_2, TRoo[2].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
+connect(dataBus.TColSetThree_way_valve_control,
+TColSetThree_way_valve_control.y);
connect(dataBus.TCooSetSpace_2,
TCooSetEmission_valve_control_2.y);
connect(dataBus.TCooSetSpace_1,
TCooSetEmission_valve_control.y);
-connect(dataBus.TColSetThree_way_valve_control,
-TColSetThree_way_valve_control.y);
connect(dataBus.TAirOutBoiler,
TAirOutBoiler_control.y);
connect(dataBus.triggerThree_way_valve_control,
triggerThree_way_valve_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1092,7 +1092,7 @@ connect(dataBus.yPumBoiBoiler, pumBoi.y);
connect(dataBus.TStoTopBoiler, tanTemTop.T);
connect(dataBus.TStoBotBoiler, tanTemBot.T);
end BoilerWithStorageBoiler;
-
+
end Boilers;
@@ -2288,7 +2288,7 @@ connect(dataBus.yPump, pumRad.y);
connect(dataBus.y_gainPump, gain.y);
connect(dataBus.TPump_control, temSup.T);
end PumpPump;
-
+
end Ventilation;
end Fluid;
@@ -2400,11 +2400,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2486,11 +2486,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2524,20 +2524,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2546,15 +2546,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2564,24 +2564,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_two_rooms_with_storage.Common.Controls.ventilation.EmissionControlEmission_valve_control
emission_valve_control annotation (
- Placement(transformation(origin = { 73.47205426829684, -163.2330310765357 },
+ Placement(transformation(origin = { -156.5431347595859, -86.430188680279 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_two_rooms_with_storage.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2615,20 +2615,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission_2(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2637,15 +2637,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_2(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2655,13 +2655,13 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
buildings_two_rooms_with_storage.Common.Controls.ventilation.EmissionControlEmission_valve_control_2
emission_valve_control_2 annotation (
- Placement(transformation(origin = { 20.052904373409348, 193.98809711568768 },
+ Placement(transformation(origin = { -156.25951474415422, -122.17262417339363 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_two_rooms_with_storage.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2689,9 +2689,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.Junction split_valve (
- m_flow_nominal=0.07857142857142857*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -2703,8 +2703,8 @@ parameter Integer nRoo = 2 "Number of rooms";
buildings_two_rooms_with_storage.Common.
Fluid.Ventilation.PumpPump
pump(
- m_flow_nominal=0.07857142857142857,
- dp_nominal=28000.0
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -2721,15 +2721,15 @@ parameter Integer nRoo = 2 "Number of rooms";
three_way_valve(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
+ m_flow_nominal=0.0078,
+ delta0=0.01,
+ R=50.0,
linearized={false, false},
- m_flow_nominal=0.07857142857142857,
- dpValve_nominal=6000.0
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -300, -375 },
@@ -2744,31 +2744,31 @@ parameter Integer nRoo = 2 "Number of rooms";
buildings_two_rooms_with_storage.Common.Fluid.Boilers.
BoilerWithStorageBoiler boiler(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=2000,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.03571428571428571,
+ linearizeFlowResistance=false,
nominal_mass_flow_radiator_loop=0.07142857142857142,
- V_flow=0.03571428571428571/1000*{0.5,1}
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { -400, -475 },
extent = {{-10, -10}, {10, 10}}
)));
buildings_two_rooms_with_storage.Common.Controls.ventilation.BoilerControlBoiler_control
- boiler_control( TSup_nominal=353.15,
- threshold_outdoor_air_cutoff=288.15,
- threshold_to_switch_off_boiler=288.15
+ boiler_control( threshold_outdoor_air_cutoff=288.15,
+ threshold_to_switch_off_boiler=288.15,
+ TSup_nominal=353.15
) annotation (
Placement(transformation(origin = { -450, -475 },
extent = {{-10, -10}, {10, 10}}
@@ -2776,7 +2776,7 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
buildings_two_rooms_with_storage.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -166.19659850150762, -53.65076340189956 },
+ Placement(transformation(origin = { 154.72612664657726, 140.76754486370686 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2812,7 +2812,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.y,emission_valve_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ 36.73602713414842, -75.0 } ,{ 36.73602713414842, -163.2330310765357 } ,{ 73.47205426829684, -163.2330310765357 } },
+points={{ 0.0, -75.0 } ,{ -78.27156737979296, -75.0 } ,{ -78.27156737979296, -86.430188680279 } ,{ -156.5431347595859, -86.430188680279 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.port_b,emission.port_a)
@@ -2851,7 +2851,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.y,emission_valve_control_2.y)
annotation (Line(
-points={{ 250.0, 75.0 } ,{ 135.02645218670466, 75.0 } ,{ 135.02645218670466, 193.98809711568768 } ,{ 20.052904373409348, 193.98809711568768 } },
+points={{ 250.0, 75.0 } ,{ 46.87024262792289, 75.0 } ,{ 46.87024262792289, -122.17262417339363 } ,{ -156.25951474415422, -122.17262417339363 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.port_b,emission_2.port_a)
@@ -2916,53 +2916,53 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 73.47205426829684, -163.2330310765357 } ,{ -46.36227211660538, -163.2330310765357 } ,{ -46.362272116605396, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -156.5431347595859, -86.430188680279 } ,{ -0.908504056504313, -86.430188680279 } ,{ -0.9085040565043414, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -108.09829925075381, 0.0 } ,{ -108.09829925075381, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -50.0, 0.0 } ,{ 52.36306332328863, 0.0 } ,{ 52.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(emission_valve_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 20.052904373409348, 193.98809711568768 } ,{ -73.07184706404914, 193.98809711568768 } ,{ -73.07184706404914, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -156.25951474415422, -122.17262417339363 } ,{ -0.7666940487884801, -122.17262417339363 } ,{ -0.7666940487884801, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 16.901700749246174, 150.0 } ,{ 16.901700749246203, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ 200.0, 150.0 } ,{ 177.36306332328863, 150.0 } ,{ 177.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(pump_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -208.09829925075383, -275.0 } ,{ -208.09829925075383, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -250.0, -275.0 } ,{ -47.63693667671137, -275.0 } ,{ -47.63693667671137, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -258.0982992507538, -375.0 } ,{ -258.0982992507538, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -350.0, -375.0 } ,{ -97.63693667671137, -375.0 } ,{ -97.63693667671137, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(boiler_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -450.0, -475.0 } ,{ -308.0982992507538, -475.0 } ,{ -308.0982992507538, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ -450.0, -475.0 } ,{ -147.63693667671134, -475.0 } ,{ -147.6369366767114, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -83.09829925075381, 0.0 } ,{ -83.09829925075381, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ 0.0, 0.0 } ,{ 77.36306332328863, 0.0 } ,{ 77.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -83.09829925075381, 0.0 } ,{ -83.09829925075381, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ 0.0, 0.0 } ,{ 77.36306332328863, 0.0 } ,{ 77.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 41.901700749246174, 150.0 } ,{ 41.9017007492462, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ 250.0, 150.0 } ,{ 202.36306332328863, 150.0 } ,{ 202.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 41.901700749246174, 150.0 } ,{ 41.9017007492462, -53.65076340189956 } ,{ -166.19659850150762, -53.65076340189956 } },
+points={{ 250.0, 150.0 } ,{ 202.36306332328863, 150.0 } ,{ 202.36306332328863, 140.76754486370686 } ,{ 154.72612664657726, 140.76754486370686 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-500.0,-525.0},{330.0,250.0}})), Icon(
coordinateSystem(extent={{-500.0,-525.0},{330.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_2 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission_2 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 45.0 | wall | | ExternalWall | w4_2 | 10.0 | 90.0 | wall | | ExternalWall | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround | win1_2 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 2000 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.03571428571428571 |
---|
nominal_mass_flow_radiator_loop | 0.07142857142857142 |
---|
V_flow | 0.03571428571428571/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve | | emission | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_2 | | emission_2 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 45.0 | wall | | w4_2 | 10.0 | 90.0 | wall | | floor_3 | 10.0 | 90.0 | floor | | win1_2 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end buildings_two_rooms_with_storage;
+end buildings_two_rooms_with_storage;
\ No newline at end of file
diff --git a/tests/data/house_model.mo b/tests/data/house_model.mo
index 3054566..aa2eef5 100644
--- a/tests/data/house_model.mo
+++ b/tests/data/house_model.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,20 +467,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_3, occSch2.occupied);
end OccupancyOccupancy_2;
-
+
model EmissionControlEmissioncontrol_1
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -531,20 +531,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model EmissionControlEmissioncontrol_0
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -595,20 +595,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model EmissionControlEmissioncontrol_5
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -659,20 +659,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_6, occSch2.occupied);
end OccupancyOccupancy_5;
-
+
model EmissionControlEmissioncontrol_6
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -723,7 +723,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_9, occSch2.occupied);
end OccupancyOccupancy_8;
-
+
model OccupancyOccupancy_6
extends house_model.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -732,7 +732,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_7, occSch2.occupied);
end OccupancyOccupancy_6;
-
+
model OccupancyOccupancy_7
extends house_model.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -741,20 +741,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_8, occSch2.occupied);
end OccupancyOccupancy_7;
-
+
model EmissionControlEmissioncontrol_7
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -805,7 +805,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_10, occSch2.occupied);
end OccupancyOccupancy_9;
-
+
model OccupancyOccupancy_10
extends house_model.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -814,20 +814,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_11, occSch2.occupied);
end OccupancyOccupancy_10;
-
+
model EmissionControlEmissioncontrol_4
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -878,20 +878,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_5, occSch2.occupied);
end OccupancyOccupancy_4;
-
+
model EmissionControlEmissioncontrol_3
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -942,18 +942,18 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_4, occSch2.occupied);
end OccupancyOccupancy_3;
-
+
model CollectorControlCollectorcontrol_0
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=8)
@@ -991,14 +991,14 @@ end CollectorControlCollectorcontrol_0;
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -1015,14 +1015,14 @@ annotation (Line(points={{10,0},{110,0}}, color={0,0,127})); connect(u, conVal.
model CollectorControlCollectorcontrol_1
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=8)
@@ -1074,35 +1074,35 @@ iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Cont
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
Modelica.Blocks.Sources.RealExpression
- TColSetThreewayvalvecontrol_0
- (y=363.15);
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_0
+ TCooSetEmissioncontrol_3
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- y_gainCollectorcontrol_1
- (y=0.0);
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_4
+ TCooSetEmissioncontrol_5
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_3
+ TCooSetEmissioncontrol_7
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_2
+ TCooSetEmissioncontrol_1
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_7
+ TColSetThreewayvalvecontrol_0
+ (y=363.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetEmissioncontrol_2
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_5
+ TCooSetEmissioncontrol_0
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetEmissioncontrol_1
+ TCooSetEmissioncontrol_4
(y=298.15);
Modelica.Blocks.Sources.RealExpression
TCooSetEmissioncontrol_6
(y=298.15);
+Modelica.Blocks.Sources.RealExpression
+ y_gainCollectorcontrol_1
+ (y=0.0);
Modelica.Blocks.Sources.BooleanExpression
triggerThreewayvalvecontrol_0
(y=true);
@@ -1151,30 +1151,30 @@ connect(dataBus.ppmCO2Space_6, TRoo1[8].ppm);
connect(dataBus.ppmCO2Space_7, TRoo1[9].ppm);
connect(dataBus.ppmCO2Space_8, TRoo1[10].ppm);
connect(dataBus.ppmCO2Space_9, TRoo1[11].ppm);
-connect(dataBus.TColSetThreewayvalvecontrol_0,
-TColSetThreewayvalvecontrol_0.y);
-connect(dataBus.TCooSetSpace_1,
-TCooSetEmissioncontrol_0.y);
-connect(dataBus.y_gainBoiler_0,
-y_gainCollectorcontrol_1.y);
-connect(dataBus.TCooSetSpace_5,
-TCooSetEmissioncontrol_4.y);
connect(dataBus.TCooSetSpace_4,
TCooSetEmissioncontrol_3.y);
-connect(dataBus.TCooSetSpace_3,
-TCooSetEmissioncontrol_2.y);
-connect(dataBus.TCooSetSpace_10,
-TCooSetEmissioncontrol_7.y);
connect(dataBus.TCooSetSpace_6,
TCooSetEmissioncontrol_5.y);
+connect(dataBus.TCooSetSpace_10,
+TCooSetEmissioncontrol_7.y);
connect(dataBus.TCooSetSpace_2,
TCooSetEmissioncontrol_1.y);
+connect(dataBus.TColSetThreewayvalvecontrol_0,
+TColSetThreewayvalvecontrol_0.y);
+connect(dataBus.TCooSetSpace_3,
+TCooSetEmissioncontrol_2.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetEmissioncontrol_0.y);
+connect(dataBus.TCooSetSpace_5,
+TCooSetEmissioncontrol_4.y);
connect(dataBus.TCooSetSpace_9,
TCooSetEmissioncontrol_6.y);
+connect(dataBus.y_gainBoiler_0,
+y_gainCollectorcontrol_1.y);
connect(dataBus.triggerThreewayvalvecontrol_0,
triggerThreewayvalvecontrol_0.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1606,7 +1606,7 @@ connect(dataBus.yPumBoiBoiler_0, pumBoi.y);
connect(dataBus.TStoTopBoiler_0, tanTemTop.T);
connect(dataBus.TStoBotBoiler_0, tanTemBot.T);
end BoilerWithStorageBoiler_0;
-
+
end Boilers;
@@ -2802,7 +2802,7 @@ connect(dataBus.yPump_0, pumRad.y);
connect(dataBus.y_gainPump_0, gain.y);
connect(dataBus.TCollectorcontrol_0, temSup.T);
end PumpPump_0;
-
+
end Ventilation;
end Fluid;
@@ -2914,11 +2914,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -3087,11 +3087,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_3(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.3,
- hRoo=2.4,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=3,
surBou(
@@ -3119,20 +3119,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_2(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=4000.0,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.232,
- mDry=105.2
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3141,15 +3141,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_2(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3159,24 +3159,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_2
emissioncontrol_2 annotation (
- Placement(transformation(origin = { 32.57046864038124, 187.1881270010521 },
+ Placement(transformation(origin = { 66.06063090302234, 188.0446903157054 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_2
- occupancy_2( occupancy=3600*{0.1,2,15,24},
- gain=[35; 70; 30],
- k=0.15
+ occupancy_2( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=2.7,
- hRoo=3.8,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -3201,20 +3201,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_1(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3223,15 +3223,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_1(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3241,24 +3241,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_1
emissioncontrol_1 annotation (
- Placement(transformation(origin = { 136.1950660811626, -114.53188702098825 },
+ Placement(transformation(origin = { 113.32862521530762, 155.29829358879815 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=7.07,
- hRoo=3.7,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=2,
surBou(
@@ -3286,20 +3286,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_0(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3308,15 +3308,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_0(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3326,24 +3326,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_0
emissioncontrol_0 annotation (
- Placement(transformation(origin = { -90.9461114983165, -174.54162287534402 },
+ Placement(transformation(origin = { -179.6907076556629, -6.081330677228599 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 150 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_6(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=5.7,
- hRoo=2.4,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=3,
surBou(
@@ -3362,20 +3362,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_5(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=4000.0,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.232,
- mDry=105.2
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3384,15 +3384,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_5(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3402,24 +3402,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_5
emissioncontrol_5 annotation (
- Placement(transformation(origin = { -165.673794182835, 70.53371294656888 },
+ Placement(transformation(origin = { 179.17658480867766, -104.54694031938442 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_5
- occupancy_5( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_5( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 150 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_9(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=15.7,
- hRoo=3.7,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=2,
datConExt(
@@ -3447,20 +3447,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_6(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3469,15 +3469,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_6(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3487,24 +3487,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_6
emissioncontrol_6 annotation (
- Placement(transformation(origin = { 171.96630704490045, -8.179158833250296 },
+ Placement(transformation(origin = { 87.56422549716572, 173.57839761840478 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_8
- occupancy_8( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_8( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 300 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_7(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=5.7,
- hRoo=2.4,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=3,
surBou(
@@ -3522,20 +3522,20 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_6
- occupancy_6( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_6( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 300 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_8(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=3.139,
- hRoo=6.5,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=5,
surBou(
@@ -3553,20 +3553,20 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_7
- occupancy_7( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_7( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 300 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_10(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.8116,
- hRoo=3.7,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=2,
datConExt(
@@ -3585,20 +3585,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_7(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3607,15 +3607,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_7(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3625,24 +3625,24 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_7
emissioncontrol_7 annotation (
- Placement(transformation(origin = { -175.69949332451608, -77.56258841514898 },
+ Placement(transformation(origin = { 164.84015459888934, 78.72192538431764 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_9
- occupancy_9( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_9( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 450 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_11(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=6.6,
- hRoo=1.6,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=2,
datConExt(
@@ -3656,20 +3656,20 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_10
- occupancy_10( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_10( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 450 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_5(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.34,
- hRoo=3.7,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -3703,20 +3703,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_4(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=4000.0,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.232,
- mDry=105.2
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3725,15 +3725,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_4(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3743,25 +3743,25 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_4
emissioncontrol_4 annotation (
- Placement(transformation(origin = { -53.74528210259565, 180.26567429649583 },
+ Placement(transformation(origin = { -83.19041832983346, -182.9501876479488 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_4
- occupancy_4( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_4( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 450 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_4(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=27.11,
- hRoo=3.7,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
- T_start=299.15
+ mSenFac=1.0,
+ T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
layers={ Construction_1 },
@@ -3794,20 +3794,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 radiator_3(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=4000.0,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.232,
- mDry=105.2
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -3816,15 +3816,15 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
Buildings.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_3(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -3834,20 +3834,20 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
house_model.Common.Controls.ventilation.EmissionControlEmissioncontrol_3
emissioncontrol_3 annotation (
- Placement(transformation(origin = { 190.4040728997946, -62.80412306293323 },
+ Placement(transformation(origin = { 85.93518037225158, -186.41120111488183 },
extent = {{-10, -10}, {10, 10}}
)));
house_model.Common.Controls.ventilation.OccupancyOccupancy_3
- occupancy_3( occupancy=3600*{9, 12, 17,22},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_3( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 600 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.BoundaryConditions.WeatherData.ReaderTMY3
- weather_19( filNam=/home/aan/Documents/trano/tests/resources/BEL_VLG_Uccle.064470_TMYx.2007-2021.mos
-)
+ weather_19(filNam=Modelica.Utilities.Files.loadResource
+ ("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"))
annotation (
Placement(transformation(origin = { -100, 200 },
extent = {{-10, -10}, {10, 10}}
@@ -3994,9 +3994,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.Junction splitvalve_0 (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -4008,8 +4008,8 @@ parameter Integer nRoo = 2 "Number of rooms";
house_model.Common.
Fluid.Ventilation.PumpPump_0
pump_0(
- m_flow_nominal=0.008,
- dp_nominal=10000
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -4026,15 +4026,15 @@ parameter Integer nRoo = 2 "Number of rooms";
threewayvalve_0(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -300, -375 },
@@ -4049,22 +4049,22 @@ parameter Integer nRoo = 2 "Number of rooms";
house_model.Common.Fluid.Boilers.
BoilerWithStorageBoiler_0 boiler_0(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=6000.0,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.10714285714285714,
- nominal_mass_flow_radiator_loop=0.21428571428571427,
- V_flow=0.10714285714285714/1000*{0.5,1}
+ linearizeFlowResistance=false,
+ nominal_mass_flow_radiator_loop=0.07142857142857142,
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { -400, -475 },
@@ -4078,7 +4078,7 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
house_model.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -186.83946906613295, 45.16074913347302 },
+ Placement(transformation(origin = { 158.5196528223928, 134.74224061900196 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -4124,7 +4124,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.y,emissioncontrol_2.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ 16.28523432019062, -75.0 } ,{ 16.28523432019062, 187.1881270010521 } ,{ 32.57046864038124, 187.1881270010521 } },
+points={{ 0.0, -75.0 } ,{ 33.03031545151117, -75.0 } ,{ 33.03031545151117, 188.0446903157054 } ,{ 66.06063090302234, 188.0446903157054 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.port_b,radiator_2.port_a)
@@ -4173,7 +4173,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_1.y,emissioncontrol_1.y)
annotation (Line(
-points={{ 250.0, 75.0 } ,{ 193.0975330405813, 75.0 } ,{ 193.0975330405813, -114.53188702098825 } ,{ 136.1950660811626, -114.53188702098825 } },
+points={{ 250.0, 75.0 } ,{ 181.6643126076538, 75.0 } ,{ 181.6643126076538, 155.29829358879815 } ,{ 113.32862521530762, 155.29829358879815 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_1.port_b,radiator_1.port_a)
@@ -4217,7 +4217,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_0.y,emissioncontrol_0.y)
annotation (Line(
-points={{ 500.0, 75.0 } ,{ 204.52694425084178, 75.0 } ,{ 204.52694425084172, -174.54162287534402 } ,{ -90.9461114983165, -174.54162287534402 } },
+points={{ 500.0, 75.0 } ,{ 160.15464617216855, 75.0 } ,{ 160.15464617216855, -6.081330677228599 } ,{ -179.6907076556629, -6.081330677228599 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_0.port_b,radiator_0.port_a)
@@ -4266,7 +4266,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_5.y,emissioncontrol_5.y)
annotation (Line(
-points={{ 0.0, 75.0 } ,{ -82.8368970914175, 75.0 } ,{ -82.8368970914175, 70.53371294656888 } ,{ -165.673794182835, 70.53371294656888 } },
+points={{ 0.0, 75.0 } ,{ 89.58829240433883, 75.0 } ,{ 89.58829240433883, -104.54694031938442 } ,{ 179.17658480867766, -104.54694031938442 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_5.port_b,radiator_5.port_a)
@@ -4305,7 +4305,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_6.y,emissioncontrol_6.y)
annotation (Line(
-points={{ 250.0, 225.0 } ,{ 210.9831535224502, 225.0 } ,{ 210.9831535224502, -8.179158833250296 } ,{ 171.96630704490045, -8.179158833250296 } },
+points={{ 250.0, 225.0 } ,{ 168.78211274858285, 225.0 } ,{ 168.78211274858285, 173.57839761840478 } ,{ 87.56422549716572, 173.57839761840478 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_6.port_b,radiator_6.port_a)
@@ -4407,7 +4407,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_7.y,emissioncontrol_7.y)
annotation (Line(
-points={{ 250.0, 375.0 } ,{ 37.15025333774196, 375.0 } ,{ 37.15025333774196, -77.56258841514898 } ,{ -175.69949332451608, -77.56258841514898 } },
+points={{ 250.0, 375.0 } ,{ 207.42007729944467, 375.0 } ,{ 207.42007729944467, 78.72192538431764 } ,{ 164.84015459888934, 78.72192538431764 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_7.port_b,radiator_7.port_a)
@@ -4465,7 +4465,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_4.y,emissioncontrol_4.y)
annotation (Line(
-points={{ 0.0, 375.0 } ,{ -26.872641051297826, 375.0 } ,{ -26.872641051297826, 180.26567429649583 } ,{ -53.74528210259565, 180.26567429649583 } },
+points={{ 0.0, 375.0 } ,{ -41.59520916491673, 375.0 } ,{ -41.59520916491673, -182.9501876479488 } ,{ -83.19041832983346, -182.9501876479488 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_4.port_b,radiator_4.port_a)
@@ -4524,7 +4524,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.y,emissioncontrol_3.y)
annotation (Line(
-points={{ 250.0, 525.0 } ,{ 220.20203644989732, 525.0 } ,{ 220.20203644989732, -62.80412306293323 } ,{ 190.4040728997946, -62.80412306293323 } },
+points={{ 250.0, 525.0 } ,{ 167.9675901861258, 525.0 } ,{ 167.9675901861258, -186.41120111488183 } ,{ 85.93518037225158, -186.41120111488183 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.port_b,radiator_3.port_a)
@@ -4619,185 +4619,185 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emissioncontrol_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 32.57046864038124, 187.1881270010521 } ,{ -77.13450021287585, 187.1881270010521 } ,{ -77.13450021287585, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 66.06063090302234, 188.0446903157054 } ,{ 112.29014186270757, 188.0446903157054 } ,{ 112.29014186270757, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -118.41973453306647, 0.0 } ,{ -118.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -50.0, 0.0 } ,{ 54.2598264111964, 0.0 } ,{ 54.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 136.1950660811626, -114.53188702098825 } ,{ -25.322201492485163, -114.53188702098825 } ,{ -25.322201492485192, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 113.32862521530762, 155.29829358879815 } ,{ 135.9241390188502, 155.29829358879815 } ,{ 135.9241390188502, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 6.580265466933525, 150.0 } ,{ 6.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 200.0, 150.0 } ,{ 179.2598264111964, 150.0 } ,{ 179.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -90.9461114983165, -174.54162287534402 } ,{ -138.89279028222472, -174.54162287534402 } ,{ -138.89279028222472, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -179.6907076556629, -6.081330677228599 } ,{ -10.585527416635045, -6.081330677228599 } ,{ -10.585527416635045, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 150.0 } ,{ 131.5802654669335, 150.0 } ,{ 131.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 450.0, 150.0 } ,{ 304.2598264111964, 150.0 } ,{ 304.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_5.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -165.673794182835, 70.53371294656888 } ,{ -176.256631624484, 70.53371294656888 } ,{ -176.256631624484, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 179.17658480867766, -104.54694031938442 } ,{ 168.84811881553523, -104.54694031938442 } ,{ 168.84811881553523, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_5.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 150.0 } ,{ -118.41973453306647, 150.0 } ,{ -118.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -50.0, 150.0 } ,{ 54.2598264111964, 150.0 } ,{ 54.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_6.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 171.96630704490045, -8.179158833250296 } ,{ -7.4365810106162655, -8.179158833250296 } ,{ -7.436581010616237, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 87.56422549716572, 173.57839761840478 } ,{ 123.04193915977926, 173.57839761840478 } ,{ 123.04193915977926, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_8.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 300.0 } ,{ 6.580265466933525, 300.0 } ,{ 6.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 200.0, 300.0 } ,{ 179.2598264111964, 300.0 } ,{ 179.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_6.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 300.0 } ,{ 131.5802654669335, 300.0 } ,{ 131.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 450.0, 300.0 } ,{ 304.2598264111964, 300.0 } ,{ 304.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_7.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 300.0 } ,{ -118.41973453306647, 300.0 } ,{ -118.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -50.0, 300.0 } ,{ 54.2598264111964, 300.0 } ,{ 54.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_7.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -175.69949332451608, -77.56258841514898 } ,{ -181.26948119532452, -77.56258841514898 } ,{ -181.26948119532452, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 164.84015459888934, 78.72192538431764 } ,{ 161.67990371064107, 78.72192538431764 } ,{ 161.67990371064107, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_9.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 450.0 } ,{ 6.580265466933525, 450.0 } ,{ 6.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 200.0, 450.0 } ,{ 179.2598264111964, 450.0 } ,{ 179.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_10.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 450.0 } ,{ 131.5802654669335, 450.0 } ,{ 131.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 450.0, 450.0 } ,{ 304.2598264111964, 450.0 } ,{ 304.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_4.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -53.74528210259565, 180.26567429649583 } ,{ -120.29237558436431, 180.26567429649583 } ,{ -120.2923755843643, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -83.19041832983346, -182.9501876479488 } ,{ 37.66461724627966, -182.9501876479488 } ,{ 37.664617246279676, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_4.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 450.0 } ,{ -118.41973453306647, 450.0 } ,{ -118.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -50.0, 450.0 } ,{ 54.2598264111964, 450.0 } ,{ 54.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(emissioncontrol_3.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 190.4040728997946, -62.80412306293323 } ,{ 1.7823019168308463, -62.80412306293323 } ,{ 1.7823019168308178, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 85.93518037225158, -186.41120111488183 } ,{ 122.22741659732219, -186.41120111488183 } ,{ 122.22741659732219, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_3.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 600.0 } ,{ 6.580265466933525, 600.0 } ,{ 6.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 200.0, 600.0 } ,{ 179.2598264111964, 600.0 } ,{ 179.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(collectorcontrol_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -218.41973453306647, -275.0 } ,{ -218.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -250.0, -275.0 } ,{ -45.7401735888036, -275.0 } ,{ -45.7401735888036, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(threewayvalvecontrol_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -268.4197345330665, -375.0 } ,{ -268.4197345330665, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -350.0, -375.0 } ,{ -95.7401735888036, -375.0 } ,{ -95.7401735888036, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(collectorcontrol_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -450.0, -475.0 } ,{ -318.4197345330665, -475.0 } ,{ -318.4197345330665, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ -450.0, -475.0 } ,{ -145.7401735888036, -475.0 } ,{ -145.7401735888036, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 156.5802654669335, 150.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 150.0 } ,{ 329.2598264111964, 150.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 156.5802654669335, 150.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 150.0 } ,{ 329.2598264111964, 150.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_10.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 450.0 } ,{ 31.580265466933525, 450.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 450.0 } ,{ 204.2598264111964, 450.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_10.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 450.0 } ,{ 31.580265466933525, 450.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 450.0 } ,{ 204.2598264111964, 450.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_11.heaPorAir,data_bus.port[3])
annotation (Line(
-points={{ 500.0, 450.0 } ,{ 156.5802654669335, 450.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 450.0 } ,{ 329.2598264111964, 450.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_11.ports[1],data_bus.port_a[3])
annotation (Line(
-points={{ 500.0, 450.0 } ,{ 156.5802654669335, 450.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 450.0 } ,{ 329.2598264111964, 450.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[4])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 31.580265466933525, 150.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 150.0 } ,{ 204.2598264111964, 150.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[4])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 31.580265466933525, 150.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 150.0 } ,{ 204.2598264111964, 150.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.heaPorAir,data_bus.port[5])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -93.41973453306647, 0.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 0.0 } ,{ 79.2598264111964, 0.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.ports[1],data_bus.port_a[5])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -93.41973453306647, 0.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 0.0 } ,{ 79.2598264111964, 0.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_4.heaPorAir,data_bus.port[6])
annotation (Line(
-points={{ 250.0, 600.0 } ,{ 31.580265466933525, 600.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 600.0 } ,{ 204.2598264111964, 600.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_4.ports[1],data_bus.port_a[6])
annotation (Line(
-points={{ 250.0, 600.0 } ,{ 31.580265466933525, 600.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 600.0 } ,{ 204.2598264111964, 600.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_5.heaPorAir,data_bus.port[7])
annotation (Line(
-points={{ 0.0, 450.0 } ,{ -93.41973453306647, 450.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 450.0 } ,{ 79.2598264111964, 450.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_5.ports[1],data_bus.port_a[7])
annotation (Line(
-points={{ 0.0, 450.0 } ,{ -93.41973453306647, 450.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 450.0 } ,{ 79.2598264111964, 450.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_6.heaPorAir,data_bus.port[8])
annotation (Line(
-points={{ 0.0, 150.0 } ,{ -93.41973453306647, 150.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 150.0 } ,{ 79.2598264111964, 150.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_6.ports[1],data_bus.port_a[8])
annotation (Line(
-points={{ 0.0, 150.0 } ,{ -93.41973453306647, 150.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 150.0 } ,{ 79.2598264111964, 150.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_7.heaPorAir,data_bus.port[9])
annotation (Line(
-points={{ 500.0, 300.0 } ,{ 156.5802654669335, 300.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 300.0 } ,{ 329.2598264111964, 300.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_7.ports[1],data_bus.port_a[9])
annotation (Line(
-points={{ 500.0, 300.0 } ,{ 156.5802654669335, 300.0 } ,{ 156.58026546693355, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 500.0, 300.0 } ,{ 329.2598264111964, 300.0 } ,{ 329.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_8.heaPorAir,data_bus.port[10])
annotation (Line(
-points={{ 0.0, 300.0 } ,{ -93.41973453306647, 300.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 300.0 } ,{ 79.2598264111964, 300.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_8.ports[1],data_bus.port_a[10])
annotation (Line(
-points={{ 0.0, 300.0 } ,{ -93.41973453306647, 300.0 } ,{ -93.41973453306647, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 0.0, 300.0 } ,{ 79.2598264111964, 300.0 } ,{ 79.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_9.heaPorAir,data_bus.port[11])
annotation (Line(
-points={{ 250.0, 300.0 } ,{ 31.580265466933525, 300.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 300.0 } ,{ 204.2598264111964, 300.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_9.ports[1],data_bus.port_a[11])
annotation (Line(
-points={{ 250.0, 300.0 } ,{ 31.580265466933525, 300.0 } ,{ 31.580265466933525, 45.16074913347302 } ,{ -186.83946906613295, 45.16074913347302 } },
+points={{ 250.0, 300.0 } ,{ 204.2598264111964, 300.0 } ,{ 204.2598264111964, 134.74224061900196 } ,{ 158.5196528223928, 134.74224061900196 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-500.0,-525.0},{580.0,650.0}})), Icon(
coordinateSystem(extent={{-500.0,-525.0},{580.0,650.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_3 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 2.4 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 27.12 |
---|
|
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_2 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_2 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 4000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.232 |
---|
mDry | 105.2 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_2 | 11.3 | 90.0 | floor | | FloorOnGround | window_2 | 1.304 | 90.0 | wall | | Window | externalwall_4 | 9.024 | 90.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_6 | 7.22 | 10.0 | wall | | InternalElement | internalelement_7 | 6.5 | 10.0 | wall | | InternalElement | internalelement_8 | 1.5 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 2.7 |
---|
hRoo | 3.8 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 10.26 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_1 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_1 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
externalwall_3 | 2.37 | 90.0 | wall | | ExternalWall | flooronground_1 | 2.7 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_2 | 3.64 | 10.0 | wall | | InternalElement | internalelement_5 | 7.22 | 10.0 | wall | | InternalElement | internalelement_6 | 7.22 | 10.0 | wall | | InternalElement |
|
---|
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 7.07 |
---|
hRoo | 3.7 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 26.159000000000002 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_0 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_0 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
externaldoor_0 | 1.5 | 90.0 | wall | | ExternalDoor | window_0 | 3.3659999999999997 | 90.0 | wall | | Window | externalwall_1 | 6.44 | 90.0 | wall | | ExternalWall | window_1 | 4.288 | 45.0 | wall | | Window | externalwall_2 | 7.224 | 45.0 | wall | | ExternalWall | flooronground_0 | 7.07 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_3 | 6.44 | 10.0 | wall | | InternalElement | internalelement_5 | 7.22 | 10.0 | wall | | InternalElement |
|
---|
name | space_6 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 5.7 |
---|
hRoo | 2.4 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 13.68 |
---|
|
---|
occupancy | name | occupancy_5 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_5 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_5 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 4000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.232 |
---|
mDry | 105.2 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_5 | 5.7 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_7 | 6.5 | 10.0 | wall | | InternalElement | internalelement_9 | 6.5 | 10.0 | wall | | InternalElement | internalelement_10 | 5.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_9 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 15.7 |
---|
hRoo | 3.7 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 58.09 |
---|
|
---|
occupancy | name | occupancy_8 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_6 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_6 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
externalwall_10 | 9.0 | 0.0 | ceiling | | ExternalWall | externalwall_11 | 9.0 | 90.0 | ceiling | | ExternalWall | window_6 | 1.968 | 45.0 | wall | | Window | externalwall_12 | 12.938 | 45.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_15 | 15.7 | 10.0 | floor | | InternalElement |
|
---|
name | space_7 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 5.7 |
---|
hRoo | 2.4 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 13.68 |
---|
|
---|
occupancy | name | occupancy_6 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_6 | 5.7 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_9 | 6.5 | 10.0 | wall | | InternalElement | internalelement_11 | 5.0 | 10.0 | wall | | InternalElement | internalelement_12 | 6.5 | 10.0 | wall | | InternalElement |
|
---|
name | space_8 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 3.139 |
---|
hRoo | 6.5 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 20.403499999999998 |
---|
|
---|
occupancy | name | occupancy_7 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_7 | 3.19 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_4 | 8.0 | 10.0 | wall | | InternalElement | internalelement_8 | 1.5 | 10.0 | wall | | InternalElement | internalelement_10 | 5.0 | 10.0 | wall | | InternalElement | internalelement_11 | 5.0 | 10.0 | wall | | InternalElement | internalelement_13 | 12.321 | 10.0 | wall | | InternalElement |
|
---|
name | space_10 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.8116 |
---|
hRoo | 3.7 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 43.702920000000006 |
---|
|
---|
occupancy | name | occupancy_9 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_7 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_7 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
externalwall_13 | 9.0 | 0.0 | ceiling | | ExternalWall | externalwall_14 | 9.0 | 90.0 | ceiling | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_13 | 12.321 | 10.0 | wall | | InternalElement | internalelement_14 | 3.33 | 10.0 | floor | | InternalElement |
|
---|
name | space_11 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 6.6 |
---|
hRoo | 1.6 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 10.56 |
---|
|
---|
occupancy | name | occupancy_10 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
externalwall_15 | 9.0 | 90.0 | ceiling | | ExternalWall | externalwall_16 | 3.16 | 45.0 | ceiling | | ExternalWall |
|
---|
name | space_5 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.34 |
---|
hRoo | 3.7 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 41.958 |
---|
|
---|
occupancy | name | occupancy_4 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_4 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_4 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 4000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.232 |
---|
mDry | 105.2 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_4 | 11.34 | 90.0 | floor | | FloorOnGround | externalwall_8 | 13.0 | 0.0 | ceiling | | ExternalWall | window_5 | 2.8310000000000004 | 0.0 | wall | | Window | externalwall_9 | 11.34 | 0.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_1 | 11.368 | 10.0 | wall | | InternalElement | internalelement_12 | 6.5 | 10.0 | wall | | InternalElement | internalelement_14 | 3.33 | 10.0 | floor | | InternalElement |
|
---|
name | space_4 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 27.11 |
---|
hRoo | 3.7 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 299.15 |
---|
volume | 100.307 |
---|
|
---|
occupancy | name | occupancy_3 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_3 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | radiator_3 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 4000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.232 |
---|
mDry | 105.2 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
flooronground_3 | 27.11 | 90.0 | floor | | FloorOnGround | externalwall_5 | 13.0 | 0.0 | ceiling | | ExternalWall | window_3 | 4.881 | 0.0 | wall | | Window | externalwall_6 | 8.664 | 0.0 | wall | | ExternalWall | window_4 | 4.288 | 45.0 | wall | | Window | externalwall_7 | 18.024 | 45.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internalelement_1 | 11.368 | 10.0 | wall | | InternalElement | internalelement_2 | 3.64 | 10.0 | wall | | InternalElement | internalelement_3 | 6.44 | 10.0 | wall | | InternalElement | internalelement_4 | 8.0 | 10.0 | wall | | InternalElement | internalelement_15 | 15.7 | 10.0 | floor | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | construction_6 |
---|
layers | material | thickness |
---|
name | material_8 |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.2 | name | material_3 |
---|
k | 0.036 |
---|
c | 1470.0 |
---|
rho | 26.0 |
---|
epsLw | 0.8 |
---|
epsSw | 0.8 |
---|
| 0.2 | name | material_3 |
---|
k | 0.036 |
---|
c | 1470.0 |
---|
rho | 26.0 |
---|
epsLw | 0.8 |
---|
epsSw | 0.8 |
---|
| 0.02 | name | material_5 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 1100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.05 | name | material_6 |
---|
k | 0.11 |
---|
c | 1880.0 |
---|
rho | 550.0 |
---|
epsLw | 0.86 |
---|
epsSw | 0.44 |
---|
| 0.1 |
|
---|
name | construction_5 |
---|
layers | material | thickness |
---|
name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | material_4 |
---|
k | 0.84 |
---|
c | 840.0 |
---|
rho | 1400.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.14 | name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 |
|
---|
name | Construction_1 |
---|
layers | material | thickness |
---|
name | material_12 |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.025 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.05 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.24 | name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 |
|
---|
name | construction_3 |
---|
layers | material | thickness |
---|
name | material_7 |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
name | simple_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
name | construction_4 |
---|
layers | material | thickness |
---|
name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.18 | name | material_10 |
---|
k | 0.3 |
---|
c | 880.0 |
---|
rho | 850.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.09 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.05 | name | material_11 |
---|
k | 0.89 |
---|
c | 800.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.14 | name | material_9 |
---|
k | 0.6 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.01 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler_0 |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 6000.0 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.10714285714285714 |
---|
nominal_mass_flow_radiator_loop | 0.21428571428571427 |
---|
V_flow | 0.10714285714285714/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_3 |
---|
parameters | |
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_2 | | radiator_2 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_2 | 11.3 | 90.0 | floor | | window_2 | 1.304 | 90.0 | wall | | externalwall_4 | 9.024 | 90.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_6 | 7.22 | 10.0 | wall | | internalelement_7 | 6.5 | 10.0 | wall | | internalelement_8 | 1.5 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_1 | | radiator_1 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
externalwall_3 | 2.37 | 90.0 | wall | | flooronground_1 | 2.7 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_2 | 3.64 | 10.0 | wall | | internalelement_5 | 7.22 | 10.0 | wall | | internalelement_6 | 7.22 | 10.0 | wall | |
|
---|
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_0 | | radiator_0 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
externaldoor_0 | 1.5 | 90.0 | wall | | window_0 | 3.3659999999999997 | 90.0 | wall | | externalwall_1 | 6.44 | 90.0 | wall | | window_1 | 4.288 | 45.0 | wall | | externalwall_2 | 7.224 | 45.0 | wall | | flooronground_0 | 7.07 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_3 | 6.44 | 10.0 | wall | | internalelement_5 | 7.22 | 10.0 | wall | |
|
---|
name | space_6 |
---|
parameters | |
---|
occupancy | name | occupancy_5 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_5 | | radiator_5 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_5 | 5.7 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_7 | 6.5 | 10.0 | wall | | internalelement_9 | 6.5 | 10.0 | wall | | internalelement_10 | 5.0 | 10.0 | wall | |
|
---|
name | space_9 |
---|
parameters | |
---|
occupancy | name | occupancy_8 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_6 | | radiator_6 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
externalwall_10 | 9.0 | 0.0 | ceiling | | externalwall_11 | 9.0 | 90.0 | ceiling | | window_6 | 1.968 | 45.0 | wall | | externalwall_12 | 12.938 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_15 | 15.7 | 10.0 | floor | |
|
---|
name | space_7 |
---|
parameters | |
---|
occupancy | name | occupancy_6 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_6 | 5.7 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_9 | 6.5 | 10.0 | wall | | internalelement_11 | 5.0 | 10.0 | wall | | internalelement_12 | 6.5 | 10.0 | wall | |
|
---|
name | space_8 |
---|
parameters | |
---|
occupancy | name | occupancy_7 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_7 | 3.19 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_4 | 8.0 | 10.0 | wall | | internalelement_8 | 1.5 | 10.0 | wall | | internalelement_10 | 5.0 | 10.0 | wall | | internalelement_11 | 5.0 | 10.0 | wall | | internalelement_13 | 12.321 | 10.0 | wall | |
|
---|
name | space_10 |
---|
parameters | |
---|
occupancy | name | occupancy_9 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_7 | | radiator_7 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
externalwall_13 | 9.0 | 0.0 | ceiling | | externalwall_14 | 9.0 | 90.0 | ceiling | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_13 | 12.321 | 10.0 | wall | | internalelement_14 | 3.33 | 10.0 | floor | |
|
---|
name | space_11 |
---|
parameters | |
---|
occupancy | name | occupancy_10 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
externalwall_15 | 9.0 | 90.0 | ceiling | | externalwall_16 | 3.16 | 45.0 | ceiling | |
|
---|
name | space_5 |
---|
parameters | |
---|
occupancy | name | occupancy_4 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_4 | | radiator_4 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_4 | 11.34 | 90.0 | floor | | externalwall_8 | 13.0 | 0.0 | ceiling | | window_5 | 2.8310000000000004 | 0.0 | wall | | externalwall_9 | 11.34 | 0.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_1 | 11.368 | 10.0 | wall | | internalelement_12 | 6.5 | 10.0 | wall | | internalelement_14 | 3.33 | 10.0 | floor | |
|
---|
name | space_4 |
---|
parameters | |
---|
occupancy | name | occupancy_3 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_3 | | radiator_3 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
flooronground_3 | 27.11 | 90.0 | floor | | externalwall_5 | 13.0 | 0.0 | ceiling | | window_3 | 4.881 | 0.0 | wall | | externalwall_6 | 8.664 | 0.0 | wall | | window_4 | 4.288 | 45.0 | wall | | externalwall_7 | 18.024 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internalelement_1 | 11.368 | 10.0 | wall | | internalelement_2 | 3.64 | 10.0 | wall | | internalelement_3 | 6.44 | 10.0 | wall | | internalelement_4 | 8.0 | 10.0 | wall | | internalelement_15 | 15.7 | 10.0 | floor | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | Construction_1 |
---|
layers | material | thickness |
---|
name | material_12 |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.025 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.05 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.24 | name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 |
|
---|
name | simple_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
name | construction_5 |
---|
layers | material | thickness |
---|
name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | material_4 |
---|
k | 0.84 |
---|
c | 840.0 |
---|
rho | 1400.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.14 | name | material_2 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 |
|
---|
name | construction_3 |
---|
layers | material | thickness |
---|
name | material_7 |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
name | construction_6 |
---|
layers | material | thickness |
---|
name | material_8 |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.2 | name | material_3 |
---|
k | 0.036 |
---|
c | 1470.0 |
---|
rho | 26.0 |
---|
epsLw | 0.8 |
---|
epsSw | 0.8 |
---|
| 0.2 | name | material_3 |
---|
k | 0.036 |
---|
c | 1470.0 |
---|
rho | 26.0 |
---|
epsLw | 0.8 |
---|
epsSw | 0.8 |
---|
| 0.02 | name | material_5 |
---|
k | 0.9 |
---|
c | 840.0 |
---|
rho | 1100.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.05 | name | material_6 |
---|
k | 0.11 |
---|
c | 1880.0 |
---|
rho | 550.0 |
---|
epsLw | 0.86 |
---|
epsSw | 0.44 |
---|
| 0.1 |
|
---|
name | construction_4 |
---|
layers | material | thickness |
---|
name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.18 | name | material_10 |
---|
k | 0.3 |
---|
c | 880.0 |
---|
rho | 850.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.09 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | material_1 |
---|
k | 0.046 |
---|
c | 940.0 |
---|
rho | 80.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.05 | name | material_11 |
---|
k | 0.89 |
---|
c | 800.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.88 |
---|
epsSw | 0.55 |
---|
| 0.14 | name | material_9 |
---|
k | 0.6 |
---|
c | 840.0 |
---|
rho | 975.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.01 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end house_model;
+end house_model;
\ No newline at end of file
diff --git a/tests/data/ideas_free_float_single_zone.mo b/tests/data/ideas_free_float_single_zone.mo
index 66770c4..b1c3ae3 100644
--- a/tests/data/ideas_free_float_single_zone.mo
+++ b/tests/data/ideas_free_float_single_zone.mo
@@ -427,7 +427,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2168,11 +2168,6 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
@@ -2188,6 +2183,11 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
package Constructions "Library of building envelope constructions" record external_wall
"external_wall"
@@ -2228,7 +2228,7 @@ annotation (choicesAllMatching = true);
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -96.2221558972595, 158.027120974634 },
+ Placement(transformation(origin = { -25.377805196196597, -179.83974704102695 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2239,7 +2239,7 @@ annotation (choicesAllMatching = true);
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 102.50430507628556, -175.22598795032337 },
+ Placement(transformation(origin = { -157.3971662261003, -68.4224280688511 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_2(
@@ -2247,7 +2247,7 @@ annotation (choicesAllMatching = true);
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { 189.88184576946574, 5.503215674781191 },
+ Placement(transformation(origin = { 141.32654088652478, -146.27950362058994 },
extent = {{-10, -10}, {10, 10}}
)));
inner IDEAS.BoundaryConditions.SimInfoManager
@@ -2261,39 +2261,39 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
ideas_free_float_single_zone.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -200.0, 1.8176377396680672 },
+ Placement(transformation(origin = { -145.87154500793565, 105.5979845971506 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1:4],merged_w1_1_w2_1_w3_1_w4_1[1:4].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -48.11107794862975, 0.0 } ,{ -48.11107794862975, 158.027120974634 } ,{ -96.2221558972595, 158.027120974634 } },
+points={{ 0.0, 0.0 } ,{ -12.688902598098299, 0.0 } ,{ -12.688902598098299, -179.83974704102695 } ,{ -25.377805196196597, -179.83974704102695 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[5],merged_win1_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 51.25215253814278, 0.0 } ,{ 51.25215253814278, -175.22598795032337 } ,{ 102.50430507628556, -175.22598795032337 } },
+points={{ 0.0, 0.0 } ,{ -78.69858311305015, 0.0 } ,{ -78.69858311305015, -68.4224280688511 } ,{ -157.3971662261003, -68.4224280688511 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[6],floor_2.propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 94.94092288473287, 0.0 } ,{ 94.94092288473287, 5.503215674781191 } ,{ 189.88184576946574, 5.503215674781191 } },
+points={{ 0.0, 0.0 } ,{ 70.66327044326239, 0.0 } ,{ 70.66327044326239, -146.27950362058994 } ,{ 141.32654088652478, -146.27950362058994 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -100.0, 0.0 } ,{ -100.0, 1.8176377396680672 } ,{ -200.0, 1.8176377396680672 } },
+points={{ 0.0, 0.0 } ,{ -72.93577250396783, 0.0 } ,{ -72.93577250396783, 105.5979845971506 } ,{ -145.87154500793565, 105.5979845971506 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -100.0, 0.0 } ,{ -100.0, 1.8176377396680672 } ,{ -200.0, 1.8176377396680672 } },
+points={{ 0.0, 0.0 } ,{ -72.93577250396783, 0.0 } ,{ -72.93577250396783, 105.5979845971506 } ,{ -145.87154500793565, 105.5979845971506 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-225.22598795032337},{239.88184576946574,250.0}})), Icon(
- coordinateSystem(extent={{-250.0,-225.22598795032337},{239.88184576946574,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-207.3971662261003,-229.83974704102695},{191.32654088652478,250.0}})), Icon(
+ coordinateSystem(extent={{-207.3971662261003,-229.83974704102695},{191.32654088652478,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end ideas_free_float_single_zone;
+end ideas_free_float_single_zone;
\ No newline at end of file
diff --git a/tests/data/ideas_free_float_three_zones.mo b/tests/data/ideas_free_float_three_zones.mo
index b2fa697..acce059 100644
--- a/tests/data/ideas_free_float_three_zones.mo
+++ b/tests/data/ideas_free_float_three_zones.mo
@@ -435,7 +435,7 @@ connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
connect(dataBus.ppmCO2Space_3, TRoo1[3].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2176,45 +2176,45 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
rho=2240.0,
epsLw=0.88,
- epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.89,
- c=790.0,
- rho=1920.0,
- epsLw=0.88,
epsSw=0.55); record plywood = IDEAS.Buildings.Data.Interfaces.Material (
k=0.12,
c=1210.0,
rho=540.0,
epsLw=0.88,
+ epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.89,
+ c=790.0,
+ rho=1920.0,
+ epsLw=0.88,
epsSw=0.55); record Air = IDEAS.Buildings.Data.Interfaces.Material (
k=0.025,
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
-package Constructions "Library of building envelope constructions" record internal_wall
- "internal_wall"
- extends IDEAS.Buildings.Data.Interfaces.Construction(
- mats={ideas_free_float_three_zones.Data.Materials.brick
- (d=0.2) });
- end internal_wall; record external_wall
+package Constructions "Library of building envelope constructions" record external_wall
"external_wall"
extends IDEAS.Buildings.Data.Interfaces.Construction(
mats={ideas_free_float_three_zones.Data.Materials.concrete
(d=0.2),ideas_free_float_three_zones.Data.Materials.insulation_board
(d=0.02),ideas_free_float_three_zones.Data.Materials.plywood
(d=0.1) });
- end external_wall;
+ end external_wall; record internal_wall
+ "internal_wall"
+ extends IDEAS.Buildings.Data.Interfaces.Construction(
+ mats={ideas_free_float_three_zones.Data.Materials.brick
+ (d=0.2) });
+ end internal_wall;
end Constructions;
end Data;
model building
@@ -2246,7 +2246,7 @@ annotation (choicesAllMatching = true);
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 93.47740937791978, -156.1410784003279 },
+ Placement(transformation(origin = { -167.27975285872938, -118.81654587972075 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[2]
@@ -2257,7 +2257,7 @@ annotation (choicesAllMatching = true);
final azi={ 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 30.3926345682833, -196.91186686603677 },
+ Placement(transformation(origin = { 69.07973013931712, 169.57209060205432 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_1(
@@ -2265,7 +2265,7 @@ annotation (choicesAllMatching = true);
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { -2.5709217767949935, 195.11798912547258 },
+ Placement(transformation(origin = { 197.7946270554931, 11.956592407483017 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Zone space_2(
@@ -2288,7 +2288,7 @@ annotation (choicesAllMatching = true);
final azi={ 135, 0, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -148.87317906183785, 75.53860508708064 },
+ Placement(transformation(origin = { 94.01304444162842, -173.01481557991818 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[2]
@@ -2299,7 +2299,7 @@ annotation (choicesAllMatching = true);
final azi={ 0, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -180.4403240624778, -51.92328524501739 },
+ Placement(transformation(origin = { 134.29967718035553, 142.7498382244773 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_2(
@@ -2307,7 +2307,7 @@ annotation (choicesAllMatching = true);
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { -40.43634181142905, -182.10271698566092 },
+ Placement(transformation(origin = { 147.03095627334062, -119.19046847456738 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Zone space_3(
@@ -2330,7 +2330,7 @@ annotation (choicesAllMatching = true);
final azi={ 135, 0, 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 59.265565867846384, 166.54639161165068 },
+ Placement(transformation(origin = { -35.92846770835003, -182.3798370137605 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2341,7 +2341,7 @@ annotation (choicesAllMatching = true);
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -181.62339936620188, 19.592955768526235 },
+ Placement(transformation(origin = { -75.6710243947146, 199.99999999999997 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_3(
@@ -2349,7 +2349,7 @@ annotation (choicesAllMatching = true);
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { 172.0999347435368, 90.49175798853952 },
+ Placement(transformation(origin = { -114.04654751964804, 129.8563034560358 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.InternalWall internal_space_1_space_2
@@ -2396,24 +2396,24 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
ideas_free_float_three_zones.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -81.37617343048075, 186.05447220655606 },
+ Placement(transformation(origin = { 6.329592036983727, 199.0710029658833 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1:4],merged_w1_1_w2_1_w3_1_w4_1[1:4].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 46.73870468895989, 0.0 } ,{ 46.73870468895989, -156.1410784003279 } ,{ 93.47740937791978, -156.1410784003279 } },
+points={{ 0.0, 0.0 } ,{ -83.63987642936469, 0.0 } ,{ -83.63987642936469, -118.81654587972075 } ,{ -167.27975285872938, -118.81654587972075 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[5:6],merged_win1_1_win2_1[1:2].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 15.19631728414165, 0.0 } ,{ 15.19631728414165, -196.91186686603677 } ,{ 30.3926345682833, -196.91186686603677 } },
+points={{ 0.0, 0.0 } ,{ 34.53986506965856, 0.0 } ,{ 34.53986506965856, 169.57209060205432 } ,{ 69.07973013931712, 169.57209060205432 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[7],floor_1.propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -1.2854608883974967, 0.0 } ,{ -1.2854608883974967, 195.11798912547258 } ,{ -2.5709217767949935, 195.11798912547258 } },
+points={{ 0.0, 0.0 } ,{ 98.89731352774655, 0.0 } ,{ 98.89731352774655, 11.956592407483017 } ,{ 197.7946270554931, 11.956592407483017 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.propsBus[8],internal_space_1_space_2.propsBus_a)
@@ -2428,17 +2428,17 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_2.propsBus[1:3],merged_w1_2_w2_2_w3_2[1:3].propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 50.56341046908108, 150.0 } ,{ 50.56341046908108, 75.53860508708064 } ,{ -148.87317906183785, 75.53860508708064 } },
+points={{ 250.0, 150.0 } ,{ 172.00652222081422, 150.0 } ,{ 172.0065222208142, -173.01481557991818 } ,{ 94.01304444162842, -173.01481557991818 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.propsBus[4:5],merged_win1_2_win2_2[1:2].propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 34.779837968761115, 150.0 } ,{ 34.779837968761086, -51.92328524501739 } ,{ -180.4403240624778, -51.92328524501739 } },
+points={{ 250.0, 150.0 } ,{ 192.14983859017775, 150.0 } ,{ 192.14983859017775, 142.7498382244773 } ,{ 134.29967718035553, 142.7498382244773 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.propsBus[6],floor_2.propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 104.78182909428548, 150.0 } ,{ 104.78182909428546, -182.10271698566092 } ,{ -40.43634181142905, -182.10271698566092 } },
+points={{ 250.0, 150.0 } ,{ 198.5154781366703, 150.0 } ,{ 198.5154781366703, -119.19046847456738 } ,{ 147.03095627334062, -119.19046847456738 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_2.propsBus[7],internal_space_1_space_2.propsBus_b)
@@ -2453,17 +2453,17 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_3.propsBus[1:3],merged_w1_3_w2_3_w3_3[1:3].propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 279.6327829339232, 150.0 } ,{ 279.6327829339232, 166.54639161165068 } ,{ 59.265565867846384, 166.54639161165068 } },
+points={{ 500.0, 150.0 } ,{ 232.035766145825, 150.0 } ,{ 232.035766145825, -182.3798370137605 } ,{ -35.92846770835003, -182.3798370137605 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_3.propsBus[4],merged_w4_3[1].propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 159.18830031689907, 150.0 } ,{ 159.18830031689905, 19.592955768526235 } ,{ -181.62339936620188, 19.592955768526235 } },
+points={{ 500.0, 150.0 } ,{ 212.16448780264273, 150.0 } ,{ 212.16448780264267, 199.99999999999997 } ,{ -75.6710243947146, 199.99999999999997 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_3.propsBus[5],floor_3.propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 336.0499673717684, 150.0 } ,{ 336.0499673717684, 90.49175798853952 } ,{ 172.0999347435368, 90.49175798853952 } },
+points={{ 500.0, 150.0 } ,{ 192.976726240176, 150.0 } ,{ 192.97672624017596, 129.8563034560358 } ,{ -114.04654751964804, 129.8563034560358 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_3.propsBus[6],internal_space_1_space_3.propsBus_b)
@@ -2478,33 +2478,33 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -40.688086715240374, 0.0 } ,{ -40.688086715240374, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 0.0, 0.0 } ,{ 3.1647960184918635, 0.0 } ,{ 3.1647960184918635, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -40.688086715240374, 0.0 } ,{ -40.688086715240374, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 0.0, 0.0 } ,{ 3.1647960184918635, 0.0 } ,{ 3.1647960184918635, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.gainCon,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 84.31191328475961, 150.0 } ,{ 84.31191328475964, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 250.0, 150.0 } ,{ 128.16479601849187, 150.0 } ,{ 128.16479601849187, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 84.31191328475961, 150.0 } ,{ 84.31191328475964, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 250.0, 150.0 } ,{ 128.16479601849187, 150.0 } ,{ 128.16479601849187, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.gainCon,data_bus.port[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 209.3119132847596, 150.0 } ,{ 209.31191328475964, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 500.0, 150.0 } ,{ 253.16479601849187, 150.0 } ,{ 253.16479601849187, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.ports[1],data_bus.port_a[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 209.3119132847596, 150.0 } ,{ 209.31191328475964, 186.05447220655606 } ,{ -81.37617343048075, 186.05447220655606 } },
+points={{ 500.0, 150.0 } ,{ 253.16479601849187, 150.0 } ,{ 253.16479601849187, 199.0710029658833 } ,{ 6.329592036983727, 199.0710029658833 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-231.62339936620188,-246.91186686603677},{550.0,250.0}})), Icon(
- coordinateSystem(extent={{-231.62339936620188,-246.91186686603677},{550.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-217.27975285872938,-232.3798370137605},{550.0,250.0}})), Icon(
+ coordinateSystem(extent={{-217.27975285872938,-232.3798370137605},{550.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | win1_1 | 10.0 | 45.0 | wall | | Window | win2_1 | 10.0 | 90.0 | wall | | Window | floor_1 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 90.0 | wall | | ExternalWall | win1_2 | 10.0 | 0.0 | wall | | Window | win2_2 | 10.0 | 90.0 | wall | | Window | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_3 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_3 | 10.0 | 135.0 | wall | | ExternalWall | w2_3 | 10.0 | 0.0 | wall | | ExternalWall | w3_3 | 10.0 | 45.0 | wall | | ExternalWall | w4_3 | 10.0 | 45.0 | wall | | Window | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | win1_1 | 10.0 | 45.0 | wall | | win2_1 | 10.0 | 90.0 | wall | | floor_1 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_1_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 90.0 | wall | | win1_2 | 10.0 | 0.0 | wall | | win2_2 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_3 |
---|
parameters | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_3 | 10.0 | 135.0 | wall | | w2_3 | 10.0 | 0.0 | wall | | w3_3 | 10.0 | 45.0 | wall | | w4_3 | 10.0 | 45.0 | wall | | floor_3 | 10.0 | 90.0 | floor | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end ideas_free_float_three_zones;
+end ideas_free_float_three_zones;
\ No newline at end of file
diff --git a/tests/data/ideas_simple_hydronic_no_occupancy.mo b/tests/data/ideas_simple_hydronic_no_occupancy.mo
index ab8a973..0f69c53 100644
--- a/tests/data/ideas_simple_hydronic_no_occupancy.mo
+++ b/tests/data/ideas_simple_hydronic_no_occupancy.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -463,14 +463,14 @@ end EmissionControlEmission_control;
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -496,18 +496,18 @@ connect(dataBus.TAirOutBoiler, lesThrTOut.u);
connect(dataBus.yBoiConBoiler, booToReaBoi.y);
connect(dataBus.yPumBoiBoiler, booToReaPum.y);
end BoilerControlBoiler_control;
-
+
model CollectorControlPump_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=1)
@@ -551,12 +551,12 @@ port_a(redeclare package Medium
iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Controls.BaseClasses.DataBus dataBus
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_control
- (y=298.15);
Modelica.Blocks.Sources.RealExpression
TColSetThree_way_valve_control
(y=363.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetEmission_control
+ (y=298.15);
Modelica.Blocks.Sources.RealExpression
TAirOutBoiler_control
(y=0.0);
@@ -568,16 +568,16 @@ connect(port[1],TRoo[1]. port);
connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
-connect(dataBus.TCooSetSpace_1,
-TCooSetEmission_control.y);
connect(dataBus.TColSetThree_way_valve_control,
TColSetThree_way_valve_control.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetEmission_control.y);
connect(dataBus.TAirOutBoiler,
TAirOutBoiler_control.y);
connect(dataBus.triggerThree_way_valve_control,
triggerThree_way_valve_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1009,7 +1009,7 @@ connect(dataBus.yPumBoiBoiler, pumBoi.y);
connect(dataBus.TStoTopBoiler, tanTemTop.T);
connect(dataBus.TStoBotBoiler, tanTemBot.T);
end BoilerWithStorageBoiler;
-
+
end Boilers;
@@ -2205,7 +2205,7 @@ connect(dataBus.yPump, pumRad.y);
connect(dataBus.y_gainPump, gain.y);
connect(dataBus.TPump_control, temSup.T);
end PumpPump;
-
+
end Ventilation;
end Fluid;
@@ -2341,11 +2341,6 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
@@ -2361,6 +2356,11 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
package Constructions "Library of building envelope constructions" record external_wall
"external_wall"
@@ -2436,7 +2436,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 82.14467348101023, -168.77250906674882 },
+ Placement(transformation(origin = { 173.4288963238779, 114.58698269331764 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2447,7 +2447,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 24.294324483186408, 186.48340135015937 },
+ Placement(transformation(origin = { 49.518288259372156, -193.83090730633538 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_2(
@@ -2455,25 +2455,25 @@ package MediumW = IDEAS.Media.Water "Medium model";
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { -138.92523916747783, 102.03086468809069 },
+ Placement(transformation(origin = { -90.98853934534476, 182.13579759030327 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2482,15 +2482,15 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
IDEAS.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2500,7 +2500,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
ideas_simple_hydronic_no_occupancy.Common.Controls.ventilation.EmissionControlEmission_control
emission_control annotation (
- Placement(transformation(origin = { -127.22496229106049, 163.71714571781166 },
+ Placement(transformation(origin = { 199.99999999999997, -42.16541722090006 },
extent = {{-10, -10}, {10, 10}}
)));
inner IDEAS.BoundaryConditions.SimInfoManager
@@ -2521,15 +2521,15 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
three_way_valve(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -200, -275 },
@@ -2542,9 +2542,9 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.FixedResistances.Junction split_valve (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -2556,31 +2556,31 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
ideas_simple_hydronic_no_occupancy.Common.Fluid.Boilers.
BoilerWithStorageBoiler boiler(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=2000,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.03571428571428571,
+ linearizeFlowResistance=false,
nominal_mass_flow_radiator_loop=0.07142857142857142,
- V_flow=0.03571428571428571/1000*{0.5,1}
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { 230, -275 },
extent = {{-10, -10}, {10, 10}}
)));
ideas_simple_hydronic_no_occupancy.Common.Controls.ventilation.BoilerControlBoiler_control
- boiler_control( TSup_nominal=353.15,
- threshold_outdoor_air_cutoff=288.15,
- threshold_to_switch_off_boiler=288.15
+ boiler_control( threshold_outdoor_air_cutoff=288.15,
+ threshold_to_switch_off_boiler=288.15,
+ TSup_nominal=353.15
) annotation (
Placement(transformation(origin = { 180, -275 },
extent = {{-10, -10}, {10, 10}}
@@ -2588,8 +2588,8 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
ideas_simple_hydronic_no_occupancy.Common.
Fluid.Ventilation.PumpPump
pump(
- m_flow_nominal=0.008,
- dp_nominal=10000
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -2605,24 +2605,24 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
ideas_simple_hydronic_no_occupancy.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -49.258480576665924, 191.3740790564722 },
+ Placement(transformation(origin = { -168.36770912672162, -69.42603105218564 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1:4],merged_w1_1_w2_1_w3_1_w4_1[1:4].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 41.072336740505115, 0.0 } ,{ 41.072336740505115, -168.77250906674882 } ,{ 82.14467348101023, -168.77250906674882 } },
+points={{ 0.0, 0.0 } ,{ 86.71444816193895, 0.0 } ,{ 86.71444816193895, 114.58698269331764 } ,{ 173.4288963238779, 114.58698269331764 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[5],merged_win1_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 12.147162241593204, 0.0 } ,{ 12.147162241593204, 186.48340135015937 } ,{ 24.294324483186408, 186.48340135015937 } },
+points={{ 0.0, 0.0 } ,{ 24.759144129686078, 0.0 } ,{ 24.759144129686078, -193.83090730633538 } ,{ 49.518288259372156, -193.83090730633538 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[6],floor_2.propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -69.46261958373891, 0.0 } ,{ -69.46261958373891, 102.03086468809069 } ,{ -138.92523916747783, 102.03086468809069 } },
+points={{ 0.0, 0.0 } ,{ -45.49426967267238, 0.0 } ,{ -45.49426967267238, 182.13579759030327 } ,{ -90.98853934534476, 182.13579759030327 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.gainCon,emission.heatPortCon)
@@ -2642,7 +2642,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.y,emission_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ -63.612481145530246, -75.0 } ,{ -63.612481145530246, 163.71714571781166 } ,{ -127.22496229106049, 163.71714571781166 } },
+points={{ 0.0, -75.0 } ,{ 99.99999999999999, -75.0 } ,{ 99.99999999999999, -42.16541722090006 } ,{ 199.99999999999997, -42.16541722090006 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.port_b,emission.port_a)
@@ -2702,33 +2702,33 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -127.22496229106049, 163.71714571781166 } ,{ -88.2417214338632, 163.71714571781166 } ,{ -88.2417214338632, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ 199.99999999999997, -42.16541722090006 } ,{ 15.816145436639175, -42.16541722090006 } ,{ 15.816145436639175, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -149.62924028833297, -275.0 } ,{ -149.62924028833297, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ -250.0, -275.0 } ,{ -209.1838545633608, -275.0 } ,{ -209.1838545633608, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None)); connect(boiler_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 180.0, -275.0 } ,{ 65.37075971166703, -275.0 } ,{ 65.37075971166703, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ 180.0, -275.0 } ,{ 5.816145436639204, -275.0 } ,{ 5.816145436639175, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None)); connect(pump_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -199.62924028833297, -375.0 } ,{ -199.62924028833297, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ -350.0, -375.0 } ,{ -259.1838545633608, -375.0 } ,{ -259.1838545633608, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -24.629240288332962, 0.0 } ,{ -24.629240288332962, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ 0.0, 0.0 } ,{ -84.18385456336081, 0.0 } ,{ -84.18385456336081, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -24.629240288332962, 0.0 } ,{ -24.629240288332962, 191.3740790564722 } ,{ -49.258480576665924, 191.3740790564722 } },
+points={{ 0.0, 0.0 } ,{ -84.18385456336081, 0.0 } ,{ -84.18385456336081, -69.42603105218564 } ,{ -168.36770912672162, -69.42603105218564 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-400.0,-425.0},{280.0,250.0}})), Icon(
coordinateSystem(extent={{-400.0,-425.0},{280.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
emissions | name | parameters | type |
---|
valve | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 2000 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.03571428571428571 |
---|
nominal_mass_flow_radiator_loop | 0.07142857142857142 |
---|
V_flow | 0.03571428571428571/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
emissions | name | parameters |
---|
valve | | emission | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end ideas_simple_hydronic_no_occupancy;
+end ideas_simple_hydronic_no_occupancy;
\ No newline at end of file
diff --git a/tests/data/ideas_simple_hydronic_three_zones.mo b/tests/data/ideas_simple_hydronic_three_zones.mo
index b5565b4..b8a0ef0 100644
--- a/tests/data/ideas_simple_hydronic_three_zones.mo
+++ b/tests/data/ideas_simple_hydronic_three_zones.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,20 +467,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model EmissionControlEmission_valve_control_2
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -531,20 +531,20 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model EmissionControlEmission_valve_control_3
parameter Real schedule[:]=3600*{7,19};
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -595,19 +595,19 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_3, occSch2.occupied);
end OccupancyOccupancy_2;
-
+
model ThreeWayValveControlThree_way_valve_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -625,14 +625,14 @@ annotation (Line(points={{10,0},{110,0}}, color={0,0,127})); connect(u, conVal.
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conVal(
controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{-12,-10},{8,10}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealInput u
@@ -658,18 +658,18 @@ connect(dataBus.TAirOutBoiler, lesThrTOut.u);
connect(dataBus.yBoiConBoiler, booToReaBoi.y);
connect(dataBus.yPumBoiBoiler, booToReaPum.y);
end BoilerControlBoilercontrol;
-
+
model CollectorControlPump_control
Buildings.Controls.OBC.CDL.Reals.PIDWithReset
conPum( controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- k=1,
- Ti=0.5,
- Td=0.1,
- r=1,
- yMax=1,
- yMin=0,
+ k=1.0,
+ Nd=10.0,
Ni=0.9,
- Nd=10
+ r=1.0,
+ Td=0.1,
+ Ti=0.5,
+ yMax=1.0,
+ yMin=0.0
) "Controller for pump"
annotation (Placement(transformation(extent={{54,-10},{74,10}})));Buildings.Controls.OBC.CDL.Reals.MultiMax
mulMax(nin=3)
@@ -716,7 +716,10 @@ iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Cont
annotation (Placement(transformation(
extent={{-120,-18},{-80,22}}), iconTransformation(extent={{-120,62},{-78,98}})));
Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_valve_control
+ TColSetThree_way_valve_control
+ (y=363.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetEmission_valve_control_2
(y=298.15);
Modelica.Blocks.Sources.RealExpression
TAirOutBoilercontrol
@@ -725,14 +728,11 @@ Modelica.Blocks.Sources.RealExpression
TCooSetEmission_valve_control_3
(y=298.15);
Modelica.Blocks.Sources.RealExpression
- TColSetThree_way_valve_control_2
- (y=363.15);
+ TCooSetEmission_valve_control
+ (y=298.15);
Modelica.Blocks.Sources.RealExpression
- TColSetThree_way_valve_control
+ TColSetThree_way_valve_control_2
(y=363.15);
-Modelica.Blocks.Sources.RealExpression
- TCooSetEmission_valve_control_2
- (y=298.15);
Modelica.Blocks.Sources.BooleanExpression
triggerThree_way_valve_control_2
(y=true);
@@ -752,24 +752,24 @@ connect(dataBus.TZonSpace_3, TRoo[3].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
connect(dataBus.ppmCO2Space_3, TRoo1[3].ppm);
-connect(dataBus.TCooSetSpace_1,
-TCooSetEmission_valve_control.y);
+connect(dataBus.TColSetThree_way_valve_control,
+TColSetThree_way_valve_control.y);
+connect(dataBus.TCooSetSpace_2,
+TCooSetEmission_valve_control_2.y);
connect(dataBus.TAirOutBoiler,
TAirOutBoilercontrol.y);
connect(dataBus.TCooSetSpace_3,
TCooSetEmission_valve_control_3.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetEmission_valve_control.y);
connect(dataBus.TColSetThree_way_valve_control_2,
TColSetThree_way_valve_control_2.y);
-connect(dataBus.TColSetThree_way_valve_control,
-TColSetThree_way_valve_control.y);
-connect(dataBus.TCooSetSpace_2,
-TCooSetEmission_valve_control_2.y);
connect(dataBus.triggerThree_way_valve_control_2,
triggerThree_way_valve_control_2.y);
connect(dataBus.triggerThree_way_valve_control,
triggerThree_way_valve_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -1201,7 +1201,7 @@ connect(dataBus.yPumBoiBoiler, pumBoi.y);
connect(dataBus.TStoTopBoiler, tanTemTop.T);
connect(dataBus.TStoBotBoiler, tanTemBot.T);
end BoilerWithStorageBoiler;
-
+
end Boilers;
@@ -2397,7 +2397,7 @@ connect(dataBus.yPump, pumRad.y);
connect(dataBus.y_gainPump, gain.y);
connect(dataBus.TPump_control, temSup.T);
end PumpPump;
-
+
end Ventilation;
end Fluid;
@@ -2533,45 +2533,45 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
rho=2240.0,
epsLw=0.88,
- epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.89,
- c=790.0,
- rho=1920.0,
- epsLw=0.88,
epsSw=0.55); record plywood = IDEAS.Buildings.Data.Interfaces.Material (
k=0.12,
c=1210.0,
rho=540.0,
epsLw=0.88,
+ epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.89,
+ c=790.0,
+ rho=1920.0,
+ epsLw=0.88,
epsSw=0.55); record Air = IDEAS.Buildings.Data.Interfaces.Material (
k=0.025,
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
-package Constructions "Library of building envelope constructions" record internal_wall
- "internal_wall"
- extends IDEAS.Buildings.Data.Interfaces.Construction(
- mats={ideas_simple_hydronic_three_zones.Data.Materials.brick
- (d=0.2) });
- end internal_wall; record external_wall
+package Constructions "Library of building envelope constructions" record external_wall
"external_wall"
extends IDEAS.Buildings.Data.Interfaces.Construction(
mats={ideas_simple_hydronic_three_zones.Data.Materials.concrete
(d=0.2),ideas_simple_hydronic_three_zones.Data.Materials.insulation_board
(d=0.02),ideas_simple_hydronic_three_zones.Data.Materials.plywood
(d=0.1) });
- end external_wall;
+ end external_wall; record internal_wall
+ "internal_wall"
+ extends IDEAS.Buildings.Data.Interfaces.Construction(
+ mats={ideas_simple_hydronic_three_zones.Data.Materials.brick
+ (d=0.2) });
+ end internal_wall;
end Constructions;
end Data;
model building
@@ -2638,7 +2638,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 135.24191708356662, -158.79808031297668 },
+ Placement(transformation(origin = { -156.95479430033336, 137.64183020694415 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2649,7 +2649,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -27.000406849588828, -193.2623823993902 },
+ Placement(transformation(origin = { 82.10023499410174, -167.9377173549875 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_2(
@@ -2657,25 +2657,25 @@ package MediumW = IDEAS.Media.Water "Medium model";
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { 46.05702631328573, 194.037971063514 },
+ Placement(transformation(origin = { 60.269854461348544, -189.5282329201824 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2684,15 +2684,15 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
IDEAS.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2702,13 +2702,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control
emission_valve_control annotation (
- Placement(transformation(origin = { -127.98146284681098, -138.77015938734382 },
+ Placement(transformation(origin = { 191.85049542841753, 24.589622281375085 },
extent = {{-10, -10}, {10, 10}}
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2733,7 +2733,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 94.8143886346521, -166.6390402319848 },
+ Placement(transformation(origin = { -14.024183025011915, 184.08887435065537 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2744,7 +2744,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 154.80278289855528, 146.42587761181753 },
+ Placement(transformation(origin = { 183.5220259889676, -6.216953836621466 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_3(
@@ -2752,25 +2752,25 @@ package MediumW = IDEAS.Media.Water "Medium model";
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { -50.15991149354098, -171.74617451462058 },
+ Placement(transformation(origin = { 46.923084567566946, 163.0187830043084 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission_2(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2779,15 +2779,15 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
IDEAS.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_2(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2797,13 +2797,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control_2
emission_valve_control_2 annotation (
- Placement(transformation(origin = { -195.69675717553068, 20.545946023448664 },
+ Placement(transformation(origin = { -167.95603791619206, 29.667844658388514 },
extent = {{-10, -10}, {10, 10}}
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2828,7 +2828,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 135, 0, 45, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -162.3137352450054, 96.02975694189372 },
+ Placement(transformation(origin = { 111.92209294543088, -162.58545445323375 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2839,7 +2839,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -79.58730506158766, -178.45686249914093 },
+ Placement(transformation(origin = { 182.409327476784, -68.85129548151758 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_4(
@@ -2847,25 +2847,25 @@ package MediumW = IDEAS.Media.Water "Medium model";
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { 151.30011097782935, -117.91632546734267 },
+ Placement(transformation(origin = { -7.240210315522162, -200.0 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.HeatExchangers.Radiators.
RadiatorEN442_2 emission_3(
- nEle=1,
- fraRad=0.3,
- Q_flow_nominal=2000,
- T_a_nominal=363.15,
- T_b_nominal=353.15,
- TAir_nominal=293.15,
- TRad_nominal=293.15,
+ TAir_nominal=293.15,
+ dp_nominal=0.0,
n=1.24,
deltaM=0.01,
- from_dp=false,
- dp_nominal=0,
+ fraRad=0.3,
+ Q_flow_nominal=2000.0,
+ nEle=1,
+ TRad_nominal=293.15,
linearized=false,
- VWat=0.116,
- mDry=52.6
+ from_dp=false,
+ T_a_nominal=363.15,
+ T_b_nominal=353.15,
+ mDry=52.6,
+ VWat=0.116
,
redeclare package Medium = MediumW,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Radiator" annotation (
@@ -2874,15 +2874,15 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
IDEAS.Fluid.Actuators.Valves.TwoWayEqualPercentage
valve_3(
- R=50,
- delta0=0.01,
- dpFixed_nominal=6000,
- l=0.0001,
- from_dp=true,
- linearized=false,
+ dpFixed_nominal=6000.0,
+ dpValve_nominal=6000.0,
deltaM=0.02,
m_flow_nominal=0.01,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized=false,
+ from_dp=true,
+ l=0.0001
,
redeclare package Medium = MediumW
@@ -2892,13 +2892,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.EmissionControlEmission_valve_control_3
emission_valve_control_3 annotation (
- Placement(transformation(origin = { 195.514897578814, 35.41076852931536 },
+ Placement(transformation(origin = { -183.9260027267829, 90.7895042490696 },
extent = {{-10, -10}, {10, 10}}
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.OccupancyOccupancy_2
- occupancy_2( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_2( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 450, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2954,15 +2954,15 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
three_way_valve(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { -200, -275 },
@@ -2984,15 +2984,15 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
three_way_valve_2(
redeclare package Medium = MediumW,
use_inputFilter=false,
- R=50,
- delta0=0.01,
- dpFixed_nominal={100,0},
+ dpFixed_nominal={100,0},
+ dpValve_nominal=6000.0,
fraK=0.7,
- l={0.01,0.01},
deltaM=0.02,
- linearized={false, false},
m_flow_nominal=0.0078,
- dpValve_nominal=6000
+ delta0=0.01,
+ R=50.0,
+ linearized={false, false},
+ l={0.01,0.01}
,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Three-wayvalve" annotation (
Placement(transformation(origin = { 300, -125 },
@@ -3005,9 +3005,9 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.FixedResistances.Junction split_valve (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -3017,9 +3017,9 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Fluid.FixedResistances.Junction split_valve_2 (
- m_flow_nominal=0.008*{1, -1, -1},
- dp_nominal={10000,-1,-1},
+ dp_nominal={10000,-1,-1},
deltaM=0.3,
+ m_flow_nominal=0.008*{1,-1,-1},
linearized=false
,
redeclare package Medium = MediumW,
@@ -3031,31 +3031,31 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
ideas_simple_hydronic_three_zones.Common.Fluid.Boilers.
BoilerWithStorageBoiler boiler(
a={0.9},
+ dp=(3000 + 2000)*{2,1},
+ dp_nominal=5000.0,
effCur=Buildings.Fluid.Types.EfficiencyCurves.Constant,
- T_nominal=353.15,
- fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
- Q_flow_nominal=2000,
- dp_nominal=5000,
- linearizeFlowResistance=false,
deltaM=0.1,
+ fue=Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue(),
+ hTan=2.0,
show_T=false,
- VTan=0.2,
- hTan=2,
+ Q_flow_nominal=2000.0,
nSeg=4,
+ VTan=0.2,
+ T_nominal=353.15,
dIns=0.002,
- dp=(3000 + 2000)*{2,1},
- nominal_mass_flow_rate_boiler=0.03571428571428571,
+ linearizeFlowResistance=false,
nominal_mass_flow_radiator_loop=0.07142857142857142,
- V_flow=0.03571428571428571/1000*{0.5,1}
+ nominal_mass_flow_rate_boiler=0.07142857142857142,
+ V_flow=0.07142857142857142/1000*{0.5,1}
,
redeclare package MediumW = MediumW) "Boiler" annotation (
Placement(transformation(origin = { 230, -275 },
extent = {{-10, -10}, {10, 10}}
)));
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.BoilerControlBoilercontrol
- BoilerControl( TSup_nominal=353.15,
- threshold_outdoor_air_cutoff=288.15,
- threshold_to_switch_off_boiler=288.15
+ BoilerControl( threshold_outdoor_air_cutoff=288.15,
+ threshold_to_switch_off_boiler=288.15,
+ TSup_nominal=353.15
) annotation (
Placement(transformation(origin = { 180, -275 },
extent = {{-10, -10}, {10, 10}}
@@ -3063,8 +3063,8 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
ideas_simple_hydronic_three_zones.Common.
Fluid.Ventilation.PumpPump
pump(
- m_flow_nominal=0.008,
- dp_nominal=10000
+ dp_nominal=10000.0,
+ m_flow_nominal=0.008
,
redeclare package Medium = MediumW
@@ -3080,24 +3080,24 @@ redeclare package MediumW = MediumW) "Boiler" annotation (
ideas_simple_hydronic_three_zones.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 73.88878445320762, 145.27789740746704 },
+ Placement(transformation(origin = { -197.3857058354017, -0.551407233275319 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1:4],merged_w1_1_w2_1_w3_1_w4_1[1:4].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 67.62095854178331, 0.0 } ,{ 67.62095854178331, -158.79808031297668 } ,{ 135.24191708356662, -158.79808031297668 } },
+points={{ 0.0, 0.0 } ,{ -78.47739715016668, 0.0 } ,{ -78.47739715016668, 137.64183020694415 } ,{ -156.95479430033336, 137.64183020694415 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[5],merged_win1_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -13.500203424794414, 0.0 } ,{ -13.500203424794414, -193.2623823993902 } ,{ -27.000406849588828, -193.2623823993902 } },
+points={{ 0.0, 0.0 } ,{ 41.05011749705087, 0.0 } ,{ 41.05011749705087, -167.9377173549875 } ,{ 82.10023499410174, -167.9377173549875 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[6],floor_2.propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 23.028513156642866, 0.0 } ,{ 23.028513156642866, 194.037971063514 } ,{ 46.05702631328573, 194.037971063514 } },
+points={{ 0.0, 0.0 } ,{ 30.134927230674272, 0.0 } ,{ 30.134927230674272, -189.5282329201824 } ,{ 60.269854461348544, -189.5282329201824 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.gainCon,emission.heatPortCon)
@@ -3132,7 +3132,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.y,emission_valve_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ -63.99073142340549, -75.0 } ,{ -63.99073142340549, -138.77015938734382 } ,{ -127.98146284681098, -138.77015938734382 } },
+points={{ 0.0, -75.0 } ,{ 95.92524771420877, -75.0 } ,{ 95.92524771420877, 24.589622281375085 } ,{ 191.85049542841753, 24.589622281375085 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve.port_b,emission.port_a)
@@ -3142,17 +3142,17 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.propsBus[1:4],merged_w1_2_w2_2_w3_2_w4_2[1:4].propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 172.40719431732606, 150.0 } ,{ 172.40719431732606, -166.6390402319848 } ,{ 94.8143886346521, -166.6390402319848 } },
+points={{ 250.0, 150.0 } ,{ 117.98790848749405, 150.0 } ,{ 117.98790848749402, 184.08887435065537 } ,{ -14.024183025011915, 184.08887435065537 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.propsBus[5],merged_win1_2[1].propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 202.40139144927764, 150.0 } ,{ 202.40139144927764, 146.42587761181753 } ,{ 154.80278289855528, 146.42587761181753 } },
+points={{ 250.0, 150.0 } ,{ 216.7610129944838, 150.0 } ,{ 216.7610129944838, -6.216953836621466 } ,{ 183.5220259889676, -6.216953836621466 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.propsBus[6],floor_3.propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 99.92004425322952, 150.0 } ,{ 99.92004425322949, -171.74617451462058 } ,{ -50.15991149354098, -171.74617451462058 } },
+points={{ 250.0, 150.0 } ,{ 148.46154228378347, 150.0 } ,{ 148.46154228378347, 163.0187830043084 } ,{ 46.923084567566946, 163.0187830043084 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_2.gainCon,emission_2.heatPortCon)
@@ -3187,7 +3187,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.y,emission_valve_control_2.y)
annotation (Line(
-points={{ 250.0, 75.0 } ,{ 27.151621412234647, 75.0 } ,{ 27.151621412234675, 20.545946023448664 } ,{ -195.69675717553068, 20.545946023448664 } },
+points={{ 250.0, 75.0 } ,{ 41.021981041903985, 75.0 } ,{ 41.021981041903956, 29.667844658388514 } ,{ -167.95603791619206, 29.667844658388514 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_2.port_b,emission_2.port_a)
@@ -3197,17 +3197,17 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_3.propsBus[1:4],merged_w1_3_w2_3_w3_3_w4_3[1:4].propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 168.84313237749728, 150.0 } ,{ 168.8431323774973, 96.02975694189372 } ,{ -162.3137352450054, 96.02975694189372 } },
+points={{ 500.0, 150.0 } ,{ 305.96104647271545, 150.0 } ,{ 305.96104647271545, -162.58545445323375 } ,{ 111.92209294543088, -162.58545445323375 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_3.propsBus[5],merged_win1_3[1].propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 210.20634746920615, 150.0 } ,{ 210.2063474692062, -178.45686249914093 } ,{ -79.58730506158766, -178.45686249914093 } },
+points={{ 500.0, 150.0 } ,{ 341.204663738392, 150.0 } ,{ 341.204663738392, -68.85129548151758 } ,{ 182.409327476784, -68.85129548151758 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_3.propsBus[6],floor_4.propsBus_a)
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 325.6500554889147, 150.0 } ,{ 325.65005548891463, -117.91632546734267 } ,{ 151.30011097782935, -117.91632546734267 } },
+points={{ 500.0, 150.0 } ,{ 246.3798948422389, 150.0 } ,{ 246.3798948422389, -200.0 } ,{ -7.240210315522162, -200.0 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_3.gainCon,emission_3.heatPortCon)
@@ -3242,7 +3242,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.y,emission_valve_control_3.y)
annotation (Line(
-points={{ 500.0, 75.0 } ,{ 347.757448789407, 75.0 } ,{ 347.757448789407, 35.41076852931536 } ,{ 195.514897578814, 35.41076852931536 } },
+points={{ 500.0, 75.0 } ,{ 158.03699863660853, 75.0 } ,{ 158.03699863660856, 90.7895042490696 } ,{ -183.9260027267829, 90.7895042490696 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(valve_3.port_b,emission_3.port_a)
@@ -3342,73 +3342,73 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -127.98146284681098, -138.77015938734382 } ,{ -27.046339196801682, -138.77015938734382 } ,{ -27.046339196801682, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 191.85049542841753, 24.589622281375085 } ,{ -2.7676052034920815, 24.589622281375085 } ,{ -2.7676052034920815, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 11.94439222660381, 0.0 } ,{ 11.94439222660381, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ -50.0, 0.0 } ,{ -123.69285291770085, 0.0 } ,{ -123.69285291770085, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(emission_valve_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -195.69675717553068, 20.545946023448664 } ,{ -60.90398636116154, 20.545946023448664 } ,{ -60.903986361161515, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ -167.95603791619206, 29.667844658388514 } ,{ -182.67087187579688, 29.667844658388514 } ,{ -182.67087187579688, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 136.9443922266038, 150.0 } ,{ 136.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 200.0, 150.0 } ,{ 1.3071470822991387, 150.0 } ,{ 1.307147082299167, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(emission_valve_control_3.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 195.514897578814, 35.41076852931536 } ,{ 134.7018410160108, 35.41076852931536 } ,{ 134.7018410160108, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ -183.9260027267829, 90.7895042490696 } ,{ -190.6558542810923, 90.7895042490696 } ,{ -190.6558542810923, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 450.0, 150.0 } ,{ 261.9443922266038, 150.0 } ,{ 261.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 450.0, 150.0 } ,{ 126.30714708229914, 150.0 } ,{ 126.30714708229917, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -250.0, -275.0 } ,{ -88.05560777339619, -275.0 } ,{ -88.05560777339619, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ -250.0, -275.0 } ,{ -223.69285291770086, -275.0 } ,{ -223.69285291770086, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(three_way_valve_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 250.0, -125.0 } ,{ 161.9443922266038, -125.0 } ,{ 161.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 250.0, -125.0 } ,{ 26.30714708229914, -125.0 } ,{ 26.307147082299167, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(BoilerControl.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 180.0, -275.0 } ,{ 126.94439222660381, -275.0 } ,{ 126.94439222660381, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 180.0, -275.0 } ,{ -8.692852917700861, -275.0 } ,{ -8.692852917700833, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(pump_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -350.0, -375.0 } ,{ -138.0556077733962, -375.0 } ,{ -138.0556077733962, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ -350.0, -375.0 } ,{ -273.69285291770086, -375.0 } ,{ -273.69285291770086, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 36.94439222660381, 0.0 } ,{ 36.94439222660381, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 0.0, 0.0 } ,{ -98.69285291770085, 0.0 } ,{ -98.69285291770085, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 36.94439222660381, 0.0 } ,{ 36.94439222660381, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 0.0, 0.0 } ,{ -98.69285291770085, 0.0 } ,{ -98.69285291770085, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.gainCon,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 161.9443922266038, 150.0 } ,{ 161.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 250.0, 150.0 } ,{ 26.30714708229914, 150.0 } ,{ 26.307147082299167, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 161.9443922266038, 150.0 } ,{ 161.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 250.0, 150.0 } ,{ 26.30714708229914, 150.0 } ,{ 26.307147082299167, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.gainCon,data_bus.port[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 286.9443922266038, 150.0 } ,{ 286.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 500.0, 150.0 } ,{ 151.30714708229914, 150.0 } ,{ 151.30714708229917, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_3.ports[1],data_bus.port_a[3])
annotation (Line(
-points={{ 500.0, 150.0 } ,{ 286.9443922266038, 150.0 } ,{ 286.9443922266038, 145.27789740746704 } ,{ 73.88878445320762, 145.27789740746704 } },
+points={{ 500.0, 150.0 } ,{ 151.30714708229914, 150.0 } ,{ 151.30714708229917, -0.551407233275319 } ,{ -197.3857058354017, -0.551407233275319 } },
thickness=0.05,
smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-400.0,-425.0},{680.0,250.0}})), Icon(
coordinateSystem(extent={{-400.0,-425.0},{680.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_2 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission_2 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_2 | 10.0 | 135.0 | wall | | ExternalWall | w2_2 | 10.0 | 0.0 | wall | | ExternalWall | w3_2 | 10.0 | 45.0 | wall | | ExternalWall | w4_2 | 10.0 | 90.0 | wall | | ExternalWall | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround | win1_2 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_3 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
valve_3 | R | 50.0 |
---|
delta0 | 0.01 |
---|
dpFixed_nominal | 6000.0 |
---|
l | 0.0001 |
---|
from_dp | true |
---|
linearized | false |
---|
deltaM | 0.02 |
---|
m_flow_nominal | 0.01 |
---|
dpValve_nominal | 6000.0 |
---|
| Valve | emission_3 | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_3 | 10.0 | 135.0 | wall | | ExternalWall | w2_3 | 10.0 | 0.0 | wall | | ExternalWall | w3_3 | 10.0 | 45.0 | wall | | ExternalWall | w4_3 | 10.0 | 90.0 | wall | | ExternalWall | floor_4 | 10.0 | 90.0 | floor | | FloorOnGround | win1_3 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | InternalElement | internal_space_2_space_3 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | boiler |
---|
parameters | scaFacRad | 1.5 |
---|
dTBoi_nominal | 20 |
---|
dTRad_nominal | 10 |
---|
a | {0.9} |
---|
effCur | Buildings.Fluid.Types.EfficiencyCurves.Constant |
---|
T_nominal | 353.15 |
---|
fue | Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue() |
---|
Q_flow_nominal | 2000 |
---|
dp_nominal | 5000 |
---|
linearizeFlowResistance | false |
---|
deltaM | 0.1 |
---|
show_T | false |
---|
VTan | 0.2 |
---|
hTan | 2 |
---|
nSeg | 4 |
---|
dIns | 0.002 |
---|
dp | (3000 + 2000)*{2,1} |
---|
nominal_mass_flow_rate_boiler | 0.03571428571428571 |
---|
nominal_mass_flow_radiator_loop | 0.07142857142857142 |
---|
V_flow | 0.03571428571428571/1000*{0.5,1} |
---|
|
---|
type | Boiler |
---|
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve | | emission | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_1_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_2 | | emission_2 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_2 | 10.0 | 135.0 | wall | | w2_2 | 10.0 | 0.0 | wall | | w3_2 | 10.0 | 45.0 | wall | | w4_2 | 10.0 | 90.0 | wall | | floor_3 | 10.0 | 90.0 | floor | | win1_2 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
name | space_3 |
---|
parameters | |
---|
occupancy | name | occupancy_2 |
---|
parameters | |
---|
|
---|
emissions | name | parameters |
---|
valve_3 | | emission_3 | |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_3 | 10.0 | 135.0 | wall | | w2_3 | 10.0 | 0.0 | wall | | w3_3 | 10.0 | 45.0 | wall | | w4_3 | 10.0 | 90.0 | wall | | floor_4 | 10.0 | 90.0 | floor | | win1_3 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_3 | 10.0 | 10.0 | wall | | internal_space_2_space_3 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end ideas_simple_hydronic_three_zones;
+end ideas_simple_hydronic_three_zones;
\ No newline at end of file
diff --git a/tests/data/multiple_internal_walls_buildings.mo b/tests/data/multiple_internal_walls_buildings.mo
index c610d69..f8e74c4 100644
--- a/tests/data/multiple_internal_walls_buildings.mo
+++ b/tests/data/multiple_internal_walls_buildings.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model OccupancyOccupancy_1
extends multiple_internal_walls_buildings.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -421,7 +421,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[2]
@@ -449,7 +449,7 @@ connect(dataBus.TZonSpace_2, TRoo[2].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2234,11 +2234,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.3,
- hRoo=3.75,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2256,20 +2256,20 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
multiple_internal_walls_buildings.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.3,
- hRoo=3.75,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2287,9 +2287,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
multiple_internal_walls_buildings.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2322,7 +2322,7 @@ parameter Integer nRoo = 2 "Number of rooms";
multiple_internal_walls_buildings.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 192.41395361164584, 0.3193533320693757 },
+ Placement(transformation(origin = { 21.282654215898773, 199.99999999999997 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2367,33 +2367,33 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 71.20697680582292, 0.0 } ,{ 71.20697680582292, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ -50.0, 0.0 } ,{ -14.358672892050613, 0.0 } ,{ -14.358672892050613, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 196.20697680582293, 150.0 } ,{ 196.20697680582293, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ 200.0, 150.0 } ,{ 110.6413271079494, 150.0 } ,{ 110.64132710794938, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 96.20697680582292, 0.0 } ,{ 96.20697680582292, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ 0.0, 0.0 } ,{ 10.641327107949387, 0.0 } ,{ 10.641327107949387, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 96.20697680582292, 0.0 } ,{ 96.20697680582292, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ 0.0, 0.0 } ,{ 10.641327107949387, 0.0 } ,{ 10.641327107949387, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 221.20697680582293, 150.0 } ,{ 221.20697680582293, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ 250.0, 150.0 } ,{ 135.6413271079494, 150.0 } ,{ 135.6413271079494, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 221.20697680582293, 150.0 } ,{ 221.20697680582293, 0.3193533320693757 } ,{ 192.41395361164584, 0.3193533320693757 } },
+points={{ 250.0, 150.0 } ,{ 135.6413271079494, 150.0 } ,{ 135.6413271079494, 199.99999999999997 } ,{ 21.282654215898773, 199.99999999999997 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-224.95624832327954,-149.4743392014778},{300.0,250.0}})), Icon(
- coordinateSystem(extent={{-224.95624832327954,-149.4743392014778},{300.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-232.15894052186385,-223.1249478644725},{300.0,250.0}})), Icon(
+ coordinateSystem(extent={{-232.15894052186385,-223.1249478644725},{300.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw | 13.0 | 90.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | InternalElement | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw_1 | 13.0 | 90.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | InternalElement | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw | 13.0 | 90.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw_1 | 13.0 | 90.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end multiple_internal_walls_buildings;
+end multiple_internal_walls_buildings;
\ No newline at end of file
diff --git a/tests/data/multiple_internal_walls_ideas.mo b/tests/data/multiple_internal_walls_ideas.mo
index cc96296..83dbc80 100644
--- a/tests/data/multiple_internal_walls_ideas.mo
+++ b/tests/data/multiple_internal_walls_ideas.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model OccupancyOccupancy_1
extends multiple_internal_walls_ideas.Common.Occupancy.SimpleOccupancy ;
Controls.BaseClasses.DataBus dataBus
@@ -421,7 +421,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[2]
@@ -449,7 +449,7 @@ connect(dataBus.TZonSpace_2, TRoo[2].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2152,31 +2152,31 @@ extends Modelica.Icons.MaterialPropertiesPackage;
end Glazing;
package Materials "Library of construction materials"
-extends Modelica.Icons.MaterialPropertiesPackage; record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
- epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
+extends Modelica.Icons.MaterialPropertiesPackage; record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
rho=2240.0,
epsLw=0.88,
- epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.89,
- c=790.0,
- rho=1920.0,
- epsLw=0.88,
epsSw=0.55); record plywood = IDEAS.Buildings.Data.Interfaces.Material (
k=0.12,
c=1210.0,
rho=540.0,
epsLw=0.88,
+ epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.89,
+ c=790.0,
+ rho=1920.0,
+ epsLw=0.88,
epsSw=0.55); record wood = IDEAS.Buildings.Data.Interfaces.Material (
k=0.131,
c=1000.0,
rho=600.0,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
package Constructions "Library of building envelope constructions" record internal_wall
"internal_wall"
@@ -2243,8 +2243,8 @@ package MediumW = IDEAS.Media.Water "Medium model";
IDEAS.Buildings.Components.Zone space_1(
- mSenFac=0.822,nPorts = 3, hZone=3.75,
- V=42.375
+ mSenFac=0.822,nPorts = 3, hZone=2.0,
+ V=40.0
,
n50=0.822*0.5*space_1.n50toAch,
redeclare package Medium = Medium,
@@ -2262,20 +2262,20 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -25.60106298118816, 190.09353306050326 },
+ Placement(transformation(origin = { 179.7560151492487, -99.61232277106406 },
extent = {{-10, -10}, {10, 10}}
)));
multiple_internal_walls_ideas.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Zone space_2(
- mSenFac=0.822,nPorts = 3, hZone=3.75,
- V=42.375
+ mSenFac=0.822,nPorts = 3, hZone=2.0,
+ V=40.0
,
n50=0.822*0.5*space_2.n50toAch,
redeclare package Medium = Medium,
@@ -2293,13 +2293,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 190.14203916212932, 87.87125062373863 },
+ Placement(transformation(origin = { -49.932807795314176, -187.7346305100684 },
extent = {{-10, -10}, {10, 10}}
)));
multiple_internal_walls_ideas.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2337,14 +2337,14 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
multiple_internal_walls_ideas.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -107.61111371376256, -173.17388316596563 },
+ Placement(transformation(origin = { -162.9591413243287, -134.04270416873322 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1],merged_bw[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -12.80053149059408, 0.0 } ,{ -12.80053149059408, 190.09353306050326 } ,{ -25.60106298118816, 190.09353306050326 } },
+points={{ 0.0, 0.0 } ,{ 89.87800757462435, 0.0 } ,{ 89.87800757462435, -99.61232277106406 } ,{ 179.7560151492487, -99.61232277106406 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.yOcc,occupancy_0.y)
@@ -2364,7 +2364,7 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_2.propsBus[1],merged_bw_1[1].propsBus_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 220.07101958106466, 150.0 } ,{ 220.07101958106466, 87.87125062373863 } ,{ 190.14203916212932, 87.87125062373863 } },
+points={{ 250.0, 150.0 } ,{ 100.03359610234293, 150.0 } ,{ 100.0335961023429, -187.7346305100684 } ,{ -49.932807795314176, -187.7346305100684 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.yOcc,occupancy_1.y)
@@ -2384,33 +2384,33 @@ color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -78.80555685688128, 0.0 } ,{ -78.80555685688128, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ -50.0, 0.0 } ,{ -106.47957066216435, 0.0 } ,{ -106.47957066216435, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 46.19444314311872, 150.0 } ,{ 46.19444314311872, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ 200.0, 150.0 } ,{ 18.52042933783565, 150.0 } ,{ 18.52042933783565, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -53.80555685688128, 0.0 } ,{ -53.80555685688128, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ 0.0, 0.0 } ,{ -81.47957066216435, 0.0 } ,{ -81.47957066216435, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -53.80555685688128, 0.0 } ,{ -53.80555685688128, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ 0.0, 0.0 } ,{ -81.47957066216435, 0.0 } ,{ -81.47957066216435, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.gainCon,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 71.19444314311872, 150.0 } ,{ 71.19444314311872, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ 250.0, 150.0 } ,{ 43.52042933783565, 150.0 } ,{ 43.52042933783565, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[1],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 71.19444314311872, 150.0 } ,{ 71.19444314311872, -173.17388316596563 } ,{ -107.61111371376256, -173.17388316596563 } },
+points={{ 250.0, 150.0 } ,{ 43.52042933783565, 150.0 } ,{ 43.52042933783565, -134.04270416873322 } ,{ -162.9591413243287, -134.04270416873322 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-157.61111371376256,-223.17388316596563},{300.0,250.0}})), Icon(
- coordinateSystem(extent={{-157.61111371376256,-223.17388316596563},{300.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-212.9591413243287,-237.7346305100684},{300.0,250.0}})), Icon(
+ coordinateSystem(extent={{-212.9591413243287,-237.7346305100684},{300.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw | 13.0 | 90.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | InternalElement | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw_1 | 13.0 | 90.0 | wall | | ExternalWall |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | InternalElement | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw | 13.0 | 90.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw_1 | 13.0 | 90.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2_1 | 10.0 | 45.0 | wall | | internal_space_1_space_2_2 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end multiple_internal_walls_ideas;
+end multiple_internal_walls_ideas;
\ No newline at end of file
diff --git a/tests/data/one_spaces_air_handling_unit.mo b/tests/data/one_spaces_air_handling_unit.mo
index 49f9b58..1bc79a4 100644
--- a/tests/data/one_spaces_air_handling_unit.mo
+++ b/tests/data/one_spaces_air_handling_unit.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model VAVControlVav_in_control
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Controller rehBoxCon(
venStd=Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1,
@@ -566,44 +566,44 @@ iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Cont
Modelica.Blocks.Sources.RealExpression
TSupSetVav_in_control
(y=293.15);
-Modelica.Blocks.Sources.RealExpression
- TCooSetVav_in_control
- (y=298.15);
Modelica.Blocks.Sources.RealExpression
ppmCO2SetVav_in_control
(y=0.0);
Modelica.Blocks.Sources.RealExpression
THeaSetVav_in_control
(y=293.15);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetVav_in_control
+ (y=298.15);
Modelica.Blocks.Sources.IntegerExpression
- oveFloSetVav_in_control
+ oveDamPosVav_in_control
(y=0);
Modelica.Blocks.Sources.IntegerExpression
uOpeModVav_in_control
(y=1);
Modelica.Blocks.Sources.IntegerExpression
- uAhuOpeModAhu_control
+ oveFloSetVav_in_control
(y=0);
Modelica.Blocks.Sources.IntegerExpression
- oveDamPosVav_in_control
+ uAhuOpeModAhu_control
(y=0);
Modelica.Blocks.Sources.BooleanExpression
- uHeaOffVav_in_control
+ u1OccVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
u1HotPlaVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1OccVav_in_control
+ u1FanVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1WinVav_in_control
+ u1SupFanAhu_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1FanVav_in_control
+ u1WinVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1SupFanAhu_control
+ uHeaOffVav_in_control
(y=false);
equation
connect(port[1],TRoo[1]. port);
@@ -612,34 +612,34 @@ connect(dataBus.TZonSpace_1, TRoo[1].T);
connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.TSupSetSpace_1,
TSupSetVav_in_control.y);
-connect(dataBus.TCooSetSpace_1,
-TCooSetVav_in_control.y);
connect(dataBus.ppmCO2SetSpace_1,
ppmCO2SetVav_in_control.y);
connect(dataBus.THeaSetSpace_1,
THeaSetVav_in_control.y);
-connect(dataBus.oveFloSetSpace_1,
-oveFloSetVav_in_control.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetVav_in_control.y);
+connect(dataBus.oveDamPosSpace_1,
+oveDamPosVav_in_control.y);
connect(dataBus.uOpeModSpace_1,
uOpeModVav_in_control.y);
+connect(dataBus.oveFloSetSpace_1,
+oveFloSetVav_in_control.y);
connect(dataBus.uAhuOpeModAhu_control,
uAhuOpeModAhu_control.y);
-connect(dataBus.oveDamPosSpace_1,
-oveDamPosVav_in_control.y);
-connect(dataBus.uHeaOffSpace_1,
-uHeaOffVav_in_control.y);
-connect(dataBus.u1HotPlaSpace_1,
-u1HotPlaVav_in_control.y);
connect(dataBus.u1OccSpace_1,
u1OccVav_in_control.y);
-connect(dataBus.u1WinSpace_1,
-u1WinVav_in_control.y);
+connect(dataBus.u1HotPlaSpace_1,
+u1HotPlaVav_in_control.y);
connect(dataBus.u1FanSpace_1,
u1FanVav_in_control.y);
connect(dataBus.u1SupFanAhu_control,
u1SupFanAhu_control.y);
+connect(dataBus.u1WinSpace_1,
+u1WinVav_in_control.y);
+connect(dataBus.uHeaOffSpace_1,
+uHeaOffVav_in_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2256,7 +2256,7 @@ connect(dataBus.y_actualVav_in, vav.y_actual);
connect(dataBus.VDis_flowVav_in_control, senVolFlo.V_flow);
connect(dataBus.TDisVav_in_control, senTem.T);
end VAVBoxVav_in;
-
+
model AhuAhu
extends one_spaces_air_handling_unit.Common.Fluid.Ventilation.PartialAhu;
Controls.BaseClasses.DataBus dataBus
@@ -2275,7 +2275,7 @@ connect(dataBus.TAirSupAhu_control, TSup.T);
connect(dataBus.TAirMixAhu_control, TMix.T);
connect(dataBus.dpDucAhu_control, dpDisSupFan.p_rel);
end AhuAhu;
-
+
end Ventilation;
end Fluid;
@@ -2387,11 +2387,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2426,11 +2426,11 @@ package MediumW = Buildings.Media.Water "Medium model";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2459,9 +2459,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
one_spaces_air_handling_unit.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2479,12 +2479,12 @@ package MediumW = Buildings.Media.Water "Medium model";
THeaAirInl_nominal=30,
THeaAirDis_nominal=25
) annotation (
- Placement(transformation(origin = { 199.82121521501287, -6.27884261940033 },
+ Placement(transformation(origin = { 148.36647743600457, 89.45478665795703 },
extent = {{-10, -10}, {10, 10}}
)));
one_spaces_air_handling_unit.Common.Controls.ventilation.VAVControlVav_in_control
vav_in_control annotation (
- Placement(transformation(origin = { 127.82249879365419, -161.02984981944442 },
+ Placement(transformation(origin = { -180.75847277456182, -50.51876360596411 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2493,7 +2493,7 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { 69.66114901095764, 186.9413362940161 },
+ Placement(transformation(origin = { -132.7742321946186, 154.43401457433453 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2502,7 +2502,7 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { -197.20022789842602, -28.760927401128225 },
+ Placement(transformation(origin = { 77.3839760998957, -183.1186514417436 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.BoundaryConditions.WeatherData.ReaderTMY3
@@ -2520,12 +2520,12 @@ package MediumW = Buildings.Media.Water "Medium model";
VRoo={100,100},
AFlo={20,20},
mCooVAV_flow_nominal={0.01,0.01}) annotation (
- Placement(transformation(origin = { -171.6361083034181, -114.49868992231835 },
+ Placement(transformation(origin = { -69.81582473400064, -157.19705974220668 },
extent = {{-10, -10}, {10, 10}}
)));
one_spaces_air_handling_unit.Common.Controls.ventilation.AhuControlAhu_control
ahu_control annotation (
- Placement(transformation(origin = { -22.055025456519758, -200.0 },
+ Placement(transformation(origin = { 131.9863209263618, 158.43999485095088 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.Sources.Outside boundary
@@ -2536,7 +2536,7 @@ package MediumW = Buildings.Media.Water "Medium model";
one_spaces_air_handling_unit.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 188.0862206877723, 80.09808659738555 },
+ Placement(transformation(origin = { 38.01449187726351, 177.94321861588386 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2548,7 +2548,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.ports[1],pressure_drop_duct_out.port_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 34.83057450547882, 0.0 } ,{ 34.83057450547882, 186.9413362940161 } ,{ 69.66114901095764, 186.9413362940161 } },
+points={{ 0.0, 0.0 } ,{ -66.3871160973093, 0.0 } ,{ -66.3871160973093, 154.43401457433453 } ,{ -132.7742321946186, 154.43401457433453 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.weaBus,weather_12.weaBus)
@@ -2557,37 +2557,37 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(vav_in.dataBus,vav_in_control.dataBus)
annotation (Line(
-points={{ 199.82121521501287, -6.27884261940033 } ,{ 163.82185700433354, -6.27884261940033 } ,{ 163.82185700433354, -161.02984981944442 } ,{ 127.82249879365419, -161.02984981944442 } },
+points={{ 148.36647743600457, 89.45478665795703 } ,{ -16.195997669278626, 89.45478665795703 } ,{ -16.195997669278626, -50.51876360596411 } ,{ -180.75847277456182, -50.51876360596411 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(vav_in.port_bAir,space_1.ports[2])
annotation (Line(
-points={{ 199.82121521501287, -6.27884261940033 } ,{ 99.91060760750644, -6.27884261940033 } ,{ 99.91060760750644, 0.0 } ,{ 0.0, 0.0 } },
+points={{ 148.36647743600457, 89.45478665795703 } ,{ 74.18323871800229, 89.45478665795703 } ,{ 74.18323871800229, 0.0 } ,{ 0.0, 0.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_out.port_b,ahu.port_a)
annotation (Line(
-points={{ 69.66114901095764, 186.9413362940161 } ,{ -50.98747964623023, 186.9413362940161 } ,{ -50.98747964623023, -114.49868992231835 } ,{ -171.6361083034181, -114.49868992231835 } },
+points={{ -132.7742321946186, 154.43401457433453 } ,{ -101.29502846430962, 154.43401457433453 } ,{ -101.29502846430962, -157.19705974220668 } ,{ -69.81582473400064, -157.19705974220668 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_in.port_b,vav_in.port_aAir)
annotation (Line(
-points={{ -197.20022789842602, -28.760927401128225 } ,{ 1.3104936582934101, -28.760927401128225 } ,{ 1.3104936582934386, -6.27884261940033 } ,{ 199.82121521501287, -6.27884261940033 } },
+points={{ 77.3839760998957, -183.1186514417436 } ,{ 112.87522676795014, -183.1186514417436 } ,{ 112.87522676795014, 89.45478665795703 } ,{ 148.36647743600457, 89.45478665795703 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(ahu.dataBus,ahu_control.dataBus)
annotation (Line(
-points={{ -171.6361083034181, -114.49868992231835 } ,{ -96.84556687996893, -114.49868992231835 } ,{ -96.84556687996893, -200.0 } ,{ -22.055025456519758, -200.0 } },
+points={{ -69.81582473400064, -157.19705974220668 } ,{ 31.085248096180578, -157.19705974220668 } ,{ 31.085248096180578, 158.43999485095088 } ,{ 131.9863209263618, 158.43999485095088 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(ahu.port_b,pressure_drop_duct_in.port_a)
annotation (Line(
-points={{ -171.6361083034181, -114.49868992231835 } ,{ -184.41816810092206, -114.49868992231835 } ,{ -184.41816810092206, -28.760927401128225 } ,{ -197.20022789842602, -28.760927401128225 } },
+points={{ -69.81582473400064, -157.19705974220668 } ,{ 3.784075682947531, -157.19705974220668 } ,{ 3.784075682947531, -183.1186514417436 } ,{ 77.3839760998957, -183.1186514417436 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(boundary.ports,ahu.ports)
annotation (Line(
-points={{ -200.0, 100.0 } ,{ -185.81805415170905, 100.0 } ,{ -185.81805415170905, -114.49868992231835 } ,{ -171.6361083034181, -114.49868992231835 } },
+points={{ -200.0, 100.0 } ,{ -134.90791236700034, 100.0 } ,{ -134.90791236700034, -157.19705974220668 } ,{ -69.81582473400064, -157.19705974220668 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(boundary.weaBus,weather_12.weaBus)
@@ -2596,29 +2596,29 @@ points={{ -200.0, 100.0 } ,{ -150.0, 100.0 } ,{ -150.0, 200.0 } ,{ -100
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 69.04311034388616, 0.0 } ,{ 69.04311034388616, 80.09808659738555 } ,{ 188.0862206877723, 80.09808659738555 } },
+points={{ -50.0, 0.0 } ,{ -5.992754061368245, 0.0 } ,{ -5.992754061368245, 177.94321861588386 } ,{ 38.01449187726351, 177.94321861588386 } },
thickness=0.05,
smooth=Smooth.None)); connect(vav_in_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 127.82249879365419, -161.02984981944442 } ,{ 157.95435974071324, -161.02984981944442 } ,{ 157.95435974071324, 80.09808659738555 } ,{ 188.0862206877723, 80.09808659738555 } },
+points={{ -180.75847277456182, -50.51876360596411 } ,{ -71.37199044864916, -50.51876360596411 } ,{ -71.37199044864916, 177.94321861588386 } ,{ 38.01449187726351, 177.94321861588386 } },
thickness=0.05,
smooth=Smooth.None)); connect(ahu_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -22.055025456519758, -200.0 } ,{ 83.01559761562628, -200.0 } ,{ 83.01559761562628, 80.09808659738555 } ,{ 188.0862206877723, 80.09808659738555 } },
+points={{ 131.9863209263618, 158.43999485095088 } ,{ 85.00040640181265, 158.43999485095088 } ,{ 85.00040640181265, 177.94321861588386 } ,{ 38.01449187726351, 177.94321861588386 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 94.04311034388616, 0.0 } ,{ 94.04311034388616, 80.09808659738555 } ,{ 188.0862206877723, 80.09808659738555 } },
+points={{ 0.0, 0.0 } ,{ 19.007245938631755, 0.0 } ,{ 19.007245938631755, 177.94321861588386 } ,{ 38.01449187726351, 177.94321861588386 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[3],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 94.04311034388616, 0.0 } ,{ 94.04311034388616, 80.09808659738555 } ,{ 188.0862206877723, 80.09808659738555 } },
+points={{ 0.0, 0.0 } ,{ 19.007245938631755, 0.0 } ,{ 19.007245938631755, 177.94321861588386 } ,{ 38.01449187726351, 177.94321861588386 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-250.0},{249.82121521501287,250.0}})), Icon(
- coordinateSystem(extent={{-250.0,-250.0},{249.82121521501287,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-233.1186514417436},{201.61490069501465,250.0}})), Icon(
+ coordinateSystem(extent={{-250.0,-233.1186514417436},{201.61490069501465,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name | type |
---|
pressure_drop_duct_in | Duct | vav_in | VAV |
|
---|
ventilation_outlets | name | type |
---|
pressure_drop_duct_out | Duct |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 45.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name |
---|
pressure_drop_duct_in | vav_in |
|
---|
ventilation_outlets | name |
---|
pressure_drop_duct_out |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 45.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end one_spaces_air_handling_unit;
+end one_spaces_air_handling_unit;
\ No newline at end of file
diff --git a/tests/data/space_1_different_construction_types.mo b/tests/data/space_1_different_construction_types.mo
index ee93a95..60a5aa3 100644
--- a/tests/data/space_1_different_construction_types.mo
+++ b/tests/data/space_1_different_construction_types.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,7 +467,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -496,7 +496,7 @@ connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.TCooSetSpace_1,
TCooSetEmission_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2196,7 +2196,7 @@ extends Modelica.Icons.MaterialPropertiesPackage;
package Glazing "Library of building glazing systems"
extends Modelica.Icons.MaterialPropertiesPackage;
- record double_glazing = IDEAS.Buildings.Data.Interfaces.Glazing (
+ record simple_glazing = IDEAS.Buildings.Data.Interfaces.Glazing (
final nLay=3,
final checkLowPerformanceGlazing=false,
mats={space_1_different_construction_types.Data.Materials.id_100
@@ -2229,7 +2229,7 @@ extends Modelica.Icons.MaterialPropertiesPackage;
final g_value=0.78
) "space_1_different_construction_types";
- record simple_glazing = IDEAS.Buildings.Data.Interfaces.Glazing (
+ record double_glazing = IDEAS.Buildings.Data.Interfaces.Glazing (
final nLay=3,
final checkLowPerformanceGlazing=false,
mats={space_1_different_construction_types.Data.Materials.id_100
@@ -2270,33 +2270,40 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
rho=2240.0,
epsLw=0.88,
- epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.89,
- c=790.0,
- rho=1920.0,
- epsLw=0.88,
epsSw=0.55); record plywood = IDEAS.Buildings.Data.Interfaces.Material (
k=0.12,
c=1210.0,
rho=540.0,
epsLw=0.88,
+ epsSw=0.55); record brick = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.89,
+ c=790.0,
+ rho=1920.0,
+ epsLw=0.88,
epsSw=0.55); record Air = IDEAS.Buildings.Data.Interfaces.Material (
k=0.025,
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
-package Constructions "Library of building envelope constructions" record internal_wall
+package Constructions "Library of building envelope constructions" record external_wall
+ "external_wall"
+ extends IDEAS.Buildings.Data.Interfaces.Construction(
+ mats={space_1_different_construction_types.Data.Materials.concrete
+ (d=0.2),space_1_different_construction_types.Data.Materials.insulation_board
+ (d=0.02),space_1_different_construction_types.Data.Materials.plywood
+ (d=0.1) });
+ end external_wall; record internal_wall
"internal_wall"
extends IDEAS.Buildings.Data.Interfaces.Construction(
mats={space_1_different_construction_types.Data.Materials.brick
@@ -2308,14 +2315,7 @@ package Constructions "Library of building envelope constructions" record i
(d=0.4),space_1_different_construction_types.Data.Materials.insulation_board
(d=0.2),space_1_different_construction_types.Data.Materials.plywood
(d=0.4) });
- end test_wall; record external_wall
- "external_wall"
- extends IDEAS.Buildings.Data.Interfaces.Construction(
- mats={space_1_different_construction_types.Data.Materials.concrete
- (d=0.2),space_1_different_construction_types.Data.Materials.insulation_board
- (d=0.02),space_1_different_construction_types.Data.Materials.plywood
- (d=0.1) });
- end external_wall;
+ end test_wall;
end Constructions;
end Data;
model building
@@ -2382,7 +2382,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 135, 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 136.32752044560192, -179.46598022137943 },
+ Placement(transformation(origin = { 2.9447077795536143, 180.8246209637403 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.OuterWall[1]
@@ -2394,7 +2394,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 0 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 161.5156784333875, 133.33367409056308 },
+ Placement(transformation(origin = { 154.6859581697324, -99.59536473200961 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.OuterWall[1]
@@ -2406,7 +2406,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 196.96959997326564, -82.67720371486831 },
+ Placement(transformation(origin = { -200.0, 12.56910911288978 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2417,7 +2417,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -85.47294357112247, -183.13478537679586 },
+ Placement(transformation(origin = { 8.164555200327655, -197.8264842071972 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2428,7 +2428,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 45 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -22.039269191394617, 172.62787013329265 },
+ Placement(transformation(origin = { -81.45087597347073, -138.92124182997114 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.SlabOnGround floor_2(
@@ -2436,7 +2436,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
external_wall constructionType,
redeclare package Medium = Medium,
A=10) annotation (
- Placement(transformation(origin = { 25.025085777844296, -194.49681539869383 },
+ Placement(transformation(origin = { 93.55314784914289, 149.52342472269538 },
extent = {{-10, -10}, {10, 10}}
)));
space_1_different_construction_types.Common.HeatTransfer.IdealHeatingSystem.IdealHeatEmission
@@ -2446,13 +2446,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
)));
space_1_different_construction_types.Common.Controls.ventilation.EmissionControlEmission_control
emission_control annotation (
- Placement(transformation(origin = { -197.172842074761, 100.88190689954969 },
+ Placement(transformation(origin = { 81.26894357170073, -155.7667562826974 },
extent = {{-10, -10}, {10, 10}}
)));
space_1_different_construction_types.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2468,39 +2468,39 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
space_1_different_construction_types.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 197.88775253969862, 26.422018226336395 },
+ Placement(transformation(origin = { -152.35841555850538, -73.27549005950813 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(space_1.propsBus[1:2],merged_w1_1_w3_1[1:2].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 68.16376022280096, 0.0 } ,{ 68.16376022280096, -179.46598022137943 } ,{ 136.32752044560192, -179.46598022137943 } },
+points={{ 0.0, 0.0 } ,{ 1.4723538897768071, 0.0 } ,{ 1.4723538897768071, 180.8246209637403 } ,{ 2.9447077795536143, 180.8246209637403 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[3],merged_w2_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 80.75783921669375, 0.0 } ,{ 80.75783921669375, 133.33367409056308 } ,{ 161.5156784333875, 133.33367409056308 } },
+points={{ 0.0, 0.0 } ,{ 77.3429790848662, 0.0 } ,{ 77.3429790848662, -99.59536473200961 } ,{ 154.6859581697324, -99.59536473200961 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[4],merged_w4_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 98.48479998663282, 0.0 } ,{ 98.48479998663282, -82.67720371486831 } ,{ 196.96959997326564, -82.67720371486831 } },
+points={{ 0.0, 0.0 } ,{ -100.0, 0.0 } ,{ -100.0, 12.56910911288978 } ,{ -200.0, 12.56910911288978 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[5],merged_win1_1[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -42.736471785561235, 0.0 } ,{ -42.736471785561235, -183.13478537679586 } ,{ -85.47294357112247, -183.13478537679586 } },
+points={{ 0.0, 0.0 } ,{ 4.0822776001638275, 0.0 } ,{ 4.0822776001638275, -197.8264842071972 } ,{ 8.164555200327655, -197.8264842071972 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[6],merged_win1_2[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -11.019634595697308, 0.0 } ,{ -11.019634595697308, 172.62787013329265 } ,{ -22.039269191394617, 172.62787013329265 } },
+points={{ 0.0, 0.0 } ,{ -40.725437986735365, 0.0 } ,{ -40.725437986735365, -138.92124182997114 } ,{ -81.45087597347073, -138.92124182997114 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.propsBus[7],floor_2.propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 12.512542888922148, 0.0 } ,{ 12.512542888922148, -194.49681539869383 } ,{ 25.025085777844296, -194.49681539869383 } },
+points={{ 0.0, 0.0 } ,{ 46.776573924571444, 0.0 } ,{ 46.776573924571444, 149.52342472269538 } ,{ 93.55314784914289, 149.52342472269538 } },
color={191,0,0},
thickness=0.1,
smooth=Smooth.None)); connect(space_1.gainCon,emission.heatPortCon)
@@ -2520,30 +2520,30 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission.y,emission_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ -98.5864210373805, -75.0 } ,{ -98.5864210373805, 100.88190689954969 } ,{ -197.172842074761, 100.88190689954969 } },
+points={{ 0.0, -75.0 } ,{ 40.634471785850366, -75.0 } ,{ 40.634471785850366, -155.7667562826974 } ,{ 81.26894357170073, -155.7667562826974 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -197.172842074761, 100.88190689954969 } ,{ 0.3574552324688227, 100.88190689954969 } ,{ 0.3574552324687943, 26.422018226336395 } ,{ 197.88775253969862, 26.422018226336395 } },
+points={{ 81.26894357170073, -155.7667562826974 } ,{ -35.54473599340233, -155.7667562826974 } ,{ -35.54473599340233, -73.27549005950813 } ,{ -152.35841555850538, -73.27549005950813 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 73.94387626984931, 0.0 } ,{ 73.94387626984931, 26.422018226336395 } ,{ 197.88775253969862, 26.422018226336395 } },
+points={{ -50.0, 0.0 } ,{ -101.17920777925269, 0.0 } ,{ -101.17920777925269, -73.27549005950813 } ,{ -152.35841555850538, -73.27549005950813 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 98.94387626984931, 0.0 } ,{ 98.94387626984931, 26.422018226336395 } ,{ 197.88775253969862, 26.422018226336395 } },
+points={{ 0.0, 0.0 } ,{ -76.17920777925269, 0.0 } ,{ -76.17920777925269, -73.27549005950813 } ,{ -152.35841555850538, -73.27549005950813 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 98.94387626984931, 0.0 } ,{ 98.94387626984931, 26.422018226336395 } ,{ 197.88775253969862, 26.422018226336395 } },
+points={{ 0.0, 0.0 } ,{ -76.17920777925269, 0.0 } ,{ -76.17920777925269, -73.27549005950813 } ,{ -152.35841555850538, -73.27549005950813 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-247.172842074761,-244.49681539869383},{247.88775253969862,250.0}})), Icon(
- coordinateSystem(extent={{-247.172842074761,-244.49681539869383},{247.88775253969862,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-247.8264842071972},{204.6859581697324,250.0}})), Icon(
+ coordinateSystem(extent={{-250.0,-247.8264842071972},{204.6859581697324,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window | win1_2 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | | win1_2 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end space_1_different_construction_types;
+end space_1_different_construction_types;
\ No newline at end of file
diff --git a/tests/data/space_1_ideal_heating.mo b/tests/data/space_1_ideal_heating.mo
index 36e24a0..06302a6 100644
--- a/tests/data/space_1_ideal_heating.mo
+++ b/tests/data/space_1_ideal_heating.mo
@@ -410,13 +410,13 @@ constructed by the signals connected to this bus.
parameter Modelica.Units.SI.Temperature THeaSet= 273.15+24;
parameter Modelica.Units.SI.Temperature THeaSetBack= 273.15+16;
Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.ControlLoops
-emissionControl( kCooCon=0.1,
- TiCooCon=900,
+emissionControl( dTHys=0.25,
+ kCooCon=0.1,
kHeaCon=0.1,
- TiHeaCon=900,
- timChe=30,
- dTHys=0.25,
- looHys=0.01
+ looHys=0.01,
+ TiCooCon=900.0,
+ TiHeaCon=900.0,
+ timChe=30.0
)
annotation (Placement(transformation(extent={{-36,-36},{28,38}}))); Modelica.Blocks.Interfaces.RealOutput y
annotation (Placement(transformation(extent={{100,-8},{120,12}})));
@@ -467,7 +467,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -496,7 +496,7 @@ connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.TCooSetSpace_1,
TCooSetEmission_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2213,11 +2213,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2286,11 +2286,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=3,
datConExt(
@@ -2325,13 +2325,13 @@ parameter Integer nRoo = 2 "Number of rooms";
)));
space_1_ideal_heating.Common.Controls.ventilation.EmissionControlEmission_control
emission_control annotation (
- Placement(transformation(origin = { 134.23239501606082, -162.31560873343372 },
+ Placement(transformation(origin = { 148.77070717472074, -116.92467361623164 },
extent = {{-10, -10}, {10, 10}}
)));
space_1_ideal_heating.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2346,7 +2346,7 @@ parameter Integer nRoo = 2 "Number of rooms";
space_1_ideal_heating.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -58.366370354839745, 181.17694629324455 },
+ Placement(transformation(origin = { 23.452505465546505, 196.63890934092237 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2372,30 +2372,30 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(emission.y,emission_control.y)
annotation (Line(
-points={{ 0.0, -75.0 } ,{ 67.11619750803041, -75.0 } ,{ 67.11619750803041, -162.31560873343372 } ,{ 134.23239501606082, -162.31560873343372 } },
+points={{ 0.0, -75.0 } ,{ 74.38535358736037, -75.0 } ,{ 74.38535358736037, -116.92467361623164 } ,{ 148.77070717472074, -116.92467361623164 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(emission_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 134.23239501606082, -162.31560873343372 } ,{ 37.93301233061054, -162.31560873343372 } ,{ 37.93301233061054, 181.17694629324455 } ,{ -58.366370354839745, 181.17694629324455 } },
+points={{ 148.77070717472074, -116.92467361623164 } ,{ 86.11160632013363, -116.92467361623164 } ,{ 86.11160632013362, 196.63890934092237 } ,{ 23.452505465546505, 196.63890934092237 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -54.18318517741987, 0.0 } ,{ -54.18318517741987, 181.17694629324455 } ,{ -58.366370354839745, 181.17694629324455 } },
+points={{ -50.0, 0.0 } ,{ -13.273747267226746, 0.0 } ,{ -13.27374726722675, 196.63890934092237 } ,{ 23.452505465546505, 196.63890934092237 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -29.183185177419873, 0.0 } ,{ -29.183185177419873, 181.17694629324455 } ,{ -58.366370354839745, 181.17694629324455 } },
+points={{ 0.0, 0.0 } ,{ 11.726252732773252, 0.0 } ,{ 11.726252732773252, 196.63890934092237 } ,{ 23.452505465546505, 196.63890934092237 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -29.183185177419873, 0.0 } ,{ -29.183185177419873, 181.17694629324455 } ,{ -58.366370354839745, 181.17694629324455 } },
+points={{ 0.0, 0.0 } ,{ 11.726252732773252, 0.0 } ,{ 11.726252732773252, 196.63890934092237 } ,{ 23.452505465546505, 196.63890934092237 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-230.76457629600134,-232.96248440417313},{209.46669320826734,250.0}})), Icon(
- coordinateSystem(extent={{-230.76457629600134,-232.96248440417313},{209.46669320826734,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-235.97199184663177,-247.64388602807733},{250.0,250.0}})), Icon(
+ coordinateSystem(extent={{-235.97199184663177,-247.64388602807733},{250.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | name | parameters | type |
---|
emission | nEle | 1 |
---|
fraRad | 0.3 |
---|
Q_flow_nominal | 2000.0 |
---|
T_a_nominal | 363.15 |
---|
T_b_nominal | 353.15 |
---|
TAir_nominal | 293.15 |
---|
TRad_nominal | 293.15 |
---|
n | 1.24 |
---|
deltaM | 0.01 |
---|
from_dp | false |
---|
dp_nominal | 0.0 |
---|
linearized | false |
---|
VWat | 0.116 |
---|
mDry | 52.6 |
---|
| Radiator |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 0.0 | wall | | ExternalWall | w3_1 | 10.0 | 45.0 | wall | | ExternalWall | w4_1 | 10.0 | 90.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
emissions | |
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 0.0 | wall | | w3_1 | 10.0 | 45.0 | wall | | w4_1 | 10.0 | 90.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end space_1_ideal_heating;
+end space_1_ideal_heating;
\ No newline at end of file
diff --git a/tests/data/space_with_door.mo b/tests/data/space_with_door.mo
index 94b56ea..e0dc25a 100644
--- a/tests/data/space_with_door.mo
+++ b/tests/data/space_with_door.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedDoor, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -436,7 +436,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonDoor, TRoo[1].T);
connect(dataBus.ppmCO2Door, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2153,11 +2153,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2239,11 +2239,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir door(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.3,
- hRoo=3.75,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=0, nConBou=0, nConExtWin=1,
datConExtWin(
@@ -2260,9 +2260,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
space_with_door.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2277,7 +2277,7 @@ parameter Integer nRoo = 2 "Number of rooms";
space_with_door.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -10.94676587384974, 151.66337776987723 },
+ Placement(transformation(origin = { -90.41705164520343, 171.06688577209292 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2293,21 +2293,21 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -30.47338293692487, 0.0 } ,{ -30.47338293692487, 151.66337776987723 } ,{ -10.94676587384974, 151.66337776987723 } },
+points={{ -50.0, 0.0 } ,{ -70.20852582260171, 0.0 } ,{ -70.20852582260171, 171.06688577209292 } ,{ -90.41705164520343, 171.06688577209292 } },
thickness=0.05,
smooth=Smooth.None)); connect(door.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -5.47338293692487, 0.0 } ,{ -5.47338293692487, 151.66337776987723 } ,{ -10.94676587384974, 151.66337776987723 } },
+points={{ 0.0, 0.0 } ,{ -45.208525822601715, 0.0 } ,{ -45.208525822601715, 171.06688577209292 } ,{ -90.41705164520343, 171.06688577209292 } },
thickness=0.05,
smooth=Smooth.None)); connect(door.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -5.47338293692487, 0.0 } ,{ -5.47338293692487, 151.66337776987723 } ,{ -10.94676587384974, 151.66337776987723 } },
+points={{ 0.0, 0.0 } ,{ -45.208525822601715, 0.0 } ,{ -45.208525822601715, 171.06688577209292 } ,{ -90.41705164520343, 171.06688577209292 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-248.82236022309633,-219.23434916343209},{184.81498675021984,250.0}})), Icon(
- coordinateSystem(extent={{-248.82236022309633,-219.23434916343209},{184.81498675021984,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-205.93104601872145,-189.38120444040644},{250.0,250.0}})), Icon(
+ coordinateSystem(extent={{-205.93104601872145,-189.38120444040644},{250.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | door |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
door | 13.0 | 90.0 | wall | | ExternalDoor | wall | 9.29 | 90.0 | wall | | ExternalWall | window | 1.3 | 90.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | door |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
door | 13.0 | 90.0 | wall | | wall | 9.29 | 90.0 | wall | | window | 1.3 | 90.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | Door |
---|
layers | material | thickness |
---|
name | wood |
---|
k | 0.131 |
---|
c | 1000.0 |
---|
rho | 600.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.04 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end space_with_door;
+end space_with_door;
\ No newline at end of file
diff --git a/tests/data/space_with_same_properties.mo b/tests/data/space_with_same_properties.mo
index 151dd67..eb03d35 100644
--- a/tests/data/space_with_same_properties.mo
+++ b/tests/data/space_with_same_properties.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedBed, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -436,7 +436,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonBed, TRoo[1].T);
connect(dataBus.ppmCO2Bed, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2153,11 +2153,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2226,11 +2226,11 @@ parameter Integer nRoo = 2 "Number of rooms";
Buildings.ThermalZones.Detailed.MixedAir bed(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=11.3,
- hRoo=3.75,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2253,9 +2253,9 @@ parameter Integer nRoo = 2 "Number of rooms";
extent = {{-20, -20}, {20, 20}}
)));
space_with_same_properties.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2270,7 +2270,7 @@ parameter Integer nRoo = 2 "Number of rooms";
space_with_same_properties.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { -116.13831805277532, 111.61910823419102 },
+ Placement(transformation(origin = { -22.352181858450226, 186.4103288764015 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2286,21 +2286,21 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ -83.06915902638767, 0.0 } ,{ -83.06915902638767, 111.61910823419102 } ,{ -116.13831805277532, 111.61910823419102 } },
+points={{ -50.0, 0.0 } ,{ -36.17609092922511, 0.0 } ,{ -36.17609092922511, 186.4103288764015 } ,{ -22.352181858450226, 186.4103288764015 } },
thickness=0.05,
smooth=Smooth.None)); connect(bed.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -58.06915902638766, 0.0 } ,{ -58.06915902638766, 111.61910823419102 } ,{ -116.13831805277532, 111.61910823419102 } },
+points={{ 0.0, 0.0 } ,{ -11.176090929225113, 0.0 } ,{ -11.176090929225113, 186.4103288764015 } ,{ -22.352181858450226, 186.4103288764015 } },
thickness=0.05,
smooth=Smooth.None)); connect(bed.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -58.06915902638766, 0.0 } ,{ -58.06915902638766, 111.61910823419102 } ,{ -116.13831805277532, 111.61910823419102 } },
+points={{ 0.0, 0.0 } ,{ -11.176090929225113, 0.0 } ,{ -11.176090929225113, 186.4103288764015 } ,{ -22.352181858450226, 186.4103288764015 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-198.53154936864402},{245.2584014135589,250.0}})), Icon(
- coordinateSystem(extent={{-250.0,-198.53154936864402},{245.2584014135589,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-178.7715066449616,-66.7097189616097},{250.0,250.0}})), Icon(
+ coordinateSystem(extent={{-178.7715066449616,-66.7097189616097},{250.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | bed |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw | 13.0 | 90.0 | wall | | ExternalWall | bw2 | 9.29 | 90.0 | wall | | ExternalWall | window | 1.3 | 90.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | bed |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw | 13.0 | 90.0 | wall | | bw2 | 9.29 | 90.0 | wall | | window | 1.3 | 90.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end space_with_same_properties;
+end space_with_same_properties;
\ No newline at end of file
diff --git a/tests/data/space_with_same_properties_ideas.mo b/tests/data/space_with_same_properties_ideas.mo
index ebcb42c..d0a262e 100644
--- a/tests/data/space_with_same_properties_ideas.mo
+++ b/tests/data/space_with_same_properties_ideas.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedBed, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model DataServer
replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[1]
@@ -436,7 +436,7 @@ connect(port_a[1], TRoo1[1].port);
connect(dataBus.TZonBed, TRoo[1].T);
connect(dataBus.ppmCO2Bed, TRoo1[1].ppm);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2177,11 +2177,6 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=840.0,
rho=2500.0,
epsLw=0.88,
- epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
- k=0.03,
- c=1200.0,
- rho=40.0,
- epsLw=0.88,
epsSw=0.55); record concrete = IDEAS.Buildings.Data.Interfaces.Material (
k=1.4,
c=840.0,
@@ -2197,6 +2192,11 @@ extends Modelica.Icons.MaterialPropertiesPackage; record id_100 = IDEAS.Build
c=1005.0,
rho=1.2,
epsLw=0.88,
+ epsSw=0.55); record insulation_board = IDEAS.Buildings.Data.Interfaces.Material (
+ k=0.03,
+ c=1200.0,
+ rho=40.0,
+ epsLw=0.88,
epsSw=0.55);end Materials;
package Constructions "Library of building envelope constructions" record external_wall
"external_wall"
@@ -2253,8 +2253,8 @@ package MediumW = IDEAS.Media.Water "Medium model";
IDEAS.Buildings.Components.Zone bed(
- mSenFac=0.822,nPorts = 3, hZone=3.75,
- V=42.375
+ mSenFac=0.822,nPorts = 3, hZone=2.0,
+ V=40.0
,
n50=0.822*0.5*bed.n50toAch,
redeclare package Medium = Medium,
@@ -2272,7 +2272,7 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 90, 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall, IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { -160.86687964242313, -105.21452077566666 },
+ Placement(transformation(origin = { 200.0, 22.153983255461064 },
extent = {{-10, -10}, {10, 10}}
)));
IDEAS.Buildings.Components.Window[1]
@@ -2283,13 +2283,13 @@ package MediumW = IDEAS.Media.Water "Medium model";
final azi={ 90 },
redeclare package Medium = Medium,
final inc={ IDEAS.Types.Tilt.Wall }) annotation (
- Placement(transformation(origin = { 14.701628709211143, -200.0 },
+ Placement(transformation(origin = { 102.00691214292475, -151.97172322056036 },
extent = {{-10, -10}, {10, 10}}
)));
space_with_same_properties_ideas.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2305,19 +2305,19 @@ annotation (Placement(transformation(extent={{-96,76},{-76,96}}))); annotati
space_with_same_properties_ideas.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 158.78660185617986, 121.54255435293895 },
+ Placement(transformation(origin = { 71.3906722608783, 188.65304045532457 },
extent = {{-10, -10}, {10, 10}}
)));
equation connect(bed.propsBus[1:2],merged_bw_bw2[1:2].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -80.43343982121156, 0.0 } ,{ -80.43343982121156, -105.21452077566666 } ,{ -160.86687964242313, -105.21452077566666 } },
+points={{ 0.0, 0.0 } ,{ 100.0, 0.0 } ,{ 100.0, 22.153983255461064 } ,{ 200.0, 22.153983255461064 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(bed.propsBus[3],merged_window[1].propsBus_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 7.350814354605571, 0.0 } ,{ 7.350814354605571, -200.0 } ,{ 14.701628709211143, -200.0 } },
+points={{ 0.0, 0.0 } ,{ 51.003456071462374, 0.0 } ,{ 51.003456071462374, -151.97172322056036 } ,{ 102.00691214292475, -151.97172322056036 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(bed.yOcc,occupancy_0.y)
@@ -2327,21 +2327,21 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 54.39330092808993, 0.0 } ,{ 54.39330092808993, 121.54255435293895 } ,{ 158.78660185617986, 121.54255435293895 } },
+points={{ -50.0, 0.0 } ,{ 10.695336130439152, 0.0 } ,{ 10.695336130439152, 188.65304045532457 } ,{ 71.3906722608783, 188.65304045532457 } },
thickness=0.05,
smooth=Smooth.None)); connect(bed.gainCon,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 79.39330092808993, 0.0 } ,{ 79.39330092808993, 121.54255435293895 } ,{ 158.78660185617986, 121.54255435293895 } },
+points={{ 0.0, 0.0 } ,{ 35.69533613043915, 0.0 } ,{ 35.69533613043915, 188.65304045532457 } ,{ 71.3906722608783, 188.65304045532457 } },
thickness=0.05,
smooth=Smooth.None)); connect(bed.ports[1],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 79.39330092808993, 0.0 } ,{ 79.39330092808993, 121.54255435293895 } ,{ 158.78660185617986, 121.54255435293895 } },
+points={{ 0.0, 0.0 } ,{ 35.69533613043915, 0.0 } ,{ 35.69533613043915, 188.65304045532457 } ,{ 71.3906722608783, 188.65304045532457 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-210.86687964242313,-250.0},{208.78660185617986,250.0}})), Icon(
- coordinateSystem(extent={{-210.86687964242313,-250.0},{208.78660185617986,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-150.0,-201.97172322056036},{250.0,250.0}})), Icon(
+ coordinateSystem(extent={{-150.0,-201.97172322056036},{250.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | bed |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 11.3 |
---|
hRoo | 3.75 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 42.375 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
bw | 13.0 | 90.0 | wall | | ExternalWall | bw2 | 9.29 | 90.0 | wall | | ExternalWall | window | 1.3 | 90.0 | wall | | Window |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | bed |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
bw | 13.0 | 90.0 | wall | | bw2 | 9.29 | 90.0 | wall | | window | 1.3 | 90.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end space_with_same_properties_ideas;
+end space_with_same_properties_ideas;
\ No newline at end of file
diff --git a/tests/data/two_spaces_air_handling_unit.mo b/tests/data/two_spaces_air_handling_unit.mo
index 407edbe..aec6d60 100644
--- a/tests/data/two_spaces_air_handling_unit.mo
+++ b/tests/data/two_spaces_air_handling_unit.mo
@@ -412,7 +412,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_1, occSch2.occupied);
end OccupancyOccupancy_0;
-
+
model VAVControlVav_in_control
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Controller rehBoxCon(
venStd=Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1,
@@ -475,7 +475,7 @@ Controls.BaseClasses.DataBus dataBus
equation
connect(dataBus.OccupiedSpace_2, occSch2.occupied);
end OccupancyOccupancy_1;
-
+
model VAVControlVav_in_control_2
Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Controller rehBoxCon(
venStd=Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard.ASHRAE62_1,
@@ -635,80 +635,80 @@ iconTransformation(origin = {-2, -42}, extent = {{-110, -9}, {-90, 9}}))); Cont
Modelica.Blocks.Sources.RealExpression
ppmCO2SetVav_in_control
(y=0.0);
+Modelica.Blocks.Sources.RealExpression
+ TCooSetVav_in_control_2
+ (y=298.15);
Modelica.Blocks.Sources.RealExpression
THeaSetVav_in_control
(y=293.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetVav_in_control
- (y=298.15);
+ ppmCO2SetVav_in_control_2
+ (y=0.0);
Modelica.Blocks.Sources.RealExpression
TSupSetVav_in_control
(y=293.15);
Modelica.Blocks.Sources.RealExpression
- TCooSetVav_in_control_2
+ TCooSetVav_in_control
(y=298.15);
-Modelica.Blocks.Sources.RealExpression
- ppmCO2SetVav_in_control_2
- (y=0.0);
Modelica.Blocks.Sources.RealExpression
THeaSetVav_in_control_2
(y=293.15);
Modelica.Blocks.Sources.RealExpression
TSupSetVav_in_control_2
(y=293.15);
-Modelica.Blocks.Sources.IntegerExpression
- oveFloSetVav_in_control_2
- (y=0);
Modelica.Blocks.Sources.IntegerExpression
uAhuOpeModAhu_control
(y=0);
Modelica.Blocks.Sources.IntegerExpression
oveDamPosVav_in_control
(y=0);
-Modelica.Blocks.Sources.IntegerExpression
- uOpeModVav_in_control
- (y=1);
Modelica.Blocks.Sources.IntegerExpression
oveFloSetVav_in_control
(y=0);
Modelica.Blocks.Sources.IntegerExpression
- uOpeModVav_in_control_2
+ uOpeModVav_in_control
(y=1);
+Modelica.Blocks.Sources.IntegerExpression
+ oveFloSetVav_in_control_2
+ (y=0);
Modelica.Blocks.Sources.IntegerExpression
oveDamPosVav_in_control_2
(y=0);
+Modelica.Blocks.Sources.IntegerExpression
+ uOpeModVav_in_control_2
+ (y=1);
Modelica.Blocks.Sources.BooleanExpression
- uHeaOffVav_in_control
+ u1OccVav_in_control_2
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1OccVav_in_control
+ u1HotPlaVav_in_control_2
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1WinVav_in_control
+ u1FanVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1SupFanAhu_control
+ u1WinVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- uHeaOffVav_in_control_2
+ u1OccVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
u1HotPlaVav_in_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1WinVav_in_control_2
+ uHeaOffVav_in_control_2
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1FanVav_in_control
+ u1FanVav_in_control_2
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1OccVav_in_control_2
+ u1WinVav_in_control_2
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1FanVav_in_control_2
+ u1SupFanAhu_control
(y=false);
Modelica.Blocks.Sources.BooleanExpression
- u1HotPlaVav_in_control_2
+ uHeaOffVav_in_control
(y=false);
equation
connect(port[1],TRoo[1]. port);
@@ -721,58 +721,58 @@ connect(dataBus.ppmCO2Space_1, TRoo1[1].ppm);
connect(dataBus.ppmCO2Space_2, TRoo1[2].ppm);
connect(dataBus.ppmCO2SetSpace_1,
ppmCO2SetVav_in_control.y);
-connect(dataBus.THeaSetSpace_1,
-THeaSetVav_in_control.y);
-connect(dataBus.TCooSetSpace_1,
-TCooSetVav_in_control.y);
-connect(dataBus.TSupSetSpace_1,
-TSupSetVav_in_control.y);
connect(dataBus.TCooSetSpace_2,
TCooSetVav_in_control_2.y);
+connect(dataBus.THeaSetSpace_1,
+THeaSetVav_in_control.y);
connect(dataBus.ppmCO2SetSpace_2,
ppmCO2SetVav_in_control_2.y);
+connect(dataBus.TSupSetSpace_1,
+TSupSetVav_in_control.y);
+connect(dataBus.TCooSetSpace_1,
+TCooSetVav_in_control.y);
connect(dataBus.THeaSetSpace_2,
THeaSetVav_in_control_2.y);
connect(dataBus.TSupSetSpace_2,
TSupSetVav_in_control_2.y);
-connect(dataBus.oveFloSetSpace_2,
-oveFloSetVav_in_control_2.y);
connect(dataBus.uAhuOpeModAhu_control,
uAhuOpeModAhu_control.y);
connect(dataBus.oveDamPosSpace_1,
oveDamPosVav_in_control.y);
-connect(dataBus.uOpeModSpace_1,
-uOpeModVav_in_control.y);
connect(dataBus.oveFloSetSpace_1,
oveFloSetVav_in_control.y);
-connect(dataBus.uOpeModSpace_2,
-uOpeModVav_in_control_2.y);
+connect(dataBus.uOpeModSpace_1,
+uOpeModVav_in_control.y);
+connect(dataBus.oveFloSetSpace_2,
+oveFloSetVav_in_control_2.y);
connect(dataBus.oveDamPosSpace_2,
oveDamPosVav_in_control_2.y);
-connect(dataBus.uHeaOffSpace_1,
-uHeaOffVav_in_control.y);
-connect(dataBus.u1OccSpace_1,
-u1OccVav_in_control.y);
+connect(dataBus.uOpeModSpace_2,
+uOpeModVav_in_control_2.y);
+connect(dataBus.u1OccSpace_2,
+u1OccVav_in_control_2.y);
+connect(dataBus.u1HotPlaSpace_2,
+u1HotPlaVav_in_control_2.y);
+connect(dataBus.u1FanSpace_1,
+u1FanVav_in_control.y);
connect(dataBus.u1WinSpace_1,
u1WinVav_in_control.y);
-connect(dataBus.u1SupFanAhu_control,
-u1SupFanAhu_control.y);
-connect(dataBus.uHeaOffSpace_2,
-uHeaOffVav_in_control_2.y);
+connect(dataBus.u1OccSpace_1,
+u1OccVav_in_control.y);
connect(dataBus.u1HotPlaSpace_1,
u1HotPlaVav_in_control.y);
-connect(dataBus.u1WinSpace_2,
-u1WinVav_in_control_2.y);
-connect(dataBus.u1FanSpace_1,
-u1FanVav_in_control.y);
-connect(dataBus.u1OccSpace_2,
-u1OccVav_in_control_2.y);
+connect(dataBus.uHeaOffSpace_2,
+uHeaOffVav_in_control_2.y);
connect(dataBus.u1FanSpace_2,
u1FanVav_in_control_2.y);
-connect(dataBus.u1HotPlaSpace_2,
-u1HotPlaVav_in_control_2.y);
+connect(dataBus.u1WinSpace_2,
+u1WinVav_in_control_2.y);
+connect(dataBus.u1SupFanAhu_control,
+u1SupFanAhu_control.y);
+connect(dataBus.uHeaOffSpace_1,
+uHeaOffVav_in_control.y);
end DataServer;
-
+
partial model PartialBoilerControl
@@ -2389,7 +2389,7 @@ connect(dataBus.y_actualVav_in, vav.y_actual);
connect(dataBus.VDis_flowVav_in_control, senVolFlo.V_flow);
connect(dataBus.TDisVav_in_control, senTem.T);
end VAVBoxVav_in;
-
+
model VAVBoxVav_in_2
extends two_spaces_air_handling_unit.Common.Fluid.Ventilation.PartialVAVBox;
Controls.BaseClasses.DataBus dataBus
@@ -2401,7 +2401,7 @@ connect(dataBus.y_actualVav_in_2, vav.y_actual);
connect(dataBus.VDis_flowVav_in_control_2, senVolFlo.V_flow);
connect(dataBus.TDisVav_in_control_2, senTem.T);
end VAVBoxVav_in_2;
-
+
model AhuAhu
extends two_spaces_air_handling_unit.Common.Fluid.Ventilation.PartialAhu;
Controls.BaseClasses.DataBus dataBus
@@ -2420,7 +2420,7 @@ connect(dataBus.TAirSupAhu_control, TSup.T);
connect(dataBus.TAirMixAhu_control, TMix.T);
connect(dataBus.dpDucAhu_control, dpDisSupFan.p_rel);
end AhuAhu;
-
+
end Ventilation;
end Fluid;
@@ -2532,11 +2532,11 @@ model building
tauIR=0.0,
absIR_a=0.84,
absIR_b=0.84)
-
+
},
final gas={
Buildings.HeatTransfer.Data.Gases.Air(x=0.0127)
-
+
},
UFra=1.4)
annotation (
@@ -2584,11 +2584,11 @@ package MediumW = Buildings.Media.Water "Medium model";
Buildings.ThermalZones.Detailed.MixedAir space_1(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=1,
datConExt(
@@ -2621,9 +2621,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
two_spaces_air_handling_unit.Common.Controls.ventilation.OccupancyOccupancy_0
- occupancy_0( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_0( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { -50, 0 },
extent = {{-10, -10}, {10, 10}}
@@ -2641,12 +2641,12 @@ package MediumW = Buildings.Media.Water "Medium model";
THeaAirInl_nominal=30,
THeaAirDis_nominal=25
) annotation (
- Placement(transformation(origin = { -42.18942382969115, -193.7928671787851 },
+ Placement(transformation(origin = { 113.41034389443956, 159.73136154399245 },
extent = {{-10, -10}, {10, 10}}
)));
two_spaces_air_handling_unit.Common.Controls.ventilation.VAVControlVav_in_control
vav_in_control annotation (
- Placement(transformation(origin = { 3.893154391652493, -181.8084809304654 },
+ Placement(transformation(origin = { 17.652569996161734, 187.9238405057088 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2655,7 +2655,7 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { -183.05674198924842, -15.426709704910158 },
+ Placement(transformation(origin = { -159.0962451359441, -57.2080503576125 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2664,16 +2664,16 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { 183.0685063465907, 45.380706034375606 },
+ Placement(transformation(origin = { -156.42914530483714, 71.98886570057435 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.ThermalZones.Detailed.MixedAir space_2(
redeclare package Medium = Medium,
- mSenFac=1,
- AFlo=20,
- hRoo=2,
+ hRoo=2.0,
+ AFlo=20.0,
linearizeRadiation=true,
m_flow_nominal=0.01,
+ mSenFac=1.0,
T_start=294.15
,nPorts = 3, nConExt=0, nSurBou=1,
surBou(
@@ -2700,9 +2700,9 @@ package MediumW = Buildings.Media.Water "Medium model";
extent = {{-20, -20}, {20, 20}}
)));
two_spaces_air_handling_unit.Common.Controls.ventilation.OccupancyOccupancy_1
- occupancy_1( occupancy=3600*{7, 19},
- gain=[35; 70; 30],
- k=1/6/4
+ occupancy_1( gain=[35; 70; 30],
+ k=1/6/4,
+ occupancy=3600*{7, 19}
) annotation (
Placement(transformation(origin = { 200, 150 },
extent = {{-10, -10}, {10, 10}}
@@ -2720,12 +2720,12 @@ package MediumW = Buildings.Media.Water "Medium model";
THeaAirInl_nominal=30,
THeaAirDis_nominal=25
) annotation (
- Placement(transformation(origin = { -94.03025699552035, -182.31190177543226 },
+ Placement(transformation(origin = { -41.42528611319812, -180.05516484992503 },
extent = {{-10, -10}, {10, 10}}
)));
two_spaces_air_handling_unit.Common.Controls.ventilation.VAVControlVav_in_control_2
vav_in_control_2 annotation (
- Placement(transformation(origin = { 191.13299713849628, -3.963150272392045 },
+ Placement(transformation(origin = { -86.46654952483628, 180.33584788525854 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2734,7 +2734,7 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { 71.41398045498889, 181.96479994663645 },
+ Placement(transformation(origin = { -112.80252685932349, 139.61016751931984 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.FixedResistances.PressureDrop
@@ -2743,7 +2743,7 @@ package MediumW = Buildings.Media.Water "Medium model";
redeclare package Medium = Medium,
allowFlowReversal = false,
dp_nominal=40) "Pressure drop for return duct" annotation (
- Placement(transformation(origin = { 21.878211695475137, 181.70323506908244 },
+ Placement(transformation(origin = { 140.05479359988803, -140.9941226103441 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.HeatTransfer.Conduction.MultiLayer
@@ -2770,12 +2770,12 @@ package MediumW = Buildings.Media.Water "Medium model";
VRoo={100,100},
AFlo={20,20},
mCooVAV_flow_nominal={0.01,0.01}) annotation (
- Placement(transformation(origin = { 126.36757299978272, 164.2106838289815 },
+ Placement(transformation(origin = { 3.045499541097685, -200.0 },
extent = {{-10, -10}, {10, 10}}
)));
two_spaces_air_handling_unit.Common.Controls.ventilation.AhuControlAhu_control
ahu_control annotation (
- Placement(transformation(origin = { -152.11465791130294, 123.53394572242983 },
+ Placement(transformation(origin = { -89.74333878604517, -176.29054137107494 },
extent = {{-10, -10}, {10, 10}}
)));
Buildings.Fluid.Sources.Outside boundary
@@ -2786,7 +2786,7 @@ package MediumW = Buildings.Media.Water "Medium model";
two_spaces_air_handling_unit.Common.Controls.ventilation.DataServer
data_bus (redeclare package
Medium = Medium) annotation (
- Placement(transformation(origin = { 100.75643283737656, -170.95960089910207 },
+ Placement(transformation(origin = { -194.60755053959346, -24.365431563911947 },
extent = {{-10, -10}, {10, 10}}
)));
@@ -2798,7 +2798,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.ports[1],pressure_drop_duct_out.port_a)
annotation (Line(
-points={{ 0.0, 0.0 } ,{ -91.52837099462421, 0.0 } ,{ -91.52837099462421, -15.426709704910158 } ,{ -183.05674198924842, -15.426709704910158 } },
+points={{ 0.0, 0.0 } ,{ -79.54812256797204, 0.0 } ,{ -79.54812256797204, -57.2080503576125 } ,{ -159.0962451359441, -57.2080503576125 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_1.surf_surBou[1],internal_space_1_space_2.port_a)
@@ -2812,22 +2812,22 @@ points={{ 0.0, 0.0 } ,{ -50.0, 0.0 } ,{ -50.0, 200.0 } ,{ -100.0, 200.0
thickness=0.05,
smooth=Smooth.None)); connect(vav_in.dataBus,vav_in_control.dataBus)
annotation (Line(
-points={{ -42.18942382969115, -193.7928671787851 } ,{ -19.14813471901933, -193.7928671787851 } ,{ -19.14813471901933, -181.8084809304654 } ,{ 3.893154391652493, -181.8084809304654 } },
+points={{ 113.41034389443956, 159.73136154399245 } ,{ 65.53145694530065, 159.73136154399245 } ,{ 65.53145694530065, 187.9238405057088 } ,{ 17.652569996161734, 187.9238405057088 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(vav_in.port_bAir,space_1.ports[2])
annotation (Line(
-points={{ -42.18942382969115, -193.7928671787851 } ,{ -21.094711914845576, -193.7928671787851 } ,{ -21.094711914845576, 0.0 } ,{ 0.0, 0.0 } },
+points={{ 113.41034389443956, 159.73136154399245 } ,{ 56.70517194721978, 159.73136154399245 } ,{ 56.70517194721978, 0.0 } ,{ 0.0, 0.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_out.port_b,ahu.port_a)
annotation (Line(
-points={{ -183.05674198924842, -15.426709704910158 } ,{ -28.344584494732857, -15.426709704910158 } ,{ -28.344584494732842, 164.2106838289815 } ,{ 126.36757299978272, 164.2106838289815 } },
+points={{ -159.0962451359441, -57.2080503576125 } ,{ -78.0253727974232, -57.2080503576125 } ,{ -78.0253727974232, -200.0 } ,{ 3.045499541097685, -200.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_in.port_b,vav_in.port_aAir)
annotation (Line(
-points={{ 183.0685063465907, 45.380706034375606 } ,{ 70.43954125844978, 45.380706034375606 } ,{ 70.43954125844978, -193.7928671787851 } ,{ -42.18942382969115, -193.7928671787851 } },
+points={{ -156.42914530483714, 71.98886570057435 } ,{ -21.50940070519877, 71.98886570057435 } ,{ -21.5094007051988, 159.73136154399245 } ,{ 113.41034389443956, 159.73136154399245 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.qGai_flow,occupancy_1.y)
@@ -2837,7 +2837,7 @@ color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.ports[1],pressure_drop_duct_out_2.port_a)
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 160.70699022749443, 150.0 } ,{ 160.70699022749443, 181.96479994663645 } ,{ 71.41398045498889, 181.96479994663645 } },
+points={{ 250.0, 150.0 } ,{ 68.59873657033825, 150.0 } ,{ 68.59873657033826, 139.61016751931984 } ,{ -112.80252685932349, 139.61016751931984 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(space_2.surf_surBou[1],internal_space_1_space_2.port_b)
@@ -2851,42 +2851,42 @@ points={{ 250.0, 150.0 } ,{ 75.0, 150.0 } ,{ 75.0, 200.0 } ,{ -100.0, 2
thickness=0.05,
smooth=Smooth.None)); connect(vav_in_2.dataBus,vav_in_control_2.dataBus)
annotation (Line(
-points={{ -94.03025699552035, -182.31190177543226 } ,{ 48.55137007148795, -182.31190177543226 } ,{ 48.55137007148798, -3.963150272392045 } ,{ 191.13299713849628, -3.963150272392045 } },
+points={{ -41.42528611319812, -180.05516484992503 } ,{ -63.9459178190172, -180.05516484992503 } ,{ -63.9459178190172, 180.33584788525854 } ,{ -86.46654952483628, 180.33584788525854 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(vav_in_2.port_bAir,space_2.ports[2])
annotation (Line(
-points={{ -94.03025699552035, -182.31190177543226 } ,{ 77.98487150223983, -182.31190177543226 } ,{ 77.98487150223983, 150.0 } ,{ 250.0, 150.0 } },
+points={{ -41.42528611319812, -180.05516484992503 } ,{ 104.28735694340094, -180.05516484992503 } ,{ 104.28735694340094, 150.0 } ,{ 250.0, 150.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_out_2.port_b,ahu.port_a)
annotation (Line(
-points={{ 71.41398045498889, 181.96479994663645 } ,{ 98.8907767273858, 181.96479994663645 } ,{ 98.8907767273858, 164.2106838289815 } ,{ 126.36757299978272, 164.2106838289815 } },
+points={{ -112.80252685932349, 139.61016751931984 } ,{ -54.878513659112905, 139.61016751931984 } ,{ -54.878513659112905, -200.0 } ,{ 3.045499541097685, -200.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(pressure_drop_duct_in_2.port_b,vav_in_2.port_aAir)
annotation (Line(
-points={{ 21.878211695475137, 181.70323506908244 } ,{ -36.0760226500226, 181.70323506908244 } ,{ -36.07602265002261, -182.31190177543226 } ,{ -94.03025699552035, -182.31190177543226 } },
+points={{ 140.05479359988803, -140.9941226103441 } ,{ 49.31475374334495, -140.9941226103441 } ,{ 49.31475374334496, -180.05516484992503 } ,{ -41.42528611319812, -180.05516484992503 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(ahu.dataBus,ahu_control.dataBus)
annotation (Line(
-points={{ 126.36757299978272, 164.2106838289815 } ,{ -12.873542455760102, 164.2106838289815 } ,{ -12.873542455760116, 123.53394572242983 } ,{ -152.11465791130294, 123.53394572242983 } },
+points={{ 3.045499541097685, -200.0 } ,{ -43.348919622473744, -200.0 } ,{ -43.348919622473744, -176.29054137107494 } ,{ -89.74333878604517, -176.29054137107494 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(ahu.port_b,pressure_drop_duct_in.port_a)
annotation (Line(
-points={{ 126.36757299978272, 164.2106838289815 } ,{ 154.71803967318672, 164.2106838289815 } ,{ 154.71803967318672, 45.380706034375606 } ,{ 183.0685063465907, 45.380706034375606 } },
+points={{ 3.045499541097685, -200.0 } ,{ -76.69182288186973, -200.0 } ,{ -76.69182288186973, 71.98886570057435 } ,{ -156.42914530483714, 71.98886570057435 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(ahu.port_b,pressure_drop_duct_in_2.port_a)
annotation (Line(
-points={{ 126.36757299978272, 164.2106838289815 } ,{ 74.12289234762893, 164.2106838289815 } ,{ 74.12289234762892, 181.70323506908244 } ,{ 21.878211695475137, 181.70323506908244 } },
+points={{ 3.045499541097685, -200.0 } ,{ 71.55014657049286, -200.0 } ,{ 71.55014657049286, -140.9941226103441 } ,{ 140.05479359988803, -140.9941226103441 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(boundary.ports,ahu.ports)
annotation (Line(
-points={{ -200.0, 100.0 } ,{ -36.81621350010863, 100.0 } ,{ -36.816213500108645, 164.2106838289815 } ,{ 126.36757299978272, 164.2106838289815 } },
+points={{ -200.0, 100.0 } ,{ -98.47725022945116, 100.0 } ,{ -98.47725022945116, -200.0 } ,{ 3.045499541097685, -200.0 } },
color={255,204,51},
thickness=0.5,
smooth=Smooth.None)); connect(boundary.weaBus,weather_13.weaBus)
@@ -2895,45 +2895,45 @@ points={{ -200.0, 100.0 } ,{ -150.0, 100.0 } ,{ -150.0, 200.0 } ,{ -100
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_0.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -50.0, 0.0 } ,{ 25.378216418688282, 0.0 } ,{ 25.378216418688282, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ -50.0, 0.0 } ,{ -122.30377526979673, 0.0 } ,{ -122.30377526979673, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(vav_in_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 3.893154391652493, -181.8084809304654 } ,{ 52.32479361451453, -181.8084809304654 } ,{ 52.324793614514526, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 17.652569996161734, 187.9238405057088 } ,{ -88.47749027171587, 187.9238405057088 } ,{ -88.47749027171587, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(occupancy_1.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 200.0, 150.0 } ,{ 150.37821641868828, 150.0 } ,{ 150.37821641868828, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 200.0, 150.0 } ,{ 2.696224730203255, 150.0 } ,{ 2.6962247302032836, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(vav_in_control_2.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ 191.13299713849628, -3.963150272392045 } ,{ 145.94471498793644, -3.963150272392045 } ,{ 145.94471498793644, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ -86.46654952483628, 180.33584788525854 } ,{ -140.53705003221486, 180.33584788525854 } ,{ -140.53705003221486, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(ahu_control.dataBus,data_bus.dataBus)
annotation (Line(
-points={{ -152.11465791130294, 123.53394572242983 } ,{ -25.67911253696319, 123.53394572242983 } ,{ -25.67911253696319, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ -89.74333878604517, -176.29054137107494 } ,{ -142.1754446628193, -176.29054137107494 } ,{ -142.1754446628193, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.heaPorAir,data_bus.port[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 50.37821641868828, 0.0 } ,{ 50.37821641868828, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 0.0, 0.0 } ,{ -97.30377526979673, 0.0 } ,{ -97.30377526979673, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_1.ports[3],data_bus.port_a[1])
annotation (Line(
-points={{ 0.0, 0.0 } ,{ 50.37821641868828, 0.0 } ,{ 50.37821641868828, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 0.0, 0.0 } ,{ -97.30377526979673, 0.0 } ,{ -97.30377526979673, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.heaPorAir,data_bus.port[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 175.37821641868828, 150.0 } ,{ 175.37821641868828, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 250.0, 150.0 } ,{ 27.696224730203255, 150.0 } ,{ 27.696224730203284, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
smooth=Smooth.None)); connect(space_2.ports[3],data_bus.port_a[2])
annotation (Line(
-points={{ 250.0, 150.0 } ,{ 175.37821641868828, 150.0 } ,{ 175.37821641868828, -170.95960089910207 } ,{ 100.75643283737656, -170.95960089910207 } },
+points={{ 250.0, 150.0 } ,{ 27.696224730203255, 150.0 } ,{ 27.696224730203284, -24.365431563911947 } ,{ -194.60755053959346, -24.365431563911947 } },
thickness=0.05,
-smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.00000000000003,-243.7928671787851},{300.0,250.0}})), Icon(
- coordinateSystem(extent={{-250.00000000000003,-243.7928671787851},{300.0,250.0}})));
+smooth=Smooth.None));annotation (Diagram(coordinateSystem(extent={{-250.0,-250.0},{300.0,250.0}})), Icon(
+ coordinateSystem(extent={{-250.0,-250.0},{300.0,250.0}})));
annotation (
- Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name | type |
---|
pressure_drop_duct_in | Duct | vav_in | VAV |
|
---|
ventilation_outlets | name | type |
---|
pressure_drop_duct_out | Duct |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w1_1 | 10.0 | 135.0 | wall | | ExternalWall | w2_1 | 10.0 | 45.0 | wall | | ExternalWall | floor_2 | 10.0 | 90.0 | floor | | FloorOnGround | win1_1 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
name | space_2 |
---|
parameters | mSenFac | 1.0 |
---|
AFlo | 20.0 |
---|
hRoo | 2.0 |
---|
linearizeRadiation | true |
---|
m_flow_nominal | 0.01 |
---|
T_start | 294.15 |
---|
volume | 40.0 |
---|
|
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name | type |
---|
pressure_drop_duct_in_2 | Duct | vav_in_2 | VAV |
|
---|
ventilation_outlets | name | type |
---|
pressure_drop_duct_out_2 | Duct |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction | type |
---|
w2_2 | 10.0 | 45.0 | wall | | ExternalWall | floor_3 | 10.0 | 90.0 | floor | | FloorOnGround | win1_2 | 1.0 | 45.0 | wall | | Window |
|
---|
internal_elements | name | surface | azimuth | tilt | construction | type |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | | InternalElement |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
+ Documentation(info="SpacesSpaces
Introduction
Introduction
name | space_1 |
---|
parameters | |
---|
occupancy | name | occupancy_0 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name |
---|
pressure_drop_duct_in | vav_in |
|
---|
ventilation_outlets | name |
---|
pressure_drop_duct_out |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w1_1 | 10.0 | 135.0 | wall | | w2_1 | 10.0 | 45.0 | wall | | floor_2 | 10.0 | 90.0 | floor | | win1_1 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
name | space_2 |
---|
parameters | |
---|
occupancy | name | occupancy_1 |
---|
parameters | |
---|
|
---|
ventilation_inlets | name |
---|
pressure_drop_duct_in_2 | vav_in_2 |
|
---|
ventilation_outlets | name |
---|
pressure_drop_duct_out_2 |
|
---|
external_boundaries | name | surface | azimuth | tilt | construction |
---|
w2_2 | 10.0 | 45.0 | wall | | floor_3 | 10.0 | 90.0 | floor | | win1_2 | 1.0 | 45.0 | wall | |
|
---|
internal_elements | name | surface | azimuth | tilt | construction |
---|
internal_space_1_space_2 | 10.0 | 10.0 | wall | |
|
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
name | external_wall |
---|
layers | material | thickness |
---|
name | concrete |
---|
k | 1.4 |
---|
c | 840.0 |
---|
rho | 2240.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 | name | insulation_board |
---|
k | 0.03 |
---|
c | 1200.0 |
---|
rho | 40.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.02 | name | plywood |
---|
k | 0.12 |
---|
c | 1210.0 |
---|
rho | 540.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.1 |
|
---|
name | internal_wall |
---|
layers | material | thickness |
---|
name | brick |
---|
k | 0.89 |
---|
c | 790.0 |
---|
rho | 1920.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| 0.2 |
|
---|
name | double_glazing |
---|
layers | thickness | material | layer_type |
---|
0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass | 0.0127 | name | Air |
---|
k | 0.025 |
---|
c | 1005.0 |
---|
rho | 1.2 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
| gas | 0.003 | name | id_100 |
---|
k | 1.0 |
---|
c | 840.0 |
---|
rho | 2500.0 |
---|
epsLw | 0.85 |
---|
epsSw | 0.65 |
---|
solar_transmittance | |
---|
solar_reflectance_outside_facing | |
---|
solar_reflectance_room_facing | |
---|
infrared_transmissivity | 0.0 |
---|
infrared_absorptivity_outside_facing | 0.84 |
---|
infrared_absorptivity_room_facing | 0.84 |
---|
| glass |
|
---|
u_value_frame | 1.4 |
---|
Conclusions
Conclusions
Spaces
Introduction
Introduction
Conclusions
Conclusions
"));
end building;
-end two_spaces_air_handling_unit;
+end two_spaces_air_handling_unit;
\ No newline at end of file
diff --git a/tests/test_element.py b/tests/test_element.py
index 9dd2821..6cd4050 100644
--- a/tests/test_element.py
+++ b/tests/test_element.py
@@ -9,13 +9,21 @@
from pydantic import create_model
-from trano.models.elements.boiler import BaseBoiler
+from trano.models.elements.boiler import BaseBoiler, BoilerParameters
from trano.models.elements.boundary import BaseBoundaryComponent
from trano.models.elements.bus import data_bus_factory
from trano.models.elements.controls.ahu import BaseAhuControl
-from trano.models.elements.controls.boiler import BaseBoilerControl, SimpleBoilerControl
+from trano.models.elements.controls.base import PIDParameters
+from trano.models.elements.controls.boiler import (
+ BaseBoilerControl,
+ SimpleBoilerControl,
+ BoilerParameters as BoilerControlParameters,
+)
from trano.models.elements.controls.collector import BaseCollectorControl
-from trano.models.elements.controls.emission import BaseEmissionControl
+from trano.models.elements.controls.emission import (
+ BaseEmissionControl,
+ ControlLoopsParameters,
+)
from trano.models.elements.controls.three_way_valve import BaseThreeWayValveControl
from trano.models.elements.controls.vav import BaseVavControl
from trano.models.elements.damper import BaseDamperDetailed, BaseDamper
@@ -27,23 +35,33 @@
IdeasInternalElement,
)
from trano.models.elements.envelope.window import IdeasMergedWindows
-from trano.models.elements.occupancy import OccupancyComponent
-from trano.models.elements.pump import BasePump
-from trano.models.elements.radiator import BaseRadiator, BaseIdealRadiator
-from trano.models.elements.space import IdeasSpace, BuildingsSpace
-from trano.models.elements.split_valve import BaseSplitValve
+from trano.models.elements.occupancy import OccupancyComponent, OccupancyParameters
+from trano.models.elements.pump import BasePump, PumpParameters
+from trano.models.elements.radiator import (
+ BaseRadiator,
+ BaseIdealRadiator,
+ RadiatorParameter,
+)
+from trano.models.elements.space import IdeasSpace, BuildingsSpace, SpaceParameter
+from trano.models.elements.split_valve import BaseSplitValve, SplitValveParameters
from trano.models.elements.temperature_sensor import BaseTemperatureSensor
-from trano.models.elements.three_way_valve import BaseThreeWayValve
-from trano.models.elements.valve import BaseValve
+from trano.models.elements.three_way_valve import (
+ BaseThreeWayValve,
+ ThreeWayValveParameters,
+)
+from trano.models.elements.valve import BaseValve, ValveParameters
from trano.models.elements.weather import (
BuildingsWeatherComponent,
IdeasWeatherComponent,
+ WeatherParameters,
)
def test_validate_schema() -> None:
for name in ["boiler", "valve", "window"]:
- boiler = Path(f"/home/aan/Documents/trano/trano/models/elements/models/{name}.yaml")
+ boiler = Path(
+ f"/home/aan/Documents/trano/trano/models/elements/models/{name}.yaml"
+ )
data_model_path = (
Path(__file__)
.parents[1]
@@ -109,8 +127,11 @@ def test_create_yaml():
with ff.open("w+") as f:
yaml.safe_dump({"components": [component]}, f)
+
def to_camel_case(snake_str: str) -> str:
return "".join(x.capitalize() for x in snake_str.lower().split("_"))
+
+
def test_create_yamls():
configs = {
"boiler": {"default": [BaseBoiler()]},
@@ -173,7 +194,10 @@ def test_create_yamls():
if isinstance(parameters, set):
parameters = list(parameters)
function_name = component.parameter_processing.func.__name__
- component_["parameter_processing"] = {"function": function_name, "parameter":parameters}
+ component_["parameter_processing"] = {
+ "function": function_name,
+ "parameter": parameters,
+ }
else:
function_name = component.parameter_processing.__name__
component_["parameter_processing"] = {"function": function_name}
@@ -275,3 +299,151 @@ def test_create_radiator_yaml():
ff = Path("/home/aan/Documents/trano/tests/radiator.yaml")
with ff.open("w+") as f:
yaml.safe_dump({"components": components}, f)
+
+
+def test_parameters():
+ parameters = [
+ BoilerParameters(),
+ OccupancyParameters(),
+ PumpParameters(),
+ RadiatorParameter(),
+ SpaceParameter(),
+ SplitValveParameters(),
+ ThreeWayValveParameters(),
+ ValveParameters(),
+ WeatherParameters(),
+ PIDParameters(),
+ BoilerControlParameters(),
+ ControlLoopsParameters(),
+ ]
+ for p in parameters:
+ p.model_json_schema()
+
+
+def _get_range(annotation):
+ if "Literal" in str(annotation) or "str" in str(annotation):
+ return "string"
+ elif "float" in str(annotation):
+ return "float"
+ elif "int" in str(annotation):
+ return "integer"
+ elif "Boolean" in str(annotation) or "bool" in str(annotation):
+ return "boolean"
+ else:
+ raise Exception(str(annotation))
+
+
+def _get_type(_type):
+ if _type == "string":
+ return str
+ elif _type == "float":
+ return float
+ elif _type == "integer":
+ return int
+ elif _type == "boolean":
+ return bool
+ else:
+ raise Exception("Unknown type")
+
+
+def _get_default(v):
+ value = v["ifabsent"].replace(v["range"], "")[1:-1]
+ try:
+ return _get_type(v["range"])(value)
+ except Exception as e:
+ if value == "None":
+ return None
+ raise e
+
+
+from pydantic.fields import computed_field, Field
+
+computed_fields = {
+ "nominal_mass_flow_rate_boiler": "lambda self: self.sca_fac_rad * self.nominal_heating_power / self.dt_rad_nominal / 4200",
+ "nominal_mass_flow_radiator_loop": "lambda self: self.sca_fac_rad * self.nominal_heating_power / self.dt_rad_nominal / 4200",
+ "v_flow": "lambda self: f'{self.nominal_mass_flow_rate_boiler}' '/1000*{0.5,1}'",
+ "dry_mass_of_radiator_that_will_be_lumped_to_water_heat_capacity": "lambda self: 0.0263 * abs(self.nominal_heating_power_positive_for_heating)",
+ "water_volume_of_radiator": "lambda self:5.8e-5 * abs(self.nominal_heating_power_positive_for_heating)",
+ "volume": "lambda self:self.floor_area * self.average_room_height"
+}
+
+
+def test_dump_schema():
+ from linkml_runtime.dumpers import json_dumper
+ from linkml.generators.pydanticgen import PydanticGenerator
+
+ parameters_ = [
+ (BoilerParameters, ["Boiler"]),
+ (OccupancyParameters, ["Occupancy"]),
+ (PumpParameters, ["Pump"]),
+ (RadiatorParameter, ["Radiator"]),
+ (SpaceParameter, ["Space"]),
+ (SplitValveParameters, ["SplitValve"]),
+ (ThreeWayValveParameters, ["ThreeWayValve"]),
+ (ValveParameters, ["Valve"]),
+ (WeatherParameters, ["Weather"]),
+ (PIDParameters, ["ThreeWayValveControl", "CollectorControl"]),
+ (ControlLoopsParameters, ["EmissionControl"]),
+ (BoilerControlParameters, ["BoilerControl"]),
+ ]
+ parameter_path = Path("/home/aan/Documents/trano/trano/data_models/parameters.yaml")
+ parameter = {}
+ for par, classes_ in parameters_:
+ if "" in str(par):
+ par_name = "BoilerControlParameters"
+ else:
+ par_name = par.__name__
+ parameter[par_name] = {"attributes": {}, "classes": classes_}
+
+ for field_name, field in par.model_fields.items():
+ if par_name == SplitValveParameters.__name__ and field_name == "m_flow_nominal":
+ range = 'string'
+ default = "string(0.008*{1,-1,-1})"
+ else:
+ range = _get_range(field.annotation)
+ default = f"{_get_range(field.annotation)}({field.default})"
+ parameter[par_name]["attributes"][field_name] = {
+ "range": range,
+ "description": str(field.description),
+ "alias": str(field.alias),
+ "ifabsent": default,
+ }
+ for field_name, field in par.model_computed_fields.items():
+ parameter[par_name]["attributes"][field_name] = {
+ "func": computed_fields.get(field_name),
+ "type": field.return_type.__name__,
+ "alias": field.alias
+ }
+ with parameter_path.open("w+") as f:
+ yaml.safe_dump(parameter, f)
+
+
+def test_computed_field():
+ m = create_model(
+ "Test",
+ a=(int, Field(default=12, alias="b", description="c")),
+ b=computed_field(lambda self: 10 * self.a, return_type=float),
+ )
+ m().b
+
+
+from pydantic.fields import FieldInfo
+
+
+# def test_parameters_loading():
+# parameter_path = Path("/home/aan/Documents/trano/trano/data_models/parameters.yaml")
+# data = yaml.safe_load(parameter_path.read_text())
+# # a = 12
+# classes = []
+# for name, parameter in data.items():
+# attrib_ = {
+# k: (
+# _get_type(v["range"]),
+# FieldInfo(default=_get_default(v), alias=v.get("alias", None), description=v.get("description", None)),
+# )
+# for k, v in parameter["attributes"].items()
+# }
+# classes.append(create_model(
+# name, **attrib_
+# ))
+# a = 12
diff --git a/trano/data_models/parameters.yaml b/trano/data_models/parameters.yaml
index e69de29..490d896 100644
--- a/trano/data_models/parameters.yaml
+++ b/trano/data_models/parameters.yaml
@@ -0,0 +1,560 @@
+BoilerControlParameters:
+ attributes:
+ threshold_outdoor_air_cutoff:
+ alias: threshold_outdoor_air_cutoff
+ description: None
+ ifabsent: float(288.15)
+ range: float
+ threshold_to_switch_off_boiler:
+ alias: threshold_to_switch_off_boiler
+ description: None
+ ifabsent: float(288.15)
+ range: float
+ tsup_nominal:
+ alias: TSup_nominal
+ description: None
+ ifabsent: float(353.15)
+ range: float
+ classes:
+ - BoilerControl
+BoilerParameters:
+ attributes:
+ coefficients_for_efficiency_curve:
+ alias: a
+ description: None
+ ifabsent: string({0.9})
+ range: string
+ dp:
+ alias: dp
+ description: None
+ ifabsent: string((3000 + 2000)*{2,1})
+ range: string
+ dp_nominal:
+ alias: dp_nominal
+ description: None
+ ifabsent: float(5000)
+ range: float
+ dt_boi_nominal:
+ alias: dTBoi_nominal
+ description: None
+ ifabsent: float(20)
+ range: float
+ dt_rad_nominal:
+ alias: dTRad_nominal
+ description: None
+ ifabsent: float(10)
+ range: float
+ effcur:
+ alias: effCur
+ description: None
+ ifabsent: string(Buildings.Fluid.Types.EfficiencyCurves.Constant)
+ range: string
+ fraction_of_nominal_flow_rate_where_flow_transitions_to_laminar:
+ alias: deltaM
+ description: None
+ ifabsent: float(0.1)
+ range: float
+ fuel_type:
+ alias: fue
+ description: None
+ ifabsent: string(Buildings.Fluid.Data.Fuels.HeatingOilLowerHeatingValue())
+ range: string
+ height_of_tank_without_insulation:
+ alias: hTan
+ description: None
+ ifabsent: float(2)
+ range: float
+ if_actual_temperature_at_port_is_computed:
+ alias: show_T
+ description: None
+ ifabsent: string(false)
+ range: string
+ nominal_heating_power:
+ alias: Q_flow_nominal
+ description: None
+ ifabsent: float(2000)
+ range: float
+ nominal_mass_flow_radiator_loop:
+ alias: null
+ func: 'lambda self: self.sca_fac_rad * self.nominal_heating_power / self.dt_rad_nominal
+ / 4200'
+ type: float
+ nominal_mass_flow_rate_boiler:
+ alias: null
+ func: 'lambda self: self.sca_fac_rad * self.nominal_heating_power / self.dt_rad_nominal
+ / 4200'
+ type: float
+ number_of_volume_segments:
+ alias: nSeg
+ description: None
+ ifabsent: integer(4)
+ range: integer
+ sca_fac_rad:
+ alias: scaFacRad
+ description: None
+ ifabsent: float(1.5)
+ range: float
+ tank_volume:
+ alias: VTan
+ description: None
+ ifabsent: float(0.2)
+ range: float
+ temperature_used_to_compute_nominal_efficiency:
+ alias: T_nominal
+ description: None
+ ifabsent: float(353.15)
+ range: float
+ thickness_of_insulation:
+ alias: dIns
+ description: None
+ ifabsent: float(0.002)
+ range: float
+ use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
+ alias: linearizeFlowResistance
+ description: None
+ ifabsent: string(false)
+ range: string
+ v_flow:
+ alias: V_flow
+ func: 'lambda self: f''{self.nominal_mass_flow_rate_boiler}'' ''/1000*{0.5,1}'''
+ type: str
+ classes:
+ - Boiler
+ControlLoopsParameters:
+ attributes:
+ dt_hys:
+ alias: dTHys
+ description: None
+ ifabsent: float(0.25)
+ range: float
+ k_coo_con:
+ alias: kCooCon
+ description: None
+ ifabsent: float(0.1)
+ range: float
+ k_hea_con:
+ alias: kHeaCon
+ description: None
+ ifabsent: float(0.1)
+ range: float
+ loo_hys:
+ alias: looHys
+ description: None
+ ifabsent: float(0.01)
+ range: float
+ ti_coo_con:
+ alias: TiCooCon
+ description: None
+ ifabsent: float(900)
+ range: float
+ ti_hea_con:
+ alias: TiHeaCon
+ description: None
+ ifabsent: float(900)
+ range: float
+ tim_che:
+ alias: timChe
+ description: None
+ ifabsent: float(30)
+ range: float
+ classes:
+ - EmissionControl
+OccupancyParameters:
+ attributes:
+ gain:
+ alias: gain
+ description: None
+ ifabsent: string([35; 70; 30])
+ range: string
+ heat_gain_if_occupied:
+ alias: k
+ description: None
+ ifabsent: string(1/6/4)
+ range: string
+ occupancy:
+ alias: occupancy
+ description: None
+ ifabsent: string(3600*{7, 19})
+ range: string
+ classes:
+ - Occupancy
+PIDParameters:
+ attributes:
+ controller_type:
+ alias: controllerType
+ description: None
+ ifabsent: string(Buildings.Controls.OBC.CDL.Types.SimpleController.PI)
+ range: string
+ k:
+ alias: k
+ description: None
+ ifabsent: float(1)
+ range: float
+ nd:
+ alias: Nd
+ description: None
+ ifabsent: float(10)
+ range: float
+ ni:
+ alias: Ni
+ description: None
+ ifabsent: float(0.9)
+ range: float
+ r:
+ alias: r
+ description: None
+ ifabsent: float(1)
+ range: float
+ td:
+ alias: Td
+ description: None
+ ifabsent: float(0.1)
+ range: float
+ ti:
+ alias: Ti
+ description: None
+ ifabsent: float(0.5)
+ range: float
+ y_max:
+ alias: yMax
+ description: None
+ ifabsent: float(1)
+ range: float
+ y_min:
+ alias: yMin
+ description: None
+ ifabsent: float(0)
+ range: float
+ classes:
+ - ThreeWayValveControl
+ - CollectorControl
+PumpParameters:
+ attributes:
+ compute_power_using_similarity_laws:
+ alias: computePowerUsingSimilarityLaws
+ description: None
+ ifabsent: boolean(None)
+ range: boolean
+ constant_input_set_point:
+ alias: constInput
+ description: None
+ ifabsent: float(None)
+ range: float
+ control_input_type:
+ alias: inputType
+ description: None
+ ifabsent: string(None)
+ range: string
+ dp_nominal:
+ alias: dp_nominal
+ description: None
+ ifabsent: float(10000)
+ range: float
+ m_flow_nominal:
+ alias: m_flow_nominal
+ description: None
+ ifabsent: float(0.008)
+ range: float
+ per:
+ alias: per
+ description: None
+ ifabsent: string(None)
+ range: string
+ vector_of_input_set_points_corresponding_to_stages:
+ alias: stageInputs[:]
+ description: None
+ ifabsent: string(None)
+ range: string
+ classes:
+ - Pump
+RadiatorParameter:
+ attributes:
+ air_temperature_at_nominal_condition:
+ alias: TAir_nominal
+ description: None
+ ifabsent: float(293.15)
+ range: float
+ dp_nominal:
+ alias: dp_nominal
+ description: None
+ ifabsent: float(0)
+ range: float
+ dry_mass_of_radiator_that_will_be_lumped_to_water_heat_capacity:
+ alias: mDry
+ func: 'lambda self: 0.0263 * abs(self.nominal_heating_power_positive_for_heating)'
+ type: float
+ exponent_for_heat_transfer:
+ alias: n
+ description: None
+ ifabsent: float(1.24)
+ range: float
+ fraction_of_nominal_mass_flow_rate_where_transition_to_turbulent_occurs:
+ alias: deltaM
+ description: None
+ ifabsent: float(0.01)
+ range: float
+ fraction_radiant_heat_transfer:
+ alias: fraRad
+ description: None
+ ifabsent: float(0.3)
+ range: float
+ nominal_heating_power_positive_for_heating:
+ alias: Q_flow_nominal
+ description: None
+ ifabsent: float(2000)
+ range: float
+ number_of_elements_used_in_the_discretization:
+ alias: nEle
+ description: None
+ ifabsent: integer(1)
+ range: integer
+ radiative_temperature_at_nominal_condition:
+ alias: TRad_nominal
+ description: None
+ ifabsent: float(293.15)
+ range: float
+ use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
+ alias: linearized
+ description: None
+ ifabsent: string(false)
+ range: string
+ use_m_flow_f_dp_else_dp_f_m_flow:
+ alias: from_dp
+ description: None
+ ifabsent: string(false)
+ range: string
+ water_inlet_temperature_at_nominal_condition:
+ alias: T_a_nominal
+ description: None
+ ifabsent: float(363.15)
+ range: float
+ water_outlet_temperature_at_nominal_condition:
+ alias: T_b_nominal
+ description: None
+ ifabsent: float(353.15)
+ range: float
+ water_volume_of_radiator:
+ alias: VWat
+ func: lambda self:5.8e-5 * abs(self.nominal_heating_power_positive_for_heating)
+ type: float
+ classes:
+ - Radiator
+SpaceParameter:
+ attributes:
+ average_room_height:
+ alias: hRoo
+ description: Average room height [m]
+ ifabsent: float(2)
+ range: float
+ floor_area:
+ alias: AFlo
+ description: Floor area [m2]
+ ifabsent: float(20)
+ range: float
+ linearize_emissive_power:
+ alias: linearizeRadiation
+ description: Set to true to linearize emissive power
+ ifabsent: string(true)
+ range: string
+ nominal_mass_flow_rate:
+ alias: m_flow_nominal
+ description: Nominal mass flow rate [kg/s]
+ ifabsent: float(0.01)
+ range: float
+ sensible_thermal_mass_scaling_factor:
+ alias: mSenFac
+ description: Factor for scaling the sensible thermal mass of the zone air volume
+ ifabsent: float(1)
+ range: float
+ temperature_initial:
+ alias: T_start
+ description: Initial temperature [K]
+ ifabsent: float(294.15)
+ range: float
+ volume:
+ alias: null
+ func: lambda self:self.floor_area * self.average_room_height
+ type: float
+ classes:
+ - Space
+SplitValveParameters:
+ attributes:
+ dp_nominal:
+ alias: dp_nominal
+ description: None
+ ifabsent: string({10000,-1,-1})
+ range: string
+ fraction_of_nominal_mass_flow_rate_where_transition_to_turbulent_occurs:
+ alias: deltaM
+ description: None
+ ifabsent: float(0.3)
+ range: float
+ m_flow_nominal:
+ alias: None
+ description: None
+ ifabsent: string(0.008*{1,-1,-1})
+ range: string
+ nominal_mass_flow_rate_for_dynamic_momentum_and_energy_balance:
+ alias: mDyn_flow_nominal
+ description: None
+ ifabsent: float(None)
+ range: float
+ time_constant_at_nominal_flow_for_dynamic_energy_and_momentum_balance:
+ alias: tau
+ description: None
+ ifabsent: float(None)
+ range: float
+ use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
+ alias: linearized
+ description: None
+ ifabsent: string(false)
+ range: string
+ classes:
+ - SplitValve
+ThreeWayValveParameters:
+ attributes:
+ Av:
+ alias: Av
+ description: None
+ ifabsent: string(None)
+ range: string
+ Cv:
+ alias: Cv
+ description: None
+ ifabsent: float(None)
+ range: float
+ Kv:
+ alias: Kv
+ description: None
+ ifabsent: float(None)
+ range: float
+ dp_fixed_nominal:
+ alias: dpFixed_nominal
+ description: None
+ ifabsent: string({100,0})
+ range: string
+ dp_valve_nominal:
+ alias: dpValve_nominal
+ description: None
+ ifabsent: float(6000)
+ range: float
+ fra_k:
+ alias: fraK
+ description: None
+ ifabsent: float(0.7)
+ range: float
+ fraction_of_nominal_flow_rate_where_linearization_starts_if_y_1:
+ alias: deltaM
+ description: None
+ ifabsent: float(0.02)
+ range: float
+ m_flow_nominal:
+ alias: m_flow_nominal
+ description: None
+ ifabsent: float(0.0078)
+ range: float
+ range_of_significant_deviation_from_equal_percentage_law:
+ alias: delta0
+ description: None
+ ifabsent: float(0.01)
+ range: float
+ rangeability:
+ alias: R
+ description: None
+ ifabsent: float(50)
+ range: float
+ rho_std:
+ alias: rhoStd
+ description: None
+ ifabsent: float(None)
+ range: float
+ use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
+ alias: linearized
+ description: None
+ ifabsent: string({false, false})
+ range: string
+ valve_leakage:
+ alias: l
+ description: None
+ ifabsent: string({0.01,0.01})
+ range: string
+ classes:
+ - ThreeWayValve
+ValveParameters:
+ attributes:
+ av:
+ alias: Av
+ description: None
+ ifabsent: string(None)
+ range: string
+ cv:
+ alias: Cv
+ description: None
+ ifabsent: float(None)
+ range: float
+ dp_fixed_nominal:
+ alias: dpFixed_nominal
+ description: None
+ ifabsent: float(6000)
+ range: float
+ dp_valve_nominal:
+ alias: dpValve_nominal
+ description: None
+ ifabsent: float(6000)
+ range: float
+ fraction_of_nominal_flow_rate_where_linearization_starts_if_y_1:
+ alias: deltaM
+ description: None
+ ifabsent: float(0.02)
+ range: float
+ k_fixed:
+ alias: kFixed
+ description: None
+ ifabsent: string(None)
+ range: string
+ kv:
+ alias: Kv
+ description: None
+ ifabsent: float(None)
+ range: float
+ m_flow_nominal:
+ alias: m_flow_nominal
+ description: None
+ ifabsent: float(0.01)
+ range: float
+ range_of_significant_deviation_from_equal_percentage_law:
+ alias: delta0
+ description: None
+ ifabsent: float(0.01)
+ range: float
+ rangeability:
+ alias: R
+ description: None
+ ifabsent: float(50)
+ range: float
+ use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
+ alias: linearized
+ description: None
+ ifabsent: string(false)
+ range: string
+ use_m_flow_f_dp_else_dp_f_m_flow:
+ alias: from_dp
+ description: None
+ ifabsent: string(true)
+ range: string
+ valve_leakage:
+ alias: l
+ description: None
+ ifabsent: float(0.0001)
+ range: float
+ classes:
+ - Valve
+WeatherParameters:
+ attributes:
+ path:
+ alias: filNam
+ description: None
+ ifabsent: string(None)
+ range: string
+ classes:
+ - Weather
diff --git a/trano/data_models/trano.yaml b/trano/data_models/trano.yaml
index 6528d6a..d294784 100644
--- a/trano/data_models/trano.yaml
+++ b/trano/data_models/trano.yaml
@@ -291,456 +291,6 @@ classes:
- collector_control
- three_way_valve_control
class_uri: schema:Control
-
- OccupancyParameter:
- attributes:
- occupancy:
- description: Occupancy table, each entry switching occupancy on or off
- range: string
- ifabsent: string(3600*{7, 19})
- gain:
- description: Gain to convert from occupancy (per person) to radiant, convective and latent heat in [W/m2]
- range: string
- ifabsent: string([35; 70; 30])
- heat_gain_if_occupied:
- description: Heat gain if occupied
- range: string
- ifabsent: string(1/6/4)
-
- PumpParameters:
- attributes:
- m_flow_nominal:
- description: Nominal mass flow rate for configuration of pressure curve
- range: float
- ifabsent: float(0.008)
- dp_nominal:
- description: Nominal pressure head for configuration of pressure curve
- range: float
- ifabsent: float(10000)
- per:
- description: Record with performance data
- range: string
- control_input_type:
- description: Control input type
- range: string
- constant_input_set_point:
- description: Constant input set point
- range: float
- vector_of_input_set_points_corresponding_to_stages:
- description: Vector of input set points corresponding to stages
- range: string
-# compute_power_using_similarity_laws:
-# description: = true, compute power exactly, using similarity laws. Otherwise approximate.
-# range: boolean
-
- SplitValveParameters:
- attributes:
- m_flow_nominal:
- range: float
- required: false
- description: Mass flow rate. Set negative at outflowing ports.
- ifabsent: float(0.008)
- dp_nominal:
- range: string
- required: false
- description: Pa
- ifabsent: string("{10000,-1,-1}")
- aliases:
- - dp_nominal
- fraction_of_nominal_mass_flow_rate_where_transition_to_turbulent_occurs:
- range: float
- required: false
- description: Fraction of nominal mass flow rate where transition to turbulent occurs
- ifabsent: float(0.3)
- aliases:
- - deltaM
-# use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
-# range: boolean
-# required: false
-# description: = true, use linear relation between m_flow and dp for any flow rate
-# ifabsent: false
-# aliases:
-# - linearized
- time_constant_at_nominal_flow_for_dynamic_energy_and_momentum_balance:
- range: float
- required: false
- description: Time constant at nominal flow for dynamic energy and momentum balance
- aliases:
- - tau
- nominal_mass_flow_rate_for_dynamic_momentum_and_energy_balance:
- range: float
- required: false
- description: Nominal mass flow rate for dynamic momentum and energy balance
- aliases:
- - mDyn_flow_nominal
-
- ThreeWayValveParameters:
- attributes:
- rangeability:
- range: float
- required: false
- description: Rangeability, R=50...100 typically
- ifabsent: float(50)
- aliases:
- - R
- range_of_significant_deviation_from_equal_percentage_law:
- range: float
- required: false
- description: Range of significant deviation from equal percentage law
- ifabsent: float(0.01)
- aliases:
- - delta0
- dp_fixed_nominal:
- range: string
- required: false
- description: Nominal pressure drop of pipes and other equipment in flow legs at port_1 and port_3
- ifabsent: string("{100,0}")
- aliases:
- - dpFixed_nominal
- fra_k:
- range: float
- required: false
- ifabsent: float(0.7)
- aliases:
- - fraK
- valve_leakage:
- range: string
- required: false
- description: Valve leakage, l=Kv(y=0)/Kv(y=1)
- ifabsent: string("{0.01,0.01}")
- aliases:
- - l
- fraction_of_nominal_flow_rate_where_linearization_starts_if_y_1:
- range: float
- required: false
- description: Fraction of nominal flow rate where linearization starts, if y=1
- ifabsent: float(0.02)
- aliases:
- - deltaM
- use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
- range: string
- required: false
- description: = true, use linear relation between m_flow and dp for any flow rate
- ifabsent: string("{false, false}")
- aliases:
- - linearized
- Kv:
- range: float
- required: false
- description: Kv (metric) flow coefficient [m3/h/(bar)^(1/2)]
- Cv:
- range: float
- required: false
- description: Cv (US) flow coefficient [USG/min/(psi)^(1/2)]
- Av:
- range: string
- required: false
- description: Av (metric) flow coefficient
- m_flow_nominal:
- range: float
- required: false
- description: Nominal mass flow rate
- ifabsent: float(0.0078)
- dp_valve_nominal:
- range: float
- required: false
- description: Pa
- ifabsent: float(6000)
- rho_std:
- range: float
- required: false
- description: Inlet density for which valve coefficients are defined
- BoilerParameters:
- attributes:
- sca_fac_rad:
- description: Scaling factor to scale the power (and mass flow rate) of the radiator loop
- range: float
- ifabsent: float(1.5)
- dt_boi_nominal:
- description: Nominal temperature difference for boiler loop
- range: float
- ifabsent: float(20)
- dt_rad_nominal:
- description: Nominal temperature difference for radiator loop
- range: float
- ifabsent: float(10)
- coefficients_for_efficiency_curve:
- description: Coefficients for efficiency curve
- range: string
- ifabsent: string({0.9})
- effcur:
- description: Buildings.Fluid.Types.EfficiencyCurves.Constant
- range: string
- temperature_used_to_compute_nominal_efficiency:
- description: Temperature used to compute nominal efficiency (only used if efficiency curve depends on temperature)
- range: float
- ifabsent: float(353.15)
- fuel_type:
- description: Fuel type
- range: string
- nominal_heating_power:
- description: Nominal heating power
- range: float
- ifabsent: float(2000)
- dp_nominal:
- description: Pa
- range: float
- ifabsent: float(5000)
-# use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
-# description: = true, use linear relation between m_flow and dp for any flow rate
-# range: boolean
-# ifabsent: false
- fraction_of_nominal_flow_rate_where_flow_transitions_to_laminar:
- description: Fraction of nominal flow rate where flow transitions to laminar
- range: float
- ifabsent: float(0.1)
-# if_actual_temperature_at_port_is_computed:
-# description: = true, if actual temperature at port is computed
-# range: boolean
-# ifabsent: false
- tank_volume:
- description: Tank volume
- range: float
- ifabsent: float(0.2)
- height_of_tank_without_insulation:
- description: Height of tank (without insulation)
- range: float
- ifabsent: float(2)
- number_of_volume_segments:
- description: Number of volume segments
- range: float
- ifabsent: float(4)
- thickness_of_insulation:
- description: Thickness of insulation
- range: float
- ifabsent: float(0.002)
- dp:
- description: ""
- range: string
- ValveParameters:
- attributes:
- rangeability:
- range: float
- required: false
- description: Rangeability, R=50...100 typically
- ifabsent: float(50)
- aliases:
- - R
- range_of_significant_deviation_from_equal_percentage_law:
- range: float
- required: false
- description: Range of significant deviation from equal percentage law
- ifabsent: float(0.01)
- aliases:
- - delta0
- dp_fixed_nominal:
- range: float
- required: false
- description: Pa
- ifabsent: float(6000.0)
- aliases:
- - dpFixed_nominal
- valve_leakage:
- range: float
- required: false
- description: Valve leakage, l=Kv(y=0)/Kv(y=1)
- ifabsent: float(0.0001)
- aliases:
- - l
- k_fixed:
- range: string
- required: false
-# use_m_flow_f_dp_else_dp_f_m_flow:
-# range: boolean
-# required: false
-# description: = true, use m_flow = f(dp) else dp = f(m_flow)
-# ifabsent: true
-# aliases:
-# - from_dp
-# use_linear_relation_between_m_flow_and_dp_for_any_flow_rate:
-# range: boolean
-# required: false
-# description: = true, use linear relation between m_flow and dp for any flow rate
-# ifabsent: false
-# aliases:
-# - linearized
- kv:
- range: float
- required: false
- description: Kv (metric) flow coefficient [m3/h/(bar)^(1/2)]
- aliases:
- - Kv
- cv:
- range: float
- required: false
- description: Cv (US) flow coefficient [USG/min/(psi)^(1/2)]
- aliases:
- - Cv
- av:
- range: string
- required: false
- description: Av (metric) flow coefficient
- aliases:
- - Av
- fraction_of_nominal_flow_rate_where_linearization_starts_if_y_1:
- range: float
- required: false
- description: Fraction of nominal flow rate where linearization starts, if y=1
- ifabsent: float(0.02)
- aliases:
- - deltaM
- m_flow_nominal:
- range: float
- required: false
- description: Nominal mass flow rate
- ifabsent: float(0.01)
- dp_valve_nominal:
- range: float
- required: false
- description: Pa
- ifabsent: float(6000)
-
- RadiatorParameter:
- attributes:
- number_of_elements_used_in_the_discretization:
- range: float
- description: Number of elements used in the discretization
- ifabsent: int(1)
- aliases:
- - nEle
- fraction_radiant_heat_transfer:
- range: float
- description: Fraction radiant heat transfer
- ifabsent: float(0.3)
- aliases:
- - fraRad
- nominal_heating_power_positive_for_heating:
- range: float
- description: Nominal heating power (positive for heating)
- ifabsent: float(2000.0)
- aliases:
- - Q_flow_nominal
- water_inlet_temperature_at_nominal_condition:
- range: float
- description: Water inlet temperature at nominal condition
- ifabsent: float(363.15)
- aliases:
- - T_a_nominal
- water_outlet_temperature_at_nominal_condition:
- range: float
- description: Water outlet temperature at nominal condition
- ifabsent: float(353.15)
- aliases:
- - T_b_nominal
- air_temperature_at_nominal_condition:
- range: float
- description: Air temperature at nominal condition
- ifabsent: float(293.15)
- aliases:
- - TAir_nominal
- radiative_temperature_at_nominal_condition:
- range: float
- description: Radiative temperature at nominal condition
- ifabsent: float(293.15)
- aliases:
- - TRad_nominal
- exponent_for_heat_transfer:
- range: float
- description: Exponent for heat transfer
- ifabsent: float(1.24)
- aliases:
- - n
- fraction_of_nominal_mass_flow_rate_where_transition_to_turbulent_occurs:
- range: float
- description: Fraction of nominal mass flow rate where transition to turbulent occurs
- ifabsent: float(0.01)
- aliases:
- - deltaM
-# use_m_flow_f_dp_else_dp_f_m_flow:
-# range: string
-# description: = true, use m_flow = f(dp) else dp = f(m_flow)
-# ifabsent: string("false")
-# aliases:
-# - from_dp
- dp_nominal:
- range: float
- ifabsent: float(1000)
- required: false
- ControlLoopsParameters:
- attributes:
- k_coo_con:
- description: Gain of controller for cooling control loop
- range: float
- ifabsent: float(0.1)
- ti_coo_con:
- description: Time constant of integrator block for cooling control loop
- range: float
- ifabsent: float(900)
- k_hea_con:
- description: Gain of controller for heating control loop
- range: float
- ifabsent: float(0.1)
- ti_hea_con:
- description: Time constant of integrator block for heating control loop
- range: float
- ifabsent: float(900)
- tim_che:
- description: Threshold time to check the zone temperature status
- range: float
- ifabsent: float(30)
- dt_hys:
- description: Delta between the temperature hysteresis high and low limit
- range: float
- ifabsent: float(0.25)
- loo_hys:
- description: Threshold value to check if the controller output is near zero
- range: float
- ifabsent: float(0.01)
-
- SpaceParameter:
- attributes:
- sensible_thermal_mass_scaling_factor:
- range: float
- description: Factor for scaling the sensible thermal mass of the zone air volume
- ifabsent: float(1)
- aliases:
- - mSenFac
- floor_area:
- range: float
- required: false
- description: Floor area [m2]
- ifabsent: float(20.0)
- aliases:
- - AFlo
- average_room_height:
- range: float
- required: false
- description: Average room height [m]
- ifabsent: float(2.0)
- aliases:
- - hRoo
-# linearize_emissive_power:
-# range: string
-# description: Set to true to linearize emissive power
-# ifabsent: string(test)
-# aliases:
-# - linearizeRadiation
- nominal_mass_flow_rate:
- range: float
- description: Nominal mass flow rate [kg/s]
- ifabsent: float(0.01)
- aliases:
- - m_flow_nominal
- temperature_initial:
- range: float
- description: Initial temperature [K]
- ifabsent: float(294.15)
- aliases:
- - T_start
-
-
-
-
Building:
tree_root: true
description: >-
diff --git a/trano/models/elements/base.py b/trano/models/elements/base.py
index fcd02cb..271cacb 100644
--- a/trano/models/elements/base.py
+++ b/trano/models/elements/base.py
@@ -105,6 +105,15 @@ def to_snake_case(name):
def compose_func(ports_):
return lambda: ports_
+
+def _load_components():
+ libraries_path = Path(__file__).parent.joinpath("models")
+ data = {"components": []}
+ for file in libraries_path.glob("*.yaml"):
+ data["components"] += yaml.safe_load(file.read_text()).get("components", [])
+ return data
+
+COMPONENTS = _load_components()
class AvailableLibraries(BaseModel):
ideas: List[Callable[[], "LibraryData"]] = Field(default=[lambda: None])
buildings: List[Callable[[], "LibraryData"]] = Field(default=[lambda: None])
@@ -131,11 +140,7 @@ def get_library_data(
@classmethod
def from_config(cls, name: str) -> "AvailableLibraries":
- libraries_path = Path(__file__).parent.joinpath("models")
- data = {"components":[]}
- for file in libraries_path.glob("*.yaml"):
- data["components"] += yaml.safe_load(file.read_text()).get("components", [])
-
+ data = COMPONENTS
components_data__ = [component for component in data["components"] for classes_ in component["classes"] if name == classes_]
if not components_data__:
return None
@@ -400,10 +405,63 @@ def render(
)
return component
+from pydantic.fields import FieldInfo, computed_field
+
+def _get_type(_type):
+ if _type == "string":
+ return str
+ elif _type == "float":
+ return float
+ elif _type == "integer":
+ return int
+ elif _type == "boolean":
+ return bool
+ else:
+ raise Exception("Unknown type")
class BaseParameter(BaseModel):
- model_config = ConfigDict(populate_by_name=True, extra="forbid")
+ model_config = ConfigDict(populate_by_name=True, extra="allow")
+def _get_default(v):
+ value = v["ifabsent"].replace(v["range"], "")[1:-1]
+ if value == "None":
+ return None
+ try:
+ return _get_type(v["range"])(value)
+ except Exception as e:
+
+ raise e
+def load_parameters():
+ parameter_path = Path("/home/aan/Documents/trano/trano/data_models/parameters.yaml")
+ data = yaml.safe_load(parameter_path.read_text())
+ classes = {}
+
+ for name, parameter in data.items():
+ attrib_ = {}
+ for k, v in parameter["attributes"].items():
+ alias = v.get("alias", None)
+ alias = alias if alias !="None" else None
+ if v.get("range"):
+ attrib_[k] = (
+ _get_type(v["range"]),
+ Field(default=_get_default(v), alias=alias, description=v.get("description", None)),
+ )
+ else:
+ attrib_[k] = computed_field(eval(v["func"]), return_type=eval(v["type"]), alias=alias)
+ model = create_model(
+ f"{name}_",__base__=BaseParameter, **attrib_
+ )
+ for class_ in parameter["classes"]:
+ classes[class_] = model
+ return classes
+
+PARAMETERS = load_parameters()
+
+
+
+
+def param_from_config(name: str):
+ return PARAMETERS.get(name)
class BaseElement(BaseModel):
@@ -415,7 +473,7 @@ class BaseElement(BaseModel):
Placement(transformation(origin = {{ macros.join_list(element.position) }},
extent = {% raw %}{{-10, -10}, {10, 10}}
{% endraw %})));"""
- model_config = ConfigDict(arbitrary_types_allowed=True, extra="forbid")
+ model_config = ConfigDict(arbitrary_types_allowed=True, extra="allow")
parameters: Optional[BaseParameter] = None
position: Optional[List[float]] = None
ports: list[Port] = Field(default=[], validate_default=True)
@@ -431,6 +489,9 @@ def validate_libraries_data(cls, value) -> AvailableLibraries:
libraries_data = AvailableLibraries.from_config(cls.__name__)
if libraries_data:
value["libraries_data"] = libraries_data
+ parameter_class = param_from_config(cls.__name__)
+ if parameter_class:
+ value["parameters"] = parameter_class()
return value
@model_validator(mode="after")
diff --git a/trano/models/elements/boiler.py b/trano/models/elements/boiler.py
index f3d4650..212cbbe 100644
--- a/trano/models/elements/boiler.py
+++ b/trano/models/elements/boiler.py
@@ -20,7 +20,6 @@
)
from trano.models.elements.bus import DataBus
from trano.models.elements.controls.base import Control
-from trano.models.elements.convert import convert_boiler, boiler_parameters
from trano.models.elements.system import System
@@ -212,7 +211,7 @@ class BaseBoiler(LibraryData):
class Boiler(System):
- parameters: BaseParameter = Field(default=BoilerParameters())
-
+ # parameters: BaseParameter = Field(default=BoilerParameters())
+ ...
diff --git a/trano/models/elements/controls/boiler.py b/trano/models/elements/controls/boiler.py
index f364078..cea21d8 100644
--- a/trano/models/elements/controls/boiler.py
+++ b/trano/models/elements/controls/boiler.py
@@ -117,7 +117,8 @@ class SimpleBoilerControl(LibraryData):
class BoilerControl(Control):
- parameters: BoilerParameters = Field(default=BoilerParameters())
+ ...
+ # parameters: BoilerParameters = Field(default=BoilerParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseBoilerControl],
# buildings=[BaseBoilerControl],
diff --git a/trano/models/elements/controls/collector.py b/trano/models/elements/controls/collector.py
index 1e63021..66b2e42 100644
--- a/trano/models/elements/controls/collector.py
+++ b/trano/models/elements/controls/collector.py
@@ -108,7 +108,7 @@ class BaseCollectorControl(LibraryData):
class CollectorControl(Control):
valves: Optional[List[Valve]] = None
- parameters: PIDParameters = Field(default=PIDParameters())
+ # parameters: PIDParameters = Field(default=PIDParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseCollectorControl],
# buildings=[BaseCollectorControl],
diff --git a/trano/models/elements/controls/emission.py b/trano/models/elements/controls/emission.py
index da5dd47..2b2e168 100644
--- a/trano/models/elements/controls/emission.py
+++ b/trano/models/elements/controls/emission.py
@@ -191,7 +191,8 @@ class BaseEmissionControl(LibraryData):
class EmissionControl(Control):
- parameters: ControlLoopsParameters = Field(default=ControlLoopsParameters())
+ ...
+ # parameters: ControlLoopsParameters = Field(default=ControlLoopsParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseEmissionControl],
# buildings=[BaseEmissionControl],
diff --git a/trano/models/elements/controls/three_way_valve.py b/trano/models/elements/controls/three_way_valve.py
index 8bc61d0..a8b97fa 100644
--- a/trano/models/elements/controls/three_way_valve.py
+++ b/trano/models/elements/controls/three_way_valve.py
@@ -87,7 +87,8 @@ class BaseThreeWayValveControl(LibraryData):
class ThreeWayValveControl(Control):
- parameters: PIDParameters = Field(default=PIDParameters())
+ ...
+ # parameters: PIDParameters = Field(default=PIDParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseThreeWayValveControl],
# buildings=[BaseThreeWayValveControl],
diff --git a/trano/models/elements/convert.py b/trano/models/elements/convert.py
deleted file mode 100644
index 591d8e5..0000000
--- a/trano/models/elements/convert.py
+++ /dev/null
@@ -1,105 +0,0 @@
-import os
-import subprocess
-import tempfile
-from collections import namedtuple
-from functools import partial
-from pathlib import Path
-from types import SimpleNamespace
-from typing import Callable, List, Dict, Any
-
-import yaml
-
-
-from trano.models.elements.base import (
- DynamicComponentTemplate,
- Port,
- LibraryData,
- BaseParameter,
- exclude_parameters,
-)
-from pydantic import create_model
-
-
-def convert_copy(schema: Path, input_file: Path, target: str, output: Path) -> bool:
- root_path = Path(__file__).parents[3]
- os.chdir(root_path)
- command = [
- "poetry",
- "run",
- "linkml-convert",
- "-o",
- f"{output}",
- "-t",
- target,
- "-C",
- "Building",
- "-s",
- str(schema),
- f"{input_file}",
- ]
-
- process = subprocess.run(
- command, check=True, capture_output=True, text=True # noqa: S603
- )
- return process.returncode == 0
-
-
-def convert_boiler():
-
- boiler = Path("/home/aan/Documents/trano/trano/models/elements/models/boiler.yaml")
- with tempfile.NamedTemporaryFile(mode="w+", suffix=".yaml", delete=False) as f:
- convert_copy(
- Path("/home/aan/Documents/trano/trano/models/elements/element.yaml"),
- boiler,
- "yaml",
- Path(f.name),
- )
- data = yaml.safe_load(Path(f.name).read_text())
- components = []
- for component in data["components"]:
- dynamic_component = DynamicComponentTemplate(**component["component_template"])
- ports = []
- for port in component["ports"]:
- ports.append(Port(**port))
- component_ = create_model(
- "BaseBoiler",
- __base__=LibraryData,
- template=(str, f"{component['template']}"),
- ports_factory=(Callable[[], List[Port]], lambda: ports),
- component_template=(DynamicComponentTemplate, dynamic_component),
- parameter_processing=(
- Callable[[BaseParameter], Dict[str, Any]],
- partial(
- exclude_parameters,
- exclude_parameters={
- "sca_fac_rad",
- "dt_boi_nominal",
- "dt_rad_nominal",
- },
- ),
- ),
- )
- components.append(component_)
- return components[0]
-
-
-def boiler_parameters():
- boiler = Path(__file__).parents[3].joinpath("tests", "boiler.yaml")
- # data = yaml.safe_load(boiler.read_text())
- with tempfile.NamedTemporaryFile(mode="w+", suffix=".yaml", delete=False) as f:
- convert_copy(
- Path("/home/aan/Documents/trano/trano/models/elements/element.yaml"),
- boiler,
- "yaml",
- Path(f.name),
- )
- data = yaml.safe_load(Path(f.name).read_text())
- component_ = create_model(
- "CustomBoilerParameters",
- __base__=BaseParameter,
- **{
- k: (float if isinstance(v, float) else str, v)
- for k, v in data["components"][0]["parameters"].items()
- },
- )
- return component_()
diff --git a/trano/models/elements/occupancy.py b/trano/models/elements/occupancy.py
index 35d0ba2..34a08c9 100644
--- a/trano/models/elements/occupancy.py
+++ b/trano/models/elements/occupancy.py
@@ -73,7 +73,8 @@ class OccupancyComponent(LibraryData):
class Occupancy(BaseOccupancy):
- parameters: OccupancyParameters = Field(default=OccupancyParameters())
+ ...
+ # parameters: OccupancyParameters = Field(default=OccupancyParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[OccupancyComponent],
# buildings=[OccupancyComponent],
diff --git a/trano/models/elements/pump.py b/trano/models/elements/pump.py
index d9c2f95..42845d1 100644
--- a/trano/models/elements/pump.py
+++ b/trano/models/elements/pump.py
@@ -117,7 +117,8 @@ class BasePump(LibraryData):
class Pump(System):
- parameters: PumpParameters = Field(default=PumpParameters())
+ ...
+ # parameters: PumpParameters = Field(default=PumpParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BasePump],
# buildings=[BasePump],
diff --git a/trano/models/elements/radiator.py b/trano/models/elements/radiator.py
index 6561563..bfc2f35 100644
--- a/trano/models/elements/radiator.py
+++ b/trano/models/elements/radiator.py
@@ -121,7 +121,8 @@ class BaseIdealRadiator(LibraryData):
class Radiator(Emission):
- parameters: RadiatorParameter = Field(default=RadiatorParameter())
+ ...
+ # parameters: RadiatorParameter = Field(default=RadiatorParameter())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseRadiator, BaseIdealRadiator],
# buildings=[BaseRadiator, BaseIdealRadiator],
diff --git a/trano/models/elements/space.py b/trano/models/elements/space.py
index 162f56f..e3ac3ba 100644
--- a/trano/models/elements/space.py
+++ b/trano/models/elements/space.py
@@ -297,7 +297,7 @@ class Space(BaseElement):
extent = {% raw %}{{-20, -20}, {20, 20}}
{% endraw %})));"""
counter: ClassVar[int] = 0
- parameters: SpaceParameter = Field(default=SpaceParameter())
+ # parameters: SpaceParameter = Field(default=SpaceParameter())
name: str
external_boundaries: list[
Union["BaseExternalWall", "BaseWindow", "BaseFloorOnGround"]
diff --git a/trano/models/elements/split_valve.py b/trano/models/elements/split_valve.py
index 8dd8ee7..3ce69ae 100644
--- a/trano/models/elements/split_valve.py
+++ b/trano/models/elements/split_valve.py
@@ -71,7 +71,8 @@ class BaseSplitValve(LibraryData):
class SplitValve(System):
- parameters: SplitValveParameters = Field(default=SplitValveParameters())
+ ...
+ # parameters: SplitValveParameters = Field(default=SplitValveParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseSplitValve],
# buildings=[BaseSplitValve],
diff --git a/trano/models/elements/three_way_valve.py b/trano/models/elements/three_way_valve.py
index 388fc8a..865c599 100644
--- a/trano/models/elements/three_way_valve.py
+++ b/trano/models/elements/three_way_valve.py
@@ -81,7 +81,8 @@ class BaseThreeWayValve(LibraryData):
class ThreeWayValve(System):
- parameters: ThreeWayValveParameters = Field(default=ThreeWayValveParameters())
+ ...
+ # parameters: ThreeWayValveParameters = Field(default=ThreeWayValveParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseThreeWayValve],
# buildings=[BaseThreeWayValve],
diff --git a/trano/models/elements/valve.py b/trano/models/elements/valve.py
index 81eebd3..ad58807 100644
--- a/trano/models/elements/valve.py
+++ b/trano/models/elements/valve.py
@@ -92,7 +92,8 @@ class BaseValve(LibraryData):
class Valve(SpaceSystem):
- parameters: ValveParameters = Field(default=ValveParameters())
+ ...
+ # parameters: ValveParameters = Field(default=ValveParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# ideas=[BaseValve],
# buildings=[BaseValve],
diff --git a/trano/models/elements/weather.py b/trano/models/elements/weather.py
index d21b070..ab75e27 100644
--- a/trano/models/elements/weather.py
+++ b/trano/models/elements/weather.py
@@ -88,7 +88,8 @@ class IdeasWeatherComponent(LibraryData):
class Weather(BaseWeather):
- parameters: WeatherParameters = Field(default=WeatherParameters())
+ ...
+ # parameters: WeatherParameters = Field(default=WeatherParameters())
# libraries_data: AvailableLibraries = AvailableLibraries(
# buildings=[BuildingsWeatherComponent], ideas=[IdeasWeatherComponent]
# )