Modeling and Simulation of a Three Degree of Freedom
Transcript of Modeling and Simulation of a Three Degree of Freedom
![Page 1: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/1.jpg)
Modeling and Simulation of a Three Degree of Freedom Longitudinal Aero plane System
Figure 1: Boeing 777 and example of a two engine business jet
![Page 2: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/2.jpg)
![Page 3: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/3.jpg)
Nonlinear dynamic equations of motion for the longitudinal direction of aircraft
![Page 4: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/4.jpg)
Nonlinear dynamic equations of motion for the longitudinal direction of aircraft
• The longitudinal equations of motions are considered for the aircraft model with the following assumptions
• V=0
• Y=0
• p=0
• r=0
• Ø=0
• Ψ=0
• Ixx=0
• Izz=0
• Ixz=0
![Page 5: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/5.jpg)
Nonlinear dynamic equations of motion for the longitudinal direction of aircraft
The equations after assumptions become:
![Page 6: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/6.jpg)
The state vector can be shown as:
![Page 7: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/7.jpg)
The control input can be shown as:
![Page 8: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/8.jpg)
Methods used to stabilize our model
The Linear Quadratic Regulator (LQR)controller.
The Proportional Integral Deferential (PID) controller.
![Page 9: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/9.jpg)
Gain Calculations(Ziegler and Nichols Method)
P control kp 0.5kpu
PI controlkp 0.45kpu
ki 0.45kpu /(0.83Tu )
PID control
kp 0.6kpu
ki 0.6kpu /(0.5Tu )
kd 0.6kpu /(0.125Tu )
![Page 10: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/10.jpg)
Gain Calculations(Transfer Functions)
X
e
-7.501e - 006 s4 + 2757 s3 + 4246 s2 + 281.7 s + 0.002549
s6 + 3.531 s5 + 17.14 s4 + 2.067 s3 + 0.1181 s2 + 1.071e - 006 s
Z
e
-27.83 s3 - 83.67 s2 + 3947 s + 67.91
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
e
-18.81 s3 - 29.05 s2 - 0.6134 s - 1.455e - 006
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
X
T
4.674 s4 + 16.42 s3 + 78.44 s2 - 0.09065 s + 6.172e - 017
s6 + 3.531 s5 + 17.14 s4 + 2.067 s3 + 0.1181 s2 + 1.071e - 006 s
Z
T
- 0.1001 s3 - 0.7965 s2 - 2.517 s - 8.463
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
T
0.009251 s2 + 0.05644 s + 5.875e - 019
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
X
S
-1.393e - 005 s4 + 4629 s3 + 7058 s2 + 468.3 s + 0.004237
s6 + 3.531 s5 + 17.14 s4 + 2.067 s3 + 0.1181 s2 + 1.071e - 006 s
Z
S
- 52.06 s3 - 150.4 s2 + 6553 s + 112.8
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
S
- 31.58 s3 - 48.29 s2 - 1.022 s - 2.444e - 006
s5 + 3.531 s4 + 17.14 s3 + 2.067 s2 + 0.1181 s + 1.071e - 006
![Page 11: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/11.jpg)
Root Locus Plots
![Page 12: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/12.jpg)
Root Locus Plots
![Page 13: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/13.jpg)
Root Locus Plots
![Page 14: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/14.jpg)
Cost Function Theory
J is the energy spent by the actuators in order to regulate the system towards equilibrium
The error vector (e) is defined as the difference between the actual state vector, and the commanded value
λ is a Lagrange multiplier
![Page 15: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/15.jpg)
Cost Function Theory
If a different value of weighting is required on each of the elements of the error vector and input u:
A square matrices, denoted here as Q, R (identity matrices), are used to ensure that J is non-negative for all values of e, and u, but is zero when X and Xcomm (no inputs) are equal .For each choice of Q, and R, minimization of J corresponds to a unique choice of x, using specific inputs.Essentially, the ratio between Q and R matrices represents the effort on actuators .
![Page 16: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/16.jpg)
Cost Function Theory
Q >> R The error is penalized, therefore the performances are maximized at the cost of an important effort on the actuators
Q << R
The control effort is penalized, therefore the energy used to compensate is reduced at the cost of lower performances.
![Page 17: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/17.jpg)
Cost Function Theory
![Page 18: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/18.jpg)
RESULTSCost Function Results
Highest performance, lowest cost, all state variables, and no inputs were used
![Page 19: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/19.jpg)
RESULTS
Lower performance, higher cost, all state variables, no inputs, but integration without dt
![Page 20: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/20.jpg)
RESULTS
Lower performance, higher cost, not all state variables, no inputs, and specific state variables were used for compromise between cost and performance
![Page 21: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/21.jpg)
RESULTS
High performance, higher cost, all state variables, and no inputs were used for compromise between cost and performance
![Page 22: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/22.jpg)
RESULTS
High performance, higher cost, all state variables, and elevator input is used only for reducing cost
![Page 23: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/23.jpg)
RESULTS
High performance, higher cost, all state variables, and throttle input is used only for reducing cost
![Page 24: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/24.jpg)
RESULTS
High performance, higher cost, all state variables, and stabilator input is used only for reducing cost
![Page 25: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/25.jpg)
RESULTS
High performance, highest cost, all state variables, and all inputs were used (which is our real case)
![Page 26: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/26.jpg)
Cost Function Conclusion
No much difference in results due to ρ that is very small.- From J1 to J8 (cost is getting higher), and from J1 toJ3 (performance is getting better), but from J4 to J8 (no change in performance).
-J8 is our choice for controlling all the inputs with all state variables of the system with high performance and high cost.
- For future work, we can compromise between J 3and J 4 to have J9 with specific state variables (not all state variables) and also specific inputs for compromising between performance and cost.
![Page 27: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/27.jpg)
OVERALL SYSTEM LAYOUT
LQR Layout:
Feedback linearization of the model for LQR layout
![Page 28: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/28.jpg)
OVERALL SYSTEM LAYOUT
Dynamic model of longitudinal aircraft for LQR layout
![Page 29: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/29.jpg)
OVERALL SYSTEM LAYOUT
PID Layout:
Dynamic model of longitudinal aircraft for PID layout
![Page 30: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/30.jpg)
OVERALL SYSTEM LAYOUT
PID layout for the longitudinal aircraft model
![Page 31: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/31.jpg)
RESULTS
![Page 32: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/32.jpg)
RESULTS
![Page 33: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/33.jpg)
RESULTS
![Page 34: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/34.jpg)
RESULTS
![Page 35: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/35.jpg)
RESULTS
![Page 36: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/36.jpg)
RESULTS
LQR Feedback Results :
Altitude stabilization Range stabilization
![Page 37: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/37.jpg)
RESULTS
Pitch angle stabilization
![Page 38: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/38.jpg)
RESULTS
Range stabilization
![Page 39: Modeling and Simulation of a Three Degree of Freedom](https://reader030.fdocuments.us/reader030/viewer/2022021009/6203aaa6da24ad121e4c0eb7/html5/thumbnails/39.jpg)
THANK YOUDone By: Abbas Chamas
Fadi Al FaraBilal JaroudiMoustafa Moustafa