Skip to content

Commit

Permalink
Added missing 'each' declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Jun 25, 2014
1 parent 9caddc8 commit 8e02e9e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Buildings/Rooms/BaseClasses/HeatGain.mo
Expand Up @@ -35,7 +35,7 @@ protected
// "Species concentration (water vapor only)";

protected
parameter Real s[Medium.nX](fixed=false)
parameter Real s[Medium.nX](each fixed=false)
"Vector with zero everywhere except where water vapor is";
initial algorithm
for i in 1:Medium.nX loop
Expand Down Expand Up @@ -74,7 +74,7 @@ This model computes the radiant, convective and latent heat flow.
Input into this model are these three components in units of [W/m2].
The inputs need to be positive quantities if heat or moisture is added
to the room.
The outputs are
The outputs are
<ul>
<li>
the radiant heat flow in Watts,
Expand All @@ -87,14 +87,14 @@ the water vapor released into the air.
</li>
</ul>
If the medium model does not contain water vapor, then
the water vapor released into the air is zero, i.e.,
the water vapor released into the air is zero, i.e.,
the mass flow rate at the fluid port is equal to zero.
</html>",
revisions="<html>
<ul>
<li>
December 6, 2011, by Michael Wetter:<br/>
Fixed sign error in convective heat gain that is assigned to
Fixed sign error in convective heat gain that is assigned to
<code>QCon_flow.Q_flow</code>.
This closes ticket <a href=\"https://github.com/lbl-srg/modelica-buildings/issues/46\">issue 46</a>.
</li>
Expand Down Expand Up @@ -150,7 +150,7 @@ First implementation.
This is a dummy model that is required to implement the room
model with a variable number of surface models.
The model is required since arrays of models, such as used for the surfaces
that model the construction outside of the room,
that model the construction outside of the room,
must have at least one element, unless the whole array
is conditionally removed if its size is zero.
However, conditionally removing the surface models does not work in this
Expand All @@ -161,6 +161,10 @@ between the surfaces, require access to the area and absorptivity of the surface
revisions="<html>
<ul>
<li>
June 25, by Michael Wetter:<br/>
Added missing <code>each</code> attribute.
</li>
<li>
February 22, by Michael Wetter:<br/>
Improved the code that searches for the index of 'water' in the medium model.
</li>
Expand Down

0 comments on commit 8e02e9e

Please sign in to comment.