Solving differential equation in simulink

조회 수: 27 (최근 30일)
Muhammad Saqlain Haider
Muhammad Saqlain Haider 2020년 8월 10일
댓글: hosein Javan 2020년 8월 19일
Hello Everyone
I am solving a differential equation (attached) of greenhouse energy balance on SIMULINK which has basically two unknowns (Tin and qg). One of them (qg) is model output and other (Tin) is also not know from any means. Now I have to calculate both of these parameters from this differential equation. The only thing that I know is the 6 factors on rightside of the equation but all of them are dependent on Tin and there is a operating set point for temperature is given as 20 for day and 16 for night for greenhouse. Can someone help me to solve this equation?
My simulink model is also attached.Plzzzz guide me
  댓글 수: 44
Muhammad Saqlain Haider
Muhammad Saqlain Haider 2020년 8월 19일
Thanks for ypour responce Sir. What could be the disturbance in my case? I am attaching the image of my model so Can you give me aqny idea that what are some disturbances in my model and secondly what does transfer function means in my model? Does it means integral that I am using including all the terms before integral? Thats what I understand but i can be wrong
Sam Chak
Sam Chak 2020년 8월 19일
Hi Muhammad Saqlain Haider, I didn't study your system dynamics in the Simulink model. Perhaps Dr. hosein Javan can provide constructive insights on this matter because he has previously viewed and commented on your Simulink slx file.

댓글을 달려면 로그인하십시오.

채택된 답변

hosein Javan
hosein Javan 2020년 8월 19일
hello again. this should look like this:
by clicking on "Tune" an app opens and tries to first linearize the system and then choose the best coefficients.
  댓글 수: 4
Muhammad Saqlain Haider
Muhammad Saqlain Haider 2020년 8월 19일
Yeah right sir, that is what I do not know where I have to put PID controller?. As I am I have to control Tin (inside temperature) by changing qg so I do not know how and where I have to put PID. As Dr. @hoesin javan mentioned in above picture, it is not working actually and I think it should not work because it is not controlling inside temperature which is Tin and there is no feedback loop as well. So I am not sure, if you have any idea please help
hosein Javan
hosein Javan 2020년 8월 19일
you're welcome Mr. Haider. many systems are nonlinear, that means they are not represantable by a linear differential equation. PID controller is only for linear systems, so in order to use that for a nonlinear system, the app tries to linearize the system first. meaning that for a small perturbation around the equilibrium, it is approximated by a linear system. as Mr. Chak said, the block tuning will work in certain condition, I might add that there could be other reasons why this fails like high nonlinearity and ofcourse the system ill definition. the PID is placed in the right place where after T compares with setpoint value and produces the qg necessary to acquire the wanted temperature. if tuning did not work, try to retune it yourself. first change the kP factor with having kI=0. remeber that kP certainly does not make your quantity to reach its setpoint but it should gets near. after that try to gradually increase kI, but before all these, I suggest that run the simulation once without controller, and try to manually change qg and see that the temperature reqires how much qg to estimate how much the controller should produce.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Continuous에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by