[TRNSYS-users] Trnsys equations

David BRADLEY d.bradley at tess-inc.com
Tue May 3 10:18:09 PDT 2016


Massimo,
   You can use the following:

result = variable1/MAX(0.0001,variable2)

  Of course this runs into problems if variable2 can legitimately be 
negative.

kind regards,
  David


On 05/03/2016 10:23, massimo truant wrote:
>
> Good afternoon to all.
>
> I want to write an equation with a division. My problem is that trnsys 
> report me an error saying that the equation has a division by zero.
>
> I put a condition (multiplying for an expression) that avoid the 
> division by zero but it doesn’t work.
>
> Someone could help me?
>
> Thanks to all
>
> Inviato da Posta <https://go.microsoft.com/fwlink/?LinkId=550986> per 
> Windows 10
>
> *Da: *David BRADLEY <mailto:d.bradley at tess-inc.com>
> *Inviato: *martedì 3 maggio 2016 15:46
> *A: *TRNSYS users mailing list at OneBuilding.org 
> <mailto:trnsys-users at lists.onebuilding.org>; freppelw at noirot.fr 
> <mailto:freppelw at noirot.fr>
> *Oggetto: *Re: [TRNSYS-users] Weather time step
>
> Wirich,
>
>    There are two basic Types that can be used to read weather data.
>
> Type15 is designed to read files that have a standard format (such as
>
> TMY2 or TMY3). Part of the standard format is a 1-hour timestep. If you
>
> modify a standard format weather file to have a different time step then
>
> it can no longer be read by Type15. Type9 can be used to read general
>
> weather data files. However, it does not have the solar radiation
>
> processing algorithms built into it as Type15 does. You'll need to use
>
> Type16 to process the results that are read by Type9.
>
> kind regards,
>
>   David
>
> On 04/29/2016 09:20, freppelw at noirot.fr wrote:
>
> > Hi everyone,
>
> >
>
> > As you know, the weather file for TRNSYS (TM2) is built with a 1 hour
>
> > time step.
>
> >
>
> > My question is: If I modify the weather file so that I have a time
>
> > step of 1 minute, would TRNSYS be able to execute the simulation? In
>
> > this case, is there a time step value to change in the program or is
>
> > it totally impossible?
>
> >
>
> > Thanks in advance.
>
> >
>
> > Wirich
>
> > _______________________________________________
>
> > 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
>
> 22 North Carroll Street - suite 370
>
> 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
>
> _______________________________________________
>
> TRNSYS-users mailing list
>
> TRNSYS-users at lists.onebuilding.org
>
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>
>
>
> _______________________________________________
> 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
22 North Carroll Street - suite 370
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/20160503/de13f19e/attachment.htm>


More information about the TRNSYS-users mailing list