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

[TRNSYS-users] input value recall



Hi,
 
I did some test runs with the input value recall-type. The tpf file is attached... the other files are way too large to send ;-)
The issue is that I am dividing my loads into bins. The loads were calculated on a 0.1 hour timestep and include 42 zones.
The bins are entered in an equation writer as given below. I would expect that the sum of all end values in my bins would be equal to 8760/0.1, but that is not at all true.... Suggestion?
 
 
BIN_1 = AND(GE(LOADIN,-5),LT(LOADIN,0))+BIN_1PREV
BIN_2 = AND(GE(LOADIN,-10),LT(LOADIN,-5))+BIN_2PREV
BIN_3 = AND(GE(LOADIN,-15),LT(LOADIN,-10))+BIN_3PREV
BIN_4 = AND(GE(LOADIN,-20),LT(LOADIN,-15))+BIN_4PREV
BIN_5 = AND(GE(LOADIN,-25),LT(LOADIN,-20))+BIN_5PREV
BIN_6 = AND(GE(LOADIN,-30),LT(LOADIN,-25))+BIN_6PREV
BIN_7 = AND(GE(LOADIN,-35),LT(LOADIN,-30))+BIN_7PREV
BIN_8 = AND(GE(LOADIN,-40),LT(LOADIN,-35))+BIN_8PREV
BIN_9 = AND(GE(LOADIN,-45),LT(LOADIN,-40))+BIN_9PREV
BIN_10 = AND(GE(LOADIN,-50),LT(LOADIN,-45))+BIN_10PREV
BIN_11 = AND(GE(LOADIN,-55),LT(LOADIN,-50))+BIN_11PREV
BIN_12 = AND(GE(LOADIN,-60),LT(LOADIN,-55))+BIN_12PREV
BIN_13 = AND(GE(LOADIN,-65),LT(LOADIN,-60))+BIN_13PREV
BIN_14 = AND(GE(LOADIN,-70),LT(LOADIN,-65))+BIN_14PREV
BIN_15 = AND(GE(LOADIN,-75),LT(LOADIN,-70))+BIN_15PREV
BIN_16 = AND(GE(LOADIN,-80),LT(LOADIN,-75))+BIN_16PREV
BIN_17 = AND(GE(LOADIN,-85),LT(LOADIN,-80))+BIN_17PREV
BIN_18 = AND(GE(LOADIN,-90),LT(LOADIN,-85))+BIN_18PREV
BIN_19 = AND(GE(LOADIN,-95),LT(LOADIN,-90))+BIN_19PREV
BIN_20 = AND(GE(LOADIN,-100),LT(LOADIN,-95))+BIN_20PREV
BIN_21 = AND(GE(LOADIN,-105),LT(LOADIN,-100))+BIN_21PREV
BIN_22 = AND(GE(LOADIN,-110),LT(LOADIN,-105))+BIN_22PREV
BIN_23 = AND(GE(LOADIN,-115),LT(LOADIN,-110))+BIN_23PREV
BIN_24 = AND(GE(LOADIN,-120),LT(LOADIN,-115))+BIN_24PREV
BIN_25 = AND(GE(LOADIN,-125),LT(LOADIN,-120))+BIN_25PREV
BIN_26 = AND(GE(LOADIN,-130),LT(LOADIN,-125))+BIN_26PREV
BIN_27 = AND(GE(LOADIN,-135),LT(LOADIN,-130))+BIN_27PREV
BIN_28 = LT(LOADIN,-135)+BIN_28PREV
BIN1 = AND(GE(LOADIN,0),LT(LOADIN,5))+BIN1PREV
BIN2 = AND(GE(LOADIN,5),LT(LOADIN,10))+BIN2PREV
BIN3 = AND(GE(LOADIN,10),LT(LOADIN,15))+BIN3PREV
BIN4 = AND(GE(LOADIN,15),LT(LOADIN,20))+BIN4PREV
BIN5 = AND(GE(LOADIN,20),LT(LOADIN,25))+BIN5PREV
BIN6 = AND(GE(LOADIN,25),LT(LOADIN,30))+BIN6PREV
BIN7 = AND(GE(LOADIN,30),LT(LOADIN,35))+BIN7PREV
BIN8 = AND(GE(LOADIN,35),LT(LOADIN,40))+BIN8PREV
BIN9 = AND(GE(LOADIN,40),LT(LOADIN,45))+BIN9PREV
BIN10 = AND(GE(LOADIN,45),LT(LOADIN,50))+BIN10PREV
BIN11 = AND(GE(LOADIN,50),LT(LOADIN,55))+BIN11PREV
BIN12 = AND(GE(LOADIN,55),LT(LOADIN,60))+BIN12PREV
BIN13 = AND(GE(LOADIN,60),LT(LOADIN,65))+BIN13PREV
BIN14 = AND(GE(LOADIN,65),LT(LOADIN,70))+BIN14PREV
BIN15 = AND(GE(LOADIN,70),LT(LOADIN,75))+BIN15PREV
BIN16 = AND(GE(LOADIN,75),LT(LOADIN,80))+BIN16PREV
BIN17 = AND(GE(LOADIN,80),LT(LOADIN,85))+BIN17PREV
BIN18 = AND(GE(LOADIN,85),LT(LOADIN,90))+BIN18PREV
BIN19 = AND(GE(LOADIN,90),LT(LOADIN,95))+BIN19PREV
BIN20 = AND(GE(LOADIN,95),LT(LOADIN,100))+BIN20PREV
BIN21 = AND(GE(LOADIN,100),LT(LOADIN,105))+BIN21PREV
BIN22 = AND(GE(LOADIN,105),LT(LOADIN,110))+BIN22PREV
BIN23 = AND(GE(LOADIN,110),LT(LOADIN,115))+BIN23PREV
BIN24 = AND(GE(LOADIN,115),LT(LOADIN,120))+BIN24PREV
BIN25 = AND(GE(LOADIN,120),LT(LOADIN,125))+BIN25PREV
BIN26 = AND(GE(LOADIN,125),LT(LOADIN,130))+BIN26PREV
BIN27 = AND(GE(LOADIN,130),LT(LOADIN,135))+BIN27PREV
BIN28 = AND(GE(LOADIN,135),LT(LOADIN,140))+BIN28PREV
BIN29 = AND(GE(LOADIN,140),LT(LOADIN,145))+BIN29PREV
BIN30 = AND(GE(LOADIN,145),LT(LOADIN,150))+BIN30PREV
BIN31 = AND(GE(LOADIN,150),LT(LOADIN,155))+BIN31PREV
BIN32 = AND(GE(LOADIN,155),LT(LOADIN,160))+BIN32PREV
BIN33 = AND(GE(LOADIN,160),LT(LOADIN,165))+BIN33PREV
BIN34 = AND(GE(LOADIN,165),LT(LOADIN,170))+BIN34PREV
BIN35 = AND(GE(LOADIN,170),LT(LOADIN,175))+BIN35PREV
BIN36 = AND(GE(LOADIN,175),LT(LOADIN,180))+BIN36PREV
BIN37 = AND(GE(LOADIN,180),LT(LOADIN,185))+BIN37PREV
BIN38 = AND(GE(LOADIN,185),LT(LOADIN,190))+BIN38PREV
BIN39 = AND(GE(LOADIN,190),LT(LOADIN,195))+BIN39PREV
BIN40 = AND(GE(LOADIN,195),LT(LOADIN,200))+BIN40PREV
BIN41 = AND(GE(LOADIN,200),LT(LOADIN,205))+BIN41PREV
BIN42 = AND(GE(LOADIN,205),LT(LOADIN,210))+BIN42PREV
BIN43 = AND(GE(LOADIN,210),LT(LOADIN,215))+BIN43PREV
BIN44 = GE(LOADIN,215)+BIN44PREV
 
leen

Attachment: BINREWE.tpf
Description: Binary data