<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-html" lang="x-western"> Dear trnsys users,<br>
<br>
<br>
I'm struggling with a trnsed application regarding defining a
building's envelope. I want let the user add walls when one after
the oether to define the envelope. <br>
I use the following scheme with checkboxes involved :<br>
input wall 1<br>
Uw1, Area_w1<br>
Do you want to input another wall ?<br>
<br>
Input wall 2<br>
Uw2, Area_w2<br>
Do you want ton input another wall ?<br>
etc.<br>
<br>
It seems to me that this is the most user friendly way to make a
simili-cycle in trnsed. I managed to code it in Trnsed language.<br>
But now I'm struggling with the trnsys code. I did'nt think of
that before but here's the problem : I don't know how many walls
are to be inputed !<br>
<br>
The problem can be simplified like this : I want to calulate a
mean value for 1, 2 or 3 values. <br>
First Group:<br>
A=10<br>
2nd group<br>
B=5<br>
3rd group<br>
C=6<br>
<br>
I can calculate each time the mean value :<br>
First Group:<br>
A=x<br>
M1=A/1<br>
<br>
2nd group<br>
B=y<br>
M2=(A+B)/2<br>
<br>
3rd group<br>
C=z<br>
M3=(A+B+C)/3<br>
<br>
<br>
But the problem is: If I want to reuse that mean value as an input
for another component, how do I do? If I use an equation I will
automatically call an input that does'nt exist if there are only 2
values for instance. If I define the 3 values for each group and
calculate the mean at the end like :<br>
First Group:<br>
A=x<br>
B=0<br>
C=0<br>
<br>
2nd group<br>
B=y<br>
C=0<br>
<br>
<br>
Then I get an error because I define an value twice ! In fact that
was the way I thought of firstly... I think I mixed coding in
Trnshell and in Fortran in my head..<br>
<br>
So do you see a way to get the right "mean value" (ie the right
overall heat transfer coefficient in my case)? It can include to
write a piece of code, I thought of that solution but I don't see
neither how it can work.<br>
<br>
I hope I<em style="font-weight: bold; font-style: normal; color:
rgb(0, 0, 0); font-family: arial, sans-serif; font-variant:
normal; letter-spacing: normal; line-height: 9px; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); font-size: small; "></em><span
style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 9px; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); font-size: small; display:
inline !important; float: none; "><span
class="Apple-converted-space">'ve been clear enough</span> !<br>
Happy new year to all Trnsys users.<br>
<br>
Thibaut<br>
<br>
<br>
</span>
<div class="moz-signature">
<table height="33" width="27">
<tbody>
<tr>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="moz-signature">
<p class="Standard">
</p>
</div>
</body>
</html>