<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Javier,<br>
There are a number of operator arguments available. Please check
the TRNEdit manual for a full description (section 7.3.9 if you are
using TRNSYS16, section 6.3.9 if you are using v17). What I would
recommend you do is to use the GT() and LT() functions to set a
multiplier that has a value of 1 or 0. This multiplier can then be
used in an equation that sets both Q_aux and Q_need.<br>
Best,<br>
David<br>
<br>
<br>
On 10/24/2011 10:27, Javier Galvan Villamarin wrote:
<blockquote
cite="mid:7FF5ADA2C6CB4F438CECC163B4DA960F402D07D4@EXDB4.ug.kth.se"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16430">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Dear All.
<!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /-->
<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">I am using the Equation component and I
need to assign values to the outputs depending on the
result of a previous equation.
<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Could somebody please help me with this?.<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><span
style="mso-ansi-language: SV" lang="SV"><font size="3"><font
face="Calibri">Input(1) = Q_dem<o:p></o:p></font></font></span></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><span
style="mso-ansi-language: SV" lang="SV"><font size="3"><font
face="Calibri">Input(2) = Q_eng<o:p></o:p></font></font></span></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Output(1) = Q_need<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Output(2) = Q_aux<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Output(3) = Q_rej
<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">Q_need = Q_dem - Q_eng<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">If
<span style="mso-spacerun: yes"> </span>Q_need>0 assign
<span style="mso-spacerun: yes">
</span>Q_aux= Q_need AND Q_rej=0<o:p></o:p></font></font></p>
<p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"><font size="3"><font
face="Calibri">If
<span style="mso-spacerun: yes"> </span>Q_need<0 assign
<span style="mso-spacerun: yes">
</span>Q_rej= Q_need AND Q_aux=0<o:p></o:p></font></font></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>