Transfer function derviation for a system
조회 수: 2 (최근 30일)
이전 댓글 표시
I plan to heat 10L of Palm Oil to 60C from room temperature and maintain that temperature for the transesterification of biodiesel. To maintain the temperature I am developing a PID controller with a 1000W immersion heater but I need to find a way to obtain the PID constants. So far I have developed this equation to model:
Where P is input power,
How to
- derive the system transfer function from matlab
- can I generate similar modelled equations as above for any adjustments to the system for example if I add a stirrer?
댓글 수: 2
Star Strider
2024년 5월 16일
imshow(imread('Screenshot 202...17 012956.png'))
A transfer function is generally defined as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697126/image.png)
with both being functions of time, transformed into the Laplace domain, so the assumptions of the Laplace transform would need to be taken into account. .
It would appear to me that the input should be the energy source that would be converted to heat, and the expression for that conversion, and the output would be temperature. A stirrer would help the system attain equilibrium faster. It would also add energy, however i doubt it would be significant.
A state space realisation of the control system when the input model is provided (assuming that it is not hidden in the expression provided) would likely be most appropriate.
There may also be other considerations.
.
답변 (1개)
Sam Chak
2024년 5월 17일
Hi @DP
From the differential equation, it can be rearranged to have the control term and the disturbance term.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697276/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697281/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697286/image.png)
In state-space matrix form, it looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697291/image.png)
This is a two-input, single-output system, so in theory, there should be two distinct transfer functions. However, with a little mathematical modification, you can make both transfer functions the same and have only one transfer function. The simple trick is to have the same element in the Input matrix B.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697296/image.png)
h = 1;
A = 3;
rho = 1;
V = 0.5;
C = 1;
A = - (h*A)/(rho*V*C)
B = 1/(rho*V*C)
%% state-space system
sys = ss(A, B, 1, 0);
%% transfer function
Gp = tf(sys)
In Control System Block Diagram, it looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697301/image.png)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!