[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] TRNSYS christmas riddle



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@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@01CD4E08.954D04D0

C
ellule 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@cofelyaxima-gdfsuez.com

P Pensez à l'environnement avant d'imprimer ce message

 



_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@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@tess-inc.com

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