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

[TRNSYS-users] Branch function implementation using equations



Hello,

 

I have an input variable that changes over time. The most correct way to characterize it is to use a branch function. I wanted to use the equations feature but it is giving me lots of errors. Using programming language, my variable changes like this:

 

If -57 < x < -30

 

Y1=8E-5x^2-0.0024+0.2385

End IF

 

If -30< x<-15

Y2=0.0001x^2+0.0028x+0.3494

End if

 

If -15< x<-5

Y3=-0.0001x^2-0.004x+0.3058

End if

 

Do you have any tip on how to do it on TRNSYS? Also it’s not mandatory to use equations.

 

Thank you in advance,

Kind Regards,

 Ana Delgado, University of Aveiro