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

Repetitive signals using EQUATIONS.



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