[TRNSYS-users] logic function in TRNSYS

keilholz, werner werner.keilholz at cstb.fr
Tue Oct 26 06:18:41 PDT 2010


Hi Dimas, 

 

You can use TRNSYS equation cards with factors for this (Assembly/insert equation); e.g. "if a > 10 then x=10 else x=20" would be written 

"GT(a,10)*10+10"

 

Or you  can use type 79 and write 

"if a > 10 x=10 else x=20 end"

 

Please refer to the email below for more explanations about type 79.

 

Werner

 

De : keilholz, werner [mailto:werner.keilholz at cstb.fr] 
Envoyé : mercredi 29 septembre 2010 16:15
À : trnsys-users at engr.wisc.edu
Objet : [TRNSYS-users] Creating TRNSYS components without a compiler: W

 

Dear TRNSYS users,

 

CSTB is proud to announce its latest TRNSYS add-on: W.

 

W is a TRNSYS type (TYPE 79) containing a complete programming language. Thanks to W, you no longer need to buy and master a complicated programming language and its development environment containing hundreds of mysterious buttons. Just add a type 79 to your project and write your algorithm into its external file. Then push F8 to run TRNSYS - everything happens inside Simulation Studio! 

 

W is provided with a simple, integrated programming and testing environment attached to the type 79 parameter window as a wizard (just click on the magic stick to start it). It can be operated with only two buttons: "Save" and "Run" (to test your program). 

 

W also 

*             provides all usual control structures you expect from a programming language (if-then-else, for, while, ...)

*             provides vector and matrix operations (including inversion!)

*             was especially designed for TRNSYS and has a very simple, easy to learn syntax, close to MATLAB wherever possible

 

The W manual is available here as a PDF file: ftp://ftp.cstb.fr/software/Trnsys/W/W-Manual.pdf 

A demo is contained in the latest TRNSYS 17 demo version ( http://sel.me.wisc.edu/trnsys/demos/demo.html ). 

 

You can also download a separate installer of the demo for your existing Trnsys installation: ftp://ftp.cstb.fr/software/Trnsys/W/W-Editor.EXE 

(works with Trnsys 16 and 17).

 

W is sold by CSTB; to order: http://boutique.cstb.fr/dyn/cstb/fiche_produit.asp?pf_id=672 

Do not hesitate to contact software at cstb.fr for more information.

 

Werner 

 

 

 

De : Dimas Firmanda Al Riza [mailto:dimasfirmanda at gmail.com] 
Envoyé : mardi 26 octobre 2010 12:29
À : trnsys-users at cae.wisc.edu
Objet : [TRNSYS-users] logic function in TRNSYS

 

Dear all,

 

I'd like to ask, are there any way to built a logic function or are there any component in TRNSYS that can be used to built logic function?

especially IF (logical statement) then .... (TRUE) else ..... (FALSE)

or do we need to create new component to do this?

 

Thank you

 

Regards,

 

Dimas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20101026/6d6aefe0/attachment-0001.htm>


More information about the TRNSYS-users mailing list