DynamicSysMod PRJ PDF
DynamicSysMod PRJ PDF
2 Subsystem Models
5 DoF Simulation
References
➢P.H. Zipfel (2014), Modeling and Simulation of Aerospace Vehicle Dynamics, AIAA
Education Series, 3rd Edition.
➢P.H. Zipfel (2006), CADAC- Historical Paper
➢P.H. Zipfel (2007), A C++ Architecture for Unmanned Aerial Vehicle Simulations,
AIAA
➢F. Dietrich et all (2003), A FLIGHT MECHANICS/AERODYNAMICS COUPLING
METHODOLOGY FOR PROJECTILES, AIAA
➢P.H. Zipfel (2003), A C++ ARCHITECTURE FOR UNMANNED AERIAL VEHICLE
SIMULATIONS, AIAA
➢M. A. Creagh et all (2010), Attitude Guidance for Spinning Vehicles with
Independent Pitch and Yaw Control, Journal of guidance, control, and dynamics
References
References
Materials
Materials
Introduction
Introduction
• 1. Formulate Newton’s second law wrt the flight path reference frame.
• 2. Choose coordinate system:
• For the round rotating Earth model: Inertial coordinate ]𝐼
• For the flat-Earth simplification: Local level coordinates ]𝐿
• This Equations will mimic the attitude dynamics.
• 𝜔𝐵𝐼 : Angular Velocity of body wrt the inertial frame.
• In six DoF models is the output of Euler’s Eques.
• 𝑇 𝐵𝐼 : The direction cosine matrix of body frame wrt inertial frame.
• Use the flight path angle rates and incidence angle rates to construct the body rates.
• Their integrals build the direction cosine matrix.
• The state variables when Newton's equations are expressed in this frame:
• Inertial heading angle: 𝜓𝑈𝐼
• Inertial flight-path angle: 𝜃𝑈𝐼
• Inertial speed: 𝑉𝐵𝐼
𝒎𝑩 𝑫𝑰 𝒗𝑰𝑩 = 𝒇𝒂⋅𝑷 + 𝒇𝒈
• 𝒎𝑩 : Vehicle mass
• 𝒇𝒂⋅𝑷 : External aerodynamic and propulsive forces
• 𝒇𝒈 : gravitational force
cos 𝜃𝑈𝐼 cos 𝜓𝑈𝐼 cos 𝜃𝑈𝐼 sin 𝜓𝑈𝐼 −sin 𝜃𝑈𝐼
[𝑻]𝑼𝑰 = − sin 𝜓𝑈𝐼 cos 𝜓𝑈𝐼 𝟎
sin 𝜃𝑈𝐼 cos 𝜓𝑈𝐼 sin 𝜃𝑈𝐼 sin 𝜓𝑈𝐼 cos 𝜃𝑈𝐼
• Combining the incidence rates with their respective unit vectors and
adding them vectorially yields
ሶ 𝟑 + 𝛼𝒃
𝝎𝑩𝑽 = 𝛽𝒖 ሶ 𝟐
ሶ 𝑩𝑽 [𝒖𝟑 ]𝑽 +𝛼[𝒃
[𝝎𝑩𝑽 ]𝑩 = 𝛽[𝑻] ሶ 𝟐 ]𝑩
𝛽ሶ sin 𝛼
[𝝎𝑩𝑽 ]𝑩 = 𝛼ሶ
−𝛽ሶ cos 𝛼
ሶ 𝒗𝟏 + 𝛼𝒃
𝝎𝑩𝑽 = 𝜙𝑩𝑽 ሶ 𝟐
ሶ [𝑻]𝑩𝑽 [𝒗𝟏 ]𝑽 +𝛼[𝒃
[𝝎𝑩𝑽 ]𝑩 = 𝜙𝑩𝑽 ሶ 𝟐 ]𝑩
ሶ cos 𝛼
𝜙𝑩𝑽
[𝝎𝑩𝑽 ]𝑩 = 𝛼ሶ
𝜙𝑩𝑽ሶ sin 𝛼
ഥ]𝑮𝑰
[𝑻]𝑼𝑮 = [𝑻]𝑼𝑰 +[𝑻
ഥ]𝑼𝑮
[𝑻]𝑩𝑼 = [𝑻]𝑩𝑽 [𝑻]𝑽𝑮 +[𝑻
• [𝑻]𝑽𝑮 : Transformation matrix f the geographic velocity wrt geographic coordinates.
• The challenge is to calculate [𝑻]𝑽𝑮
𝑣𝐵𝑙 ≡ 𝐷𝑙 𝑠𝐵𝐼 = 𝐷𝐸 𝑠𝐵𝐼 + 𝛺𝐸𝐼 𝑠𝐵𝐼 = 𝑣𝐵𝐸 + 𝛺𝐸𝐼 𝑠𝐵𝐼
𝑼ሶ
ഥ]𝑩𝑼 1𝐵 [𝑓𝑎,𝑝 ]𝑩 + [𝑻]𝑼𝑮 1𝐵 [𝑓𝑔 ]𝑮
𝜓ሶ 𝑼𝐼 Ucos 𝜃𝑈𝐼 = [𝑻
𝑚 𝑚
−𝜃ሶ𝑼𝐼 𝑼
• These equations cannot be solved if U = 0 or 𝜃𝑈𝐼 = 90 deg
𝟎
1 𝑮 = [𝑔]𝑮 = 𝟎
[𝑓 ]
𝑚𝐵 𝑔
𝒈
• The angular velocity [𝝎𝑽𝑬 ]𝑽 of the velocity frame wrt the Earth frame
−𝜓ሶ 𝑽𝑳 sin 𝜃𝑉𝐿
[𝝎𝑽𝑬 ]𝑽 = 𝜃ሶ 𝑽𝑳
𝜓ሶ 𝑽𝑳 cos 𝜃𝑉𝐿
• The incidence angular rates for skid-to-turn missiles
𝛽ሶ sin 𝛼
[𝝎𝑩𝑽 ]𝑩 = 𝛼ሶ
−𝛽ሶ cos 𝛼
• The incidence angular rates for bank-to-turn aircraft
𝜙𝑩𝑽 ሶ cos 𝛼
[𝝎𝑩𝑽 ]𝑩 = 𝛼ሶ
𝜙𝑩𝑽 ሶ sin 𝛼
• 𝜙𝐵𝑉 :is the bank angle of the normal load factor plane rotated about the [𝑣𝐵𝐸 ]vector from the vertical plane.
• F :thrust
• 𝑞:dynamic
ത pressure
• S :aerodynamic reference area
Subsystem Models
Subsystem Models
Subsystem Models
• Aerodynamics simulates the forces and moments that shape the flight
trajectory.
• Aerodynamics data can be found in references, computer’s code,
wind tunnel and …
• Missile DATCOM: Consists of compendium of experimental and
theoretical results.
• Lift coefficient
𝐿
𝐶𝐿 =
𝑞ത 𝑆
• Drag coefficient
𝐷
𝐶𝐷 =
𝑞ത 𝑆
• Their dependencies are reduced to
✓lift vector: Normal to the velocity vector in the load factor plane
Function of 𝛼’
9.2.2 Propulsion
• Thrust Eques.
9.2.2 Propulsion
9.2.2 Propulsion
• By eliminating the 𝜔𝑛 :
9.2.3 Autopilot
• Autopilots
1. stabilize airframes
2. improve control response
3. convert guidance signals to actuator commands
4. maintain constant flight parameters
• Compare the commanded inputs with the measured states and shape
the error signal.
9.2.3 Autopilot
• The signal of the feedback loop determines the type of autopilot.
• Flight-path controller:
Use flight-path-angle measurements.
• Altitude controller.
Use height measurements
• Bank-angle controller executes constant turns.
9.2.3 Autopilot
Fig 9.9 Pseudo-five-DoF pitch plane acceleration controller for missiles (similar for yaw plane).
• Generate the angle of attack from the output of the rate loop
• Use of the incidence-lag relationship
9.2.3 Autopilot
• Time constant
9.2.3 Autopilot
𝐺𝑅 𝐺𝑅 𝑉
𝑇𝐴 = 𝐺𝐴𝐶𝑃 =
𝐺𝐼 𝑇𝑅 𝑇𝑖
9.2.3 Autopilot
• To calculate 𝑇𝑅
9.2.3 Autopilot
9.2.3 Autopilot
9.2.3 Autopilot
Int Students_Num = 25
Data type Variable Value
25 RAM
• One-Dimensional Array
• Two-Dimensional Array
• Polymorphism
Many forms, one interface (overloading of functions and operators, run-time
polymorphism) – reduces complexity
• Inheritance
An object can acquire the properties of another object (hierarchical
classification) – mirrors the hierarchy of the real world
• Encapsulation
Binding together data and functions and restricting their access – supports
large-scale programming
• Code reusability
• reuse the members of your parent class. So, there is no need to
define the member again. So less code is required in the class.
Litton Industry CADAC-Air Force CADAC Version 3.0 CADAC Version 3.1
• CADAC families:
• CADAC1: air-to-ground 3 DoF
• GHAME6
NASA X30 with flight control, GPS/INS, SAR sensor, Monte Carlo
• FALCON6
F16 aircraft simulation with flight control
• SRAAM6
Air-to-air missile against aircraft target, multiple engagements
• ROCKET6
Three stage solid rocket booster, orbit insertion guidance, weather deck, Monte Carlo
• Each aerospace vehicle is an object Cadac Base class of hierarchical class structure of vehicles
declared by its hierarchical class structure
Vehicle Hosting a pointer array of type Cadac
• Data and methods are encapsulated
Aerodynamic and propulsion data tables Module Storing module information
Vehicle characteristics are computed in module Variable Declaring module-variables
functions Event Storing event information
• Class hierarchy Packet Storing data packets for global communication bus
Datadeck Hosting a pointer array of type Table
Abstract base class CADAC
Table Storing tabular data
First derived class defines the equations of motion
Markov Storing Markov data
Second derived class defines the vehicle modules
Matrix Declaring matrix operations
Document Storing module-variable definitions
• The classes inherit the communication structure from the base class
CADAC
• The components of the vehicle, aerodynamics, propulsion and
autopilot, are represented by modules, which are member functions
of the vehicle class.
• 2DIM
2-dimensional plotting
Up to three variables in two frames (total of six variables)
Multiple vehicle plotting
• PITA
3-dimensional plotting in Cartesian coordinates
Up to ten vehicles
• GLOBE
3-dimensional plotting over the Earth (longitude, latitude, altitude)
Up to four vehicles
• CHARTS:
Strip charts
Up to 12 traces in one frame
• Stochastic processing
1. HIST: Histograms
2. BIVAR: CEP and bivariate ellipses from scatter plots
3. MCAP: Mean and std. deviation of trajectory fans
• Automated launch envelope and footprint generation
SWEEP and SWEEP++ for CADAC_FTN and CADAC++
• Prerequisites
• Microsoft Visual Studio 2019
• Intel® Parallel Studio XE 2019
• Check Intel® Fortran Compiler While installing
• Windows 10 with latest updates
• Latest Windows SDK
• Go to Project Setting
• Make sure that:
• Configuration types : .exe
• SDK Ver
Course Modeling and Simulation of Aerospace Vehicle Dynamics 7/30/2020 100 of 112
Course Modeling and Simulation of Aerospace Vehicle Dynamics 7/30/2020 101 of 112
Course Modeling and Simulation of Aerospace Vehicle Dynamics 7/30/2020 102 of 112