pendulum with air resistance in simulink

22 views (last 30 days)
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 Comments
Nicolas
Nicolas on 3 May 2023
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

Sign in to comment.

Accepted Answer

Sam Chak
Sam Chak on 19 Dec 2022
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 Comment
Nicolas
Nicolas on 3 May 2023
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

Sign in to comment.

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!