[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[TRNSYS-users] calling sequence
Dear Trnsys users,
I am modelling a setpoint that is drifting inside a dwelling (17-23°C
for instance).
So I use an iterative feedback controller, with upper and lower
setpoints, which minimize abs(Qheat)+abs(Qcool). It works very weel.
Now I am writing a type, that controls (+/-1°C per week for instance)
that temperature 's drift. But to get the iterative feedback controller
working, I must not limit its output during the iterations, otherwise
the results are not consistent. So I thought I couls let the outputs
inchanged in the iterative calls (info(13)=0) and change them in the
post convergence call.
e.g.
/Perform any after iteration.../
if(info(13)>0
Tout=Tin+.../
Limitation de la vitesse de dérive/
endif
/this is an iterative call.../
if(info(13)=0
Tout=Tin
endif
out(1)=Tout
Obviously, this isn't working, I get the input temperature as an output
at every call, without any modification at the post-convergence call. Is
it possible? Am I getting something wrong?
Thanks in advance for your help
Thibaut Vitte