[TRNSYS-users] TRNSYS-users Digest, Vol 67, Issue 65

Jeff Thornton thornton at tess-inc.com
Thu Jul 29 08:44:43 PDT 2010


Mariana wrote:

<You can use this:

 if(Ta.LT.15)then
    Ta=15
     if(Ta.GT.23)then
       Ta=23
    end if
end if
>

That's not correct.  That formulation can only be used in FORTRAN.  The
question was directed towards using EQUATIONS in the TRNSYS input file. 
The cleanest solution is the one posted earlier.

Ta1=MAX(15,MIN(Ta,23))

Jeff


Jeff Thornton
President - TESS, LLC

22 North Carroll Street - Suite 370
Madison WI 53703 USA

Phone: 608-274-2577
Fax: 608-278-1475
E-mail: thornton at tess-inc.com
Web: www.tess-inc.com




More information about the TRNSYS-users mailing list