How do I do a quadratic integral to a sine function in Simulink

조회 수: 3 (최근 30일)
Sihao Fan
Sihao Fan 2019년 1월 19일
댓글: Sihao Fan 2019년 1월 21일
This is my simulation。I want to find the displacement by integrating an acceleration twice,which is a sin function, but when I take the second integral it's going to be very strange。
捕获.PNG
“Sin Wave” with the function: f=0.01*sin(pi*t)
Initial condition of the first Integrator is -0.001*pi
Initial condition of the second Integrator is 0
The picture of acceleration and velocity is correct, but then the curve of displacement starts to rise.
捕获3.PNG
捕获4.PNG
捕获2.PNG
Do I miss something?

채택된 답변

Areej Varamban Kallan
Areej Varamban Kallan 2019년 1월 21일
편집: Areej Varamban Kallan 2019년 1월 21일
Hi Sihao,
I beleive that there is nothing wrong with the solution computed. The equation you are solving is:
at t = 0.
The solution for this equation is:
.
This solution will grow as 't' increases. If you are not expecting this, please check the initial condition for velocity. Setting initial velocity to -0.01/pi will give steady oscillation.
  댓글 수: 1
Sihao Fan
Sihao Fan 2019년 1월 21일
Hi Areej,
Thanks for your reply! I solved my question。
But I don't really understand the second term of the solution for the equation.
捕获2.PNG
How did you get this term?

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by