[TRNSYS-users] TRNSYS christmas riddle

David BRADLEY d.bradley at tess-inc.com
Tue Dec 23 10:47:13 PST 2014


Marcello,
   TRNSYS should be giving you an error saying that the syntax of the 
equation is incorrect in all of those cases. The correct syntax of the 
MAX function is:

result = MAX(x,y)

   Thanks for catching that the syntax checking is not sufficient. I 
will ask the elves to put it on the bug list.
Best,
  Santa Claus


On 12/23/2014 08:55, marcello.caciolo at cofelyaxima-gdfsuez.com wrote:
>
> Dear TRNSYS users,
>
> Christmas approaches, and we found an amazing issue concerning TRNSYS 
> equations that we would like to share with you.
>
> A day, we created a new equation in TRNSYS, taping (by error) the 
> following expression :
>
> new = max(12),7
>
> you could think that TRNSYS reports an error…but you are wrong : the 
> result was 12 (try to plot it !)
>
> We was just thinking that TRNSYS is so smart that it corrects our 
> error, when we had a doubt. We tried to change the expression in :
>
> new = (max(12),7)
>
> and in this case, TRNSYS crashed giving us a horrible statement : 
> “forrtl : severe (408): fort: (3) : Subscript #1 of the array STACK 
> has value 0 which is less than the lower bound of 1”…
>
> But variety is the spice of live, than we tried another expression 
> again :
>
> new = 0*(max(12),7)
>
> You can imagine how we were surprised when TRNSYS plotted a constant 
> value of…84 !!!
>
> Definitely, we decided to write a letter to Santa Claus to help us to 
> solve this riddle…
>
> Merry Christmas to the TRNSYS group!
>
> *Marcello Caciolo*
> Responsable Outils et Méthodes d'Analyse Energétique
>
> cid:image003.jpg at 01CD4E08.954D04D0
> *
> *Cellule Efficacité Energétique et Environnementale - Pôle Projets et 
> Réalisations
> 46 Boulevard de la Prairie au Duc
> BP 40119 - 44201 Nantes Cedex 02
> Tél.: +33 02 40 41 06 57
> marcello.caciolo at cofelyaxima-gdfsuez.com 
> <mailto:prenom.nom at aximaseitha-gdfsuez.com>
>
> P*Pensez à l'environnement avant d'imprimer ce message*
>
>
>
> _______________________________________________
> 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/20141223/b66742d4/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4267 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20141223/b66742d4/attachment-0002.jpeg>


More information about the TRNSYS-users mailing list