How do I do a quadratic integral to a sine function in Simulink
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sihao Fan
el 19 de En. de 2019
Comentada: Sihao Fan
el 21 de En. de 2019
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。
“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.
Do I miss something?
0 comentarios
Respuesta aceptada
Areej Varamban Kallan
el 21 de En. de 2019
Editada: Areej Varamban Kallan
el 21 de En. de 2019
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.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!