Peter Nachtwey
Member
I don't the F3*Temp is right. Look at my equations on the first page where I have
Pumph*(Temph-PVt)/PV1 and
Pumphc(Tempc-PVt)/PV1
Remember what I have said about getting the steady state right. If you only turned on the hot pump and there was no demand or cold pump running then your model would let the temperature increase.
Another way to look at the problem. If only the demand was active and the pumps were not would the temperature change in the tank?
I don't think the demand should be cooling off of the tank. The heat loss and cold pump do that. The cold demand should not change the temperature directly.
Look at page 7/13 where I have the differential equations written out. There are 3 temperature terms and 3 level terms. To make sure I got my model right I would test 1 term at a time to make sure it made sense. For instance, I would set the pumps and the demand to zero and make sure the mixing tank wlll cool off to ******t temperature or Tempc. If I ignore the cooling and turn on only the hot pump the temperature should rise exponentially toward Temph. I did this term by term to make sure I got each term right because I screwed it too many times before. I find it harder to isolate the terms on your system diagram.
Does anybody understand the graphs for my simulation. Does anybody understand that the last two equations on the bottom of page 6 are all that is necessary to implement in the PLC?
What is interesting is that the fractional method yields this
Errort=(SPt-PVt)
Errorl=(SPl-PVl)
COh=2*Kcf*Errorl*Kct*Errort)
COl=2*Kcf*Errorl*(1-Kct*Errort)
the LQR method will look like this
COh=K00*Errorl+K01*Errort)
COl=K10*Errorl+K11*Errort)
Where:
Errort is the temperature error
Errorl is the level error
COh is the hot control output 0-1
COl is the cold control otuput 0-1
Kcf is the controller flow gain
Kct is the controller temperature gain
K00,K01,K10,K11 are gain to be determined by the LQR calculations.
I think the big difference is that the fraction calculations are multiplies and the LQR is a sum of products.
Pandiani, I always use differential equations when the system is non-linear. As you can see the simulation on the bottom of page 7 is easy after the model is correct. The hard part is going to try to get my differential equations to fit in a state space model so that the A array and state are together and the B arrays doesn't have state terms. You can see I have never needed to use Rytko's linearization technique when using non-linear differential equations.
Pumph*(Temph-PVt)/PV1 and
Pumphc(Tempc-PVt)/PV1
Remember what I have said about getting the steady state right. If you only turned on the hot pump and there was no demand or cold pump running then your model would let the temperature increase.
Another way to look at the problem. If only the demand was active and the pumps were not would the temperature change in the tank?
I don't think the demand should be cooling off of the tank. The heat loss and cold pump do that. The cold demand should not change the temperature directly.
Look at page 7/13 where I have the differential equations written out. There are 3 temperature terms and 3 level terms. To make sure I got my model right I would test 1 term at a time to make sure it made sense. For instance, I would set the pumps and the demand to zero and make sure the mixing tank wlll cool off to ******t temperature or Tempc. If I ignore the cooling and turn on only the hot pump the temperature should rise exponentially toward Temph. I did this term by term to make sure I got each term right because I screwed it too many times before. I find it harder to isolate the terms on your system diagram.
Does anybody understand the graphs for my simulation. Does anybody understand that the last two equations on the bottom of page 6 are all that is necessary to implement in the PLC?
What is interesting is that the fractional method yields this
Errort=(SPt-PVt)
Errorl=(SPl-PVl)
COh=2*Kcf*Errorl*Kct*Errort)
COl=2*Kcf*Errorl*(1-Kct*Errort)
the LQR method will look like this
COh=K00*Errorl+K01*Errort)
COl=K10*Errorl+K11*Errort)
Where:
Errort is the temperature error
Errorl is the level error
COh is the hot control output 0-1
COl is the cold control otuput 0-1
Kcf is the controller flow gain
Kct is the controller temperature gain
K00,K01,K10,K11 are gain to be determined by the LQR calculations.
I think the big difference is that the fraction calculations are multiplies and the LQR is a sum of products.
Pandiani, I always use differential equations when the system is non-linear. As you can see the simulation on the bottom of page 7 is easy after the model is correct. The hard part is going to try to get my differential equations to fit in a state space model so that the A array and state are together and the B arrays doesn't have state terms. You can see I have never needed to use Rytko's linearization technique when using non-linear differential equations.