Skip to content

Commit

Permalink
Added missing each keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Mar 14, 2015
1 parent fa303db commit 0d76fca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Buildings/Rooms/BaseClasses/SkyRadiationExchange.mo
Expand Up @@ -4,7 +4,9 @@ model SkyRadiationExchange
extends Buildings.BaseClasses.BaseIcon;
parameter Integer n(min=1) "Number of constructions";
parameter Modelica.SIunits.Area A[n] "Area of exterior constructions";
parameter Real vieFacSky[n](min=0, max=1) "View factor to sky (=1 for roofs)";
parameter Real vieFacSky[n](
each min=0,
each max=1) "View factor to sky (=1 for roofs)";
parameter Modelica.SIunits.Emissivity absIR[n]
"Infrared absorptivity of building surface";
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a port[n] "Heat port"
Expand All @@ -21,7 +23,8 @@ model SkyRadiationExchange
annotation (Placement(transformation(extent={{-140,20},{-100,60}}),
iconTransformation(extent={{-140,20},{-100,60}})));
protected
parameter Real k[n](unit="W/K4") = {4*A[i]*Modelica.Constants.sigma*absIR[i] for i in 1:n}
parameter Real k[n](
each unit="W/K4") = {4*A[i]*Modelica.Constants.sigma*absIR[i] for i in 1:n}
"Constant for radiative heat exchange";
Modelica.SIunits.Temperature TEnv[n] "Environment temperature";
Real TBlaSky4(unit="K4") "Auxiliary variable for radiative heat exchange";
Expand Down Expand Up @@ -94,6 +97,10 @@ the ground and neighboring buildings).
revisions="<html>
<ul>
<li>
March 13, 2015, by Michael Wetter:<br/>
Added missing <code>each</code> keywords.
</li>
<li>
June 4 2010, by Michael Wetter:<br/>
First implementation.
</li>
Expand Down

0 comments on commit 0d76fca

Please sign in to comment.