Docsity

Nonlinear dynamical systems, Guide, Progetti e Ricerche di Controllo non lineare

Toggle sidebar
bg1
ABSTRACT
Nonlinear dynamical systems play a crucial role in a
wide array of engineering applications, where their
inherent complexities often necessitate linearization
to facilitate analysis and control. In this report, we
delve into the linearization of the velocity profile of a
cannonball as it travels inside a cannon before its
exit. The choice of the Ramadan Cannon for this
study is driven by the upcoming month of
Ramadan, during which this cannon is traditionally
employed to mark the breaking of the fast.
To comprehensively understand the behavior of the
cannonball, we take into account the nonlinear
forces acting upon it, such as the gas pressure
generated by the combustion of gunpowder and
the resistance due to friction and air drag. By
employing advanced mathematical modeling
techniques, we utilize the Taylor series expansion to
linearize the nonlinear system around an
equilibrium point. Additionally, we construct a state-
space representation to capture the system
dynamics effectively.
The derived linearized model is then subjected to a
series of rigorous tests and simulations using both
MATLAB and Simulink to assess its accuracy and
reliability. Through these simulations, we compare
the responses of the original nonlinear model and
its linearized counterpart, highlighting the
approximation's fidelity and limitations. The results
demonstrate that for small perturbations around
the equilibrium velocity, the linearized model
provides a satisfactory representation of the
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Anteprima parziale del testo

Scarica Nonlinear dynamical systems e più Guide, Progetti e Ricerche in PDF di Controllo non lineare solo su Docsity!

ABSTRACT

Nonlinear dynamical systems play a crucial role in a wide array of engineering applications, where their inherent complexities often necessitate linearization to facilitate analysis and control. In this report, we delve into the linearization of the velocity profile of a cannonball as it travels inside a cannon before its exit. The choice of the Ramadan Cannon for this study is driven by the upcoming month of Ramadan, during which this cannon is traditionally employed to mark the breaking of the fast. To comprehensively understand the behavior of the cannonball, we take into account the nonlinear forces acting upon it, such as the gas pressure generated by the combustion of gunpowder and the resistance due to friction and air drag. By employing advanced mathematical modeling techniques, we utilize the Taylor series expansion to linearize the nonlinear system around an equilibrium point. Additionally, we construct a state- space representation to capture the system dynamics effectively. The derived linearized model is then subjected to a series of rigorous tests and simulations using both MATLAB and Simulink to assess its accuracy and reliability. Through these simulations, we compare the responses of the original nonlinear model and its linearized counterpart, highlighting the approximation's fidelity and limitations. The results demonstrate that for small perturbations around the equilibrium velocity, the linearized model provides a satisfactory representation of the

system's behavior. This study not only contributes to the theoretical understanding of nonlinear dynamics but also offers practical insights for the application of linearization techniques in engineering contexts, particularly in the context of traditional practices such as the use of the Ramadan Cannon.

INTRODUCTION

Many physical systems exhibit inherently nonlinear behavior, which introduces a level of complexity to their analysis and control. To address these challenges, one commonly employed approach is linearization. Linearization approximates the nonlinear dynamics of a system by considering its behavior near a specific operating point, thereby simplifying the analysis and control of the system. This method is particularly valuable in engineering applications where an exact solution to the nonlinear system may be difficult or impossible to obtain. The motion of a projectile within a cannon serves as a prime example of a nonlinear system. The

conditions, offering additional insights into the dynamics of the cannonball's motion. By combining mathematical modeling, linearization, state-space representation, and simulation, this report aims to provide a comprehensive analysis of the nonlinear dynamics of the cannonball within the cannon. The results of this study not only enhance our understanding of nonlinear systems but also demonstrate the practical application of linearization techniques in engineering.

MATHEMATICAL MODELING

The motion of the cannonball inside the barrel is governed by Newton’s second law: m 𝑑𝑣 𝑑𝑡 = Fprop - Fresistance where:

 𝑣 is the velocity of the ball inside the cannon.

 m is the mass of the ball.  Fprop represents the propelling force,  Fresistance is the resistive force. The propelling force due to gas expansion can be modeled as: Fprop = P 0 Ae-kt^ where P 0 is the initial pressure, A is the barrel’s cross-sectional area, and k is a dissipation factor. The resistive force follows a quadratic drag law: Fresistance = cv^2 where c is the drag coefficient.

Thus, the nonlinear equation of motion is:

