simulink modelling vs the actual differential equation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Randy Chen
il 2 Ott 2021
Commentato: Randy Chen
il 11 Ott 2021
I didn't realize that to model a set of governing differential equations of a dynamical system in Simulink will require some modifications on the original equations of motion. Here is what I am confused about:
I'm following a tutorial to build a simulink model on inverted pendulum:
At first, the GDE of the system is described as follows:
Then, when the GDE is embedded into the Simulink model, some modifications are made:
When I rearrange and isolate x_dot_dot and theta_dot_dot in the original GDE, I get something different from the new GDE used in the screenshot above. Why is this the case??
0 Commenti
Risposta accettata
Salini S Nair
il 5 Ott 2021
I understand that you are modeling an inverted pendulum example in MATLAB and Simulink based on the tutorial.
The Simulink model is based on the nonlinear equations of the system, as given in equations (3) and (6) in the System Modeling part of the tutorial: Control Tutorials for MATLAB and Simulink - Inverted Pendulum: System Modeling (umich.edu)
The first part of the tutorial focuses on analysis techniques for linear systems. Hence, the system modeling using MATLAB uses the linearized equations of the system (equations (10) and (11)) to demonstrate the use of transfer function and state space representations.
In the Simulink modeling part of the tutorial, Control Tutorials for MATLAB and Simulink - Inverted Pendulum: Simulink Modeling (umich.edu), the original nonlinear equations are written in a different form using the terms ‘N’ and ‘P’ for ease of modeling (Equations (1) and (2)).
If you substitute for ‘N’ and ‘P’ (equations (13) and (14)) in the above equations, you will arrive at the original nonlinear equations.
The modeling in Simulink can be done using the original nonlinear equations as well.
Disclaimer: Please note that the tutorial is an external resource and MathWorks is not responsible for the correctness of the content.
3 Commenti
Salini S Nair
il 11 Ott 2021
Consider the derivation below. Hope it helps clarify your query.
Starting off with the equations given in Simulink modeling part of the tutorial(Control Tutorials for MATLAB and Simulink - Inverted Pendulum: Simulink Modeling (umich.edu))
The final equation matches the nonlinear equation used in the system modeling part of the tutorial (Control Tutorials for MATLAB and Simulink - Inverted Pendulum: System Modeling (umich.edu))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su General Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!