[TRNSYS-users] Type 9 Data reader

David BRADLEY d.bradley at tess-inc.com
Tue Aug 27 07:38:18 PDT 2019


Hoofar,

   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.

kind regards,

  David



On 08/27/2019 09:31, Hemmatabady, Hoofar via TRNSYS-users wrote:
>
> 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?
>
> Thank you in advance
>
> Best regards,
>
> Hoofar
>
> *From:* TRNSYS-users <trnsys-users-bounces at lists.onebuilding.org> *On 
> Behalf Of *Hemmatabady, Hoofar via TRNSYS-users
> *Sent:* Tuesday, August 27, 2019 2:57 PM
> *To:* TRNSYS users mailing list at OneBuilding.org 
> <trnsys-users at lists.onebuilding.org>
> *Cc:* Hemmatabady, Hoofar <hemmatabady at geo.tu-darmstadt.de>
> *Subject:* [TRNSYS-users] Type 9 Data reader
>
> Dear all,
>
> 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?
>
> I know it is also possible by using type 62 (calling excel), but using 
> excel reduces the speed considerably.
>
> Best regards,
>
> Hoofar
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
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
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190827/13b6a8bb/attachment.htm>


More information about the TRNSYS-users mailing list