m

= P 0 Ae-kt^ + cv^2

LINEARIZATION

To linearize, we expand using a Taylor series around an equilibrium velocity v 0 : 𝑑𝑣 𝑑𝑡

𝑃 0 𝐴 𝑚 e-kt^ + 𝑐 𝑚 v^2 𝑑∆𝑣 𝑑𝑡

2 𝑐𝑣 0 𝑚

Taking the first-order approximation around v 0 , we obtain: where ∆𝑣 = 𝑣 − 𝑣 0 represents small deviations. This yields the linearized system: 𝑑∆𝑣 𝑑𝑡

where ʎ = 2 𝑐𝑣 0 𝑚

STATE-SPACE REPRESENTATION

To express the system in state-space form, we define the state variable: x 1 = ∆𝑣 = 𝑣 − 𝑣 0

MATLAB IMPLEMENTATION

clc; clear; close all; % Parameters m = 0.5; % Mass of the cannonball (kg) P0 = 1000; % Initial gas pressure (N/m^2) A = 0.01; % Cross-sectional area of the barrel (m^2) k = 0.1; % Pressure dissipation factor c = 0.05; % Drag coefficient v0 = 10; % Equilibrium velocity (m/s) tspan = [0 2]; % Time span for simulation % Nonlinear System Dynamics dvdt_nl = @(t, v) (P0A/m) * exp(-kt) - (c/m) * v.^2; [t_nl, v_nl] = ode45(dvdt_nl, tspan, v0); % Linearization Process lambda = (2cv0)/m; % Linearization constant dvdt_lin = @(t, dv) - lambda * dv; [t_lin, dv_lin] = ode45(dvdt_lin, tspan, 0); % Small perturbation model % State-Space Representation A_matrix = - lambda; B_matrix = 1; % Control input (if applicable) C_matrix = 1; % Output (velocity) D_matrix = 0; sys = ss(A_matrix, B_matrix, C_matrix, D_matrix); % State- space model % Prediction using Linearized Model v_predicted = v0 + dv_lin; % Plot Nonlinear vs. Linearized Model figure; plot(t_nl, v_nl, 'b', 'LineWidth', 2); hold on; plot(t_lin, v_predicted, 'r--', 'LineWidth', 2); xlabel('Time (s)'); ylabel('Velocity (m/s)'); title('Comparison of Nonlinear and Linearized Models'); legend('Nonlinear Model', 'Linearized Prediction');

grid on; % Display Final Velocities disp('Final velocity from nonlinear model:'); disp(v_nl(end)); disp('Final velocity from linearized model:'); disp(v_predicted(end)); % Control System Analysis (Optional) step(sys); % Step response of the linearized system

SCREENSHOTS FROM MATLAB

add_line(modelName, 'Sum/1', 'Scope/1'); add_line(modelName, 'Drag/1', 'Velocity/1'); Save the model % save_system(modelName); Simulate the model % simOut = sim(modelName, 'StopTime', '10'); Extract the simulation data % t = simOut.tout; v = simOut.get('yout').signals(1).values; Plot the results % figure; plot(t, v, 'b', 'LineWidth', 2); xlabel('Time (s)'); ylabel('Velocity (m/s)'); title('Cannonball Velocity Response'); grid on; Define operating point (initial conditions) % op = operpoint(modelName); Linearize the model % linsys = linearize(modelName, op); Display the linearized system % disp(linsys); Plot the linearized system response % figure; step(linsys); title('Velocity Response of the Linearized Cannon System');

SCREENSHOTS FROM SIMULINK

barrel pressure dynamics and more complex resistive forces. The results of this study contribute significantly to the theoretical understanding of nonlinear dynamical systems and the practical application of linearization techniques in engineering contexts. The success of our linearized model in accurately approximating the nonlinear behavior underscores the value of these techniques in simplifying complex systems for analysis and control.

RATES & NOTES

I would like to thank the Doctor for giving us this project. It provided a valuable opportunity to learn and understand the concept of linearization in depth. This experience has been incredibly enriching and will undoubtedly aid in our success in this course. I sincerely apologize for any mistakes that may be present in the project. I assure you that the work was done entirely by me, with utmost honesty and diligence.

REFERENCES

 Ogata, K. (2010). Modern Control Engineering. Prentice Hall

 MathWorks.com - Linearize Nonlinear Models

 DeepSeek. https://www.deepseek.com