Skip to content

Commit

Permalink
Removed brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Nov 21, 2017
1 parent 265c7de commit 02a7f23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Buildings/Fluid/SolarCollectors/BaseClasses/ASHRAEHeatLoss.mo
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ protected
"Coefficient describing heat loss to ambient conditions";
initial equation
//Identifies useful heat gain at nominal conditions
QUse_nominal = G_nominal * A_c * y_intercept + slope * A_c * (dT_nominal);
QUse_nominal = G_nominal * A_c * y_intercept + slope * A_c * dT_nominal;
//Identifies TFlu[nSeg] at nominal conditions
m_flow_nominal * cp_default * (dT_nominal_fluid[nSeg]) = QUse_nominal;
//Identifies heat lost to environment at nominal conditions
QLos_nominal = -slope * A_c * (dT_nominal);
QLos_nominal = -slope * A_c * dT_nominal;
//Governing equation for the first segment (i=1)
G_nominal * y_intercept * A_c/nSeg - UA/nSeg * (dT_nominal) = m_flow_nominal * cp_default
G_nominal * y_intercept * A_c/nSeg - UA/nSeg * dT_nominal = m_flow_nominal * cp_default
* (dT_nominal_fluid[1]);
//Loop with the governing equations for segments 2:nSeg-1
for i in 2:nSeg-1 loop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ block EN12975HeatLoss
protected
final parameter Modelica.SIunits.ThermalConductance UA(
fixed = false,
start=QLos_nominal/(dT_nominal))
start=QLos_nominal/dT_nominal)
"Coefficient describing heat loss to ambient conditions";
initial equation
//Identifies useful heat gain at nominal conditions
QUse_nominal = G_nominal * A_c * y_intercept -C1 * A_c *
(dT_nominal) - C2 * A_c * (dT_nominal)^2;
dT_nominal - C2 * A_c * dT_nominal^2;
//Identifies TFlu[nSeg] at nominal conditions
m_flow_nominal * cp_default * (dT_nominal_fluid[nSeg]) = QUse_nominal;
//Identifies heat lost to environment at nominal conditions
QLos_nominal = -C1 * A_c * (dT_nominal)-C2 * A_c * (dT_nominal)^2;
QLos_nominal = -C1 * A_c * dT_nominal-C2 * A_c * dT_nominal^2;
//Governing equation for the first segment (i=1)
G_nominal * y_intercept * A_c/nSeg - UA/nSeg * (dT_nominal)
G_nominal * y_intercept * A_c/nSeg - UA/nSeg * dT_nominal
= m_flow_nominal * cp_default * (dT_nominal_fluid[1]);
//Loop with the governing equations for segments 2:nSeg-1
for i in 2:nSeg-1 loop
Expand Down

0 comments on commit 02a7f23

Please sign in to comment.