<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="PT" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello, </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have an input variable that changes over time. The most correct way to characterize it is to use a branch function. I wanted to use the equations feature but it is giving me lots of errors. Using programming language, my variable changes
like this:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If -57 < x < -30<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Y1=8E-5x^2-0.0024+0.2385<o:p></o:p></p>
<p class="MsoNormal">End IF<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If -30< x<-15<o:p></o:p></p>
<p class="MsoNormal">Y2=0.0001x^2+0.0028x+0.3494<o:p></o:p></p>
<p class="MsoNormal">End if<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If -15< x<-5<o:p></o:p></p>
<p class="MsoNormal">Y3=-0.0001x^2-0.004x+0.3058<o:p></o:p></p>
<p class="MsoNormal">End if <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you have any tip on how to do it on TRNSYS? Also it’s not mandatory to use equations.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you in advance, <o:p></o:p></p>
<p class="MsoNormal">Kind Regards, <o:p></o:p></p>
<p class="MsoNormal"> Ana Delgado, University of Aveiro <o:p></o:p></p>
</div>
</body>
</html>