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

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



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@tess-inc.com
Web: www.tess-inc.com