<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hoofar,</p>
<p> The “Floating point division by zero” error is a generic one
that Fortran generates when a divisor isn't checked to make sure
that it is non zero before evaluating it. If you can send me the
TRNSYS part of your project (the file that you're trying to read
with Type9 and the project that attempts to read it) then I might
be able to use some debugging tools to find out what is happening.</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 08/27/2019 09:31, Hemmatabady,
Hoofar via TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5d8efe38902a4c15a893f542ce84930b@geo.tu-darmstadt.de">
<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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Mainly my
problem is about the multi-objective optimization which is
done by connecting MATLAB and TRNSYS. A text file (or excel
file) is written by MATLAB using the optimization algorithm.
The file is used by TRNSYS for evaluation of the objective
functions (which are function of TRNSYS parameters like area
of solar collectors) and the results goes back to MATLAB for
continuing the optimization procedure. At first, I used
type 9c and got the error “Floating point division by zero”.
Later because of the problem I had with type 9 and asked in
my previous email, I also use type 62 and got the same
error. Where does this error come from in my case and how
can I resolve it?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you in
advance<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hoofar<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> TRNSYS-users
<a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users-bounces@lists.onebuilding.org"><trnsys-users-bounces@lists.onebuilding.org></a>
<b>On Behalf Of </b>Hemmatabady, Hoofar via TRNSYS-users<br>
<b>Sent:</b> Tuesday, August 27, 2019 2:57 PM<br>
<b>To:</b> TRNSYS users mailing list at OneBuilding.org
<a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org"><trnsys-users@lists.onebuilding.org></a><br>
<b>Cc:</b> Hemmatabady, Hoofar
<a class="moz-txt-link-rfc2396E" href="mailto:hemmatabady@geo.tu-darmstadt.de"><hemmatabady@geo.tu-darmstadt.de></a><br>
<b>Subject:</b> [TRNSYS-users] Type 9 Data reader<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way that a data reader (type 9)
reads a text file just at the beginning of the simulation,
instead of the whole time steps, so that it can be used as a
TRNSYS parameter for mathematical optimization?
<o:p></o:p></p>
<p class="MsoNormal">I know it is also possible by using type 62
(calling excel), but using excel reduces the speed
considerably.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Hoofar<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
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>