Thank you all for your input, I found a neat solution that could easily be implemented from a combination of your responses. <br><br>Simply make the invalid (unavailable data points) massive numbers and then use TYPE581 (an interpolater) and an equation to read the same data file and the equation to switch the chiller off using a less then statement if the data is also massive (i set used control = lt(data, 1.22) since the max possible output of valid data was 1.2). <br>
<br>Not the greatest but much better then an 50 individual equations specifying ranges of the data. <br><br>TYPE107/680 (same component) is programmed incorrectly for another reason not taking into account the actual capacity of machine to work out the required energy input. Therefore used an modified version of type677 combining the data files S1 and S2 into the same reader because the broad chiller capacity is dependent of 3 independent variable TempHW, TempCW, and TempCHWsetpoint. To more accurate adding TempHW, TempCHWsetpoint to the last data file would be best since the required input is also dependent on these. One other fix to type677 was to make the frac of design cap also dependent on the actual capacity of operation not only the designed capacity. <br>
<br>Kind regards, <br><br>Jeremy Osborne<br><br><br><br><br><br><br><div class="gmail_quote">On Mon, Feb 8, 2010 at 5:22 AM, Jones Marcus <span dir="ltr"><<a href="mailto:Marcus.Jones@ait.ac.at">Marcus.Jones@ait.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">







<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Could you use an equation instead of
changing the fortran code? Something like (CW greater than 24C) </span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">AND</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> (HW less than 85) </span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">AND</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> (Tset less than 7) THEN (control
signal = 0)? Equations are useful for quick fixes if you don’t want to recompile
the fortran type. </span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Marcus</span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<p style="margin: 0cm 0cm 0.0001pt;"><b><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold;" lang="EN-GB">MARCUS JONES, MSc</span></font></b></p>

<p style="margin: 0cm 0cm 0.0001pt;"><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134);" lang="EN-GB">Energy Department</span></font></p>

<p style="margin: 0cm 0cm 0.0001pt;"><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134);" lang="EN-GB">Sustainable Building Technologies </span></font></p>


<p style="margin: 0cm 0cm 0.0001pt;"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin: 0cm 0cm 0.0001pt;"><i><font color="navy" face="Arial" size="2"><span style="font-size: 11pt; font-family: Arial; color: navy; font-style: italic;" lang="DE">Bitte beachten Sie unsere neuen Kontaktdaten! </span></font></i></p>


<p style="margin: 0cm 0cm 0.0001pt;"><i><font color="navy" face="Arial" size="2"><span style="font-size: 11pt; font-family: Arial; color: navy; font-style: italic;" lang="EN-GB">Please note our new contact details! </span></font></i></p>


<p style="margin: 0cm 0cm 0.0001pt;"><b><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134); font-weight: bold;" lang="DE">AIT</span></font></b><b><font color="#788386" face="Arial"><span style="font-family: Arial; color: rgb(120, 131, 134); font-weight: bold;" lang="DE"> Austrian Institute of Technology </span></font></b></p>


<p style="margin: 0cm 0cm 0.0001pt;"><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134);" lang="DE">Österreichisches
Forschungs- und Prüfzentrum Arsenal Ges.m.b.H. </span></font></p>

<p style="margin: 0cm 0cm 0.0001pt;"><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134);" lang="IT">Giefinggasse
2 | 1210 Vienna | Austria </span></font></p>

<p style="margin: 0cm 0cm 0.0001pt;"><font color="#788386" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: rgb(120, 131, 134);" lang="IT">T
+43(0) 50 550-6387 | M +43(0) 664 210 24 15 | F +43(0) 50550-6598</span></font></p>

<p style="margin: 0cm 0cm 0.0001pt;"><font color="blue" face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial; color: blue;" lang="EN-GB"><a href="mailto:marcus.jones@ait.ac.at" target="_blank"><span lang="IT">marcus.jones@ait.ac.at</span></a></span></font><u><font color="blue" face="Arial"><span style="font-family: Arial; color: blue;" lang="EN-GB"> </span></font></u><font color="#7d7d7d" face="Arial"><span style="font-family: Arial; color: rgb(125, 125, 125);" lang="IT">|
</span></font><u><font color="blue" face="Arial"><span style="font-family: Arial; color: blue;" lang="IT"><a href="http://www.ait.ac.at/" target="_blank">http://www.ait.ac.at</a> </span></font></u></p>

<p><font color="#bdbdbd" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(189, 189, 189);" lang="EN-GB">FN: 165088b HG Wien | UID: </span></font><font color="#bdbdbd" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(189, 189, 189);" lang="EN-GB">ATU</span></font><font color="#bdbdbd" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(189, 189, 189);" lang="EN-GB">46577208 This email and any attachments
thereto, is intended only for use by the addressee(s) named herein and may
contain legally privileged and/or confidential information. If you are not the
intended recipient, please notify the sender by return e-mail or by telephone
and delete this message from your system and any printout thereof. Any
unauthorized use, reproduction, or dissemination of this message is strictly
prohibited. Please note that e-mails are susceptible to change.
Österreichisches Forschungs- und Prüfzentrum Arsenal Ges.m.b.H. shall not be
liable for the improper or incomplete transmission of the information contained
in this communication, nor shall it be liable for any delay in its receipt. </span></font></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal" style="margin-left: 36pt;"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">-----Original Message-----<br>
<b><span style="font-weight: bold;">From:</span></b> Jeremy Osborne
[mailto:<a href="mailto:j.osborne@student.unsw.edu.au" target="_blank">j.osborne@student.unsw.edu.au</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> February 8, 2010 7:08 AM<br>
<b><span style="font-weight: bold;">To:</span></b> </span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"><a href="mailto:trnsys-users@cae.wisc.edu" target="_blank">trnsys-users@cae.wisc.edu</a></span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">;
<a href="mailto:techsupport@tess-inc.com" target="_blank">techsupport@tess-inc.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [TRNSYS-users] dynamic
data invalid data points</span></font></p>

<p class="MsoNormal" style="margin-left: 36pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Dear
All, <br>
<br>
I am modeling a BROAD single effect absorption chiller using type680. This uses
the catalog data lookup approach. Not all data points are available for all
operation conditions, for example, with cooling water (CW) in of 30C, Set point
Temp 7C, and hot water (HW)  input of 85C there is no capacity data point
because it is below 50%, however there is a data point available at CW of 24C,
set point temp of 7C and HW input of 85C so we need to have the 85C included in
the data file. <br>
<br>
The problem is what to put as the data point in these invalid points? <br>
 Zero (0) works for most, as it just turns the chiller off, but a problem
occurs when the conditions are between an invalid and a valid data point
because the dynamic data point interpolates between the 0 and the real value
leading to unrealistic data. <br>
<br>
There needs to be a way to switch the chiller off when an any invalid data
point is used. <br>
<br>
One solution is to add another 0, Zero point very close to each side of the
point, for example(not exact), do 85, 89.9, 90.....  = capacity 0, 0,
0.74.....<br>
<br>
This would minimize the interpolation chance, however not great and pointful to
create the data file. <br>
<br>
Another solution would be to put NA or something in the data file for the
invalid points, and change the fortran code to recognize this and switch the
chiller off. Similar to the errorif  function in Excel. <br>
However my fortran is very limited and i couldn't find anything on the web. <br>
<br>
Has anyone found a better solution or can help with this? <br>
<br>
Kind regards,<br>
<br>
Jeremy<br>
<br>
<br>
<br>
</span></font></p>

</div></div></div>

</div>


</blockquote></div><br>