<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16470">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: x-small">
<div>Tobias for no.1.</div>
<div> </div>
<div>A primitive way of doing this is in Equation-Editor:</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">let x = PV-power</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">first = GT(x,1.5)*LT(x,3)</font></div>
<div><font face="tahoma">second = GT(x,3)*LT(x,4.5)</font></div>
<div><font face="tahoma"><font face="tahoma">third = GT(x,4.5)</font></font></div>
<div> </div>
<div><font face="tahoma">heating_rate = (1.5*first)+(3*second)+(4.5*third)</font></div>
<div><font face="tahoma">You should be able to pass the 'heating_rate' to other types</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">I don't know about no. 2.</font></div>
<div> </div>
<div><font face="tahoma">Regards</font></div>
<div><font face="tahoma">Lesh</font> </div>
<div><font face="tahoma"></font> </div>
<div><font color="#000000" size="2" face="Tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF650007">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> Tobias Tag [tag.tobias@googlemail.com]<br>
<b>Sent:</b> 17 June 2013 09:53<br>
<b>To:</b> TRNSYS-users@cae.wisc.edu<br>
<b>Subject:</b> [TRNSYS-users] Equation and Type 20<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Dear TRNSYS-User,<br>
<br>
i have two problems with TRNSYS 17.<br>
<br>
1. I´m trying to make the maximum heating rate of an element (of Type 60c) depending on the power produced by PV in three steps. Shold look like that:<br>
<br>
<br>
If 1.5kW < PV-Power < 3kW then heating rate = 1.5 kW<br>
<br>
else if 3kW < PV-Power < 4.5kW then heating rate = 3kW<br>
<br>
else if PV-Power > 4.5kW then heating rate = 4.5kW <br>
<br>
<br>
I´ve set the heating rate as a String variable which shold get the value from a equation. but i don´t know how to update the equation in every time step of the simulation.<br>
<br>
2. Does anybody know what the external files of type 20 (dual source heat pump) are? Unfortunatly ther is no example in the TRNSYS-Examples folder.<br>
<br>
<br>
Kind regards<br>
<br>
Tobias <br>
</div>
</div>
</div>
</body>
</html>