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

Re: Repetitive signals using EQUATIONS.



It might be easier for you to use a type14 forcing function to generate
some multiplier flags (1 or 0). You could set up one forcing function whose
output is 0 between 12:00 and 6:00 am and 1 at all other times.  Then
define another which outputs a 0 between 2856 and 7272 hours.  The nice
thing about Type14 is that it repeats the forcing function. So if you
define a 24 hour cycle, the cycle will be repeated each day.
Please contact me if you have any further questions or need more
clarification.

Dave

At 12:57 AM 3/8/99 -0600, you wrote:
>
>Hi,
>
>Using TYPE 11 in the flow diverter mode, I am trying to program the full
>bypass 'on' or 'off' using the EQUATIONS feature of TRNSYS. As the program
>is run hourly for 8760 hours, the bypass shall be off when TIME is between
>2856 and 7272 hours and when TIME is between 12:00am and 6:00am for each 24
>hour period. The bypass shall be on for all other times. For this purpose, a
>series of logical equations are set up as follows:
>
>EQUATIONS 11
>LOWT=2856
>HIGHT=7272
>LOW=GT(TIME,LOWT)
>HIGH=LT(TIME,HIGHT)
>TRANGE=AND(LOW,HIGH)
>LOWD=24*(MOD(TIME,24))
>HIGHD=6+LOWD
>DRANGEUP=GT(TIME,LOWD)
>DRANGELO=LT(TIME,HIGHD)
>DRANGE=AND(DRANGEUP,DRANGELO)
>BYPASS_HP=TRANGE
>
>
>Do these equations make sense for the intended purpose? ALternative
>suggestions are welcome.
>
>Thanks and Cheers.
>
>CY
> 
> 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
David BRADLEY
TRNSYS Engineer			Phone: (608) 263-1589
Solar Energy Laboratory	bradley@sel.me.wisc.edu
1500 Engineering Drive		Fax: (608) 262-8464
Madison, WI  53706

The SEL Web Site can be seen at: http://sel.me.wisc.edu
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -