pendulum with air resistance in simulink

조회 수: 15 (최근 30일)
Jordi van Selm
Jordi van Selm 2022년 12월 17일
댓글: Nicolas 2023년 5월 3일
I'm trying to recreate a pendulum wave through a scope in simulink.
Consider the following formula:
with g = 9.81 (gravity on earth), L = 1 and mu = 0.1
I got the following model:
Since I'm new to Matlab, I'm not sure if my model is correct, corresponding to the equation.
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2022년 12월 18일
Correct
Nicolas
Nicolas 2023년 5월 3일
Hello !
I wanted to recreate this pendulum with air resistance to test out other things but i can't manage to do it. Can you share me the .mlx project if you still have it ?
Kind regards

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

채택된 답변

Sam Chak
Sam Chak 2022년 12월 19일
Yes, your model is correct. In fact, the pendulum equation can be rewritten as a system of 1st-order ODEs:
where and are the system state variables. In Simulink, the system is interpreted in integral form
You can use two Integrator blocks, or a single Second-order Integrator block as shown below. The inner loop is the angular velocity loop and the outer loop is the angular position loop.
You can also send the signals to MATLAB Workspace for plotting out the result for your technical report.
Note: If the system is linear, then you can directly use the Linear State-Space Model Block without the Integrator blocks.
  댓글 수: 1
Nicolas
Nicolas 2023년 5월 3일
Hello !
I wanted to recreate this pendulum with air resistance to test out other things but i can't manage to do it. Can you share me the .mlx project if you still have it ?
Kind regards

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

추가 답변 (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