Skip to content

Commit

Permalink
add infiltration temp and rate to Mutlizone model
Browse files Browse the repository at this point in the history
  • Loading branch information
PRemmen authored and PRemmen committed Jun 24, 2016
1 parent 7ff72ce commit dc01898
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions teaser/data/output/modelicatemplate/AixLib/AixLib_model
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ model ${bldg.name}
"modelica://${mod_prj}/${bldg.name}/${bldg.file_internal_gains}"))
annotation (Placement(transformation(extent={{84,18},{64,38}})));

Modelica.Blocks.Sources.CombiTimeTable combiTimeTable(table=[
0
% for tz in bldg.thermal_zones:
,${tz.infiltration_rate} ${';' if (loop.last) else ''}
%endfor
3600
% for tz in bldg.thermal_zones:
,${tz.infiltration_rate}
%endfor
])
annotation (Placement(transformation(extent={{-74,-2},{-54,18}})));


equation
connect(weather.SolarRadiation_OrientedSurfaces, multizone.radIn)
Expand All @@ -81,6 +93,14 @@ equation
connect(tableInternalGains.y, multizone.internalGains)
annotation (Line(points={{63,28},{46,28},{46,27.25},{26.11,27.25}},
color={0,0,127}));
% for i, zo in enumerate(bldg.thermal_zones):
connect(weather.WeatherDataVector[${i+1}], multizone.ventilationTemperature[${i+1}])
annotation (Line(points={{-9.1,67},{-9.1,52.5},{-24.38,52.5},{-24.38,15}},
color={0,0,127}));
% endfor

connect(combiTimeTable.y, multizone.ventilationRate) annotation (Line(points={{-51,8},
{-24.38,8},{-24.38,7.5}}, color={0,0,127}));

annotation (experiment(
StopTime=31536000,
Expand Down

0 comments on commit dc01898

Please sign in to comment.