SlideShare una empresa de Scribd logo
1 de 24
1www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.Copyright © ESI Group, 2019. All rights reserved.
www.esi-group.com
Aircraft Simulation Model and Flight Control Laws Design Using Scilab
and Xcos
André Ferreira da Silva, Altran
Scilab Conference 2019
2www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Agenda
The flight control laws problem;1
The control design process;2
Building a 6-DoF flight
mechanics model;3
Building the model using Scilab
scripts;4
Building the model using Xcos
diagrams;5
Model-based design vs. Scilab
scripts;6
Pitch rate controller design
example;7
How close are we from industry?8
3www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
The flight control laws problem (1)
4www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
The flight control laws problem (2)
Fly-By-Wire
5www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
The flight control laws problem (3)
6www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
The control design process
6 DoF Aircraft
Model
Open-Loop
Linear model
Linear Controller
Design
6 DoF Aircraft
Model
Closed-Loop
● Study the
plant;
● Define
requirements
for closing the
loop;
● Study the
plant
dynamics;
● Refine
requirements
for closing
the loop;
● Choose a
controller
architecture;
● Calculate the
gains;
● Linear analysis
(margins and
performance);
● Non-linear
controller design;
● Controller
discretization;
● Handling qualities
assessment;
● To be used by other
clients (loads);
7www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Aircraft flight mechanics model (6 DoF)
Roughly speaking:
• Rotational: roll, pitch and yaw;
• Translational: upwards, forwards, sidewards;
Detailed mathematical description requires:
• Fixed-body reference frame;
• Earth-fixed inertial frame;
8www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Aircraft flight mechanics model (6 DoF)
• Position in the inertial frame: x, y, z;
• Aircraft attitude: 𝛙, 𝛟, 𝛉;
• Aerodynamic variables: 𝛂, 𝛃,
airspeed, Mach;
Inputs (at least): Outputs (at least):
• Aerodynamic surfaces deflection
or stick/column/wheel command;
• Throttle command;
• Aerodynamic configuration
change command (flaps, slats,
landing gear);
9www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Aircraft flight mechanics model (6 DoF)
• Atmosphere: implementation of
International Standard Atmosphere
model;
• Aerodata: aerodynamic data;
• Engine: engine dynamics model;
• Params: geometric and mass
properties of the aircraft;
• EQM: equations of motion;
10www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Scilab script implementation
• Implementation based on data for F16 model
presented at Steven & Lewis (2003, 2nd edition);
• Unit test for each module comparing outputs with
data from the book (trim conditions, etc.);
• Modularization following the presented
component diagram;
• Simulator, linearizer and trimmer make use of
Scilab functions for solving ordinary differential
equations, for linearizing, etc;
11www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Atmosphere example (Scilab script)
function [T_K, p_Pa, rho_kgpm3]=atmosphere(h_m, deltaIsa)
● International Standard Atmosphere (1976);
● Physical model for temperature, pressure and density
calculations with many tabulated values;
● Tables extracted from the official document to a CSV
and used for unit test;
12www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Flight simulation example
1. Trim the aircraft (find an equilibrium condition);
S = fminsearch(costf16, S0);
1. Apply an input (surface deflection);
controls.elev_deg = elev_step;
1. Solve the system of the ordinary differential
equations;
y = ode(X0, t(1), t, f16_model);
1. Check the time history of the outputs;
13www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Model-based design approach: Xcos
• Visual modeling to
improve readability;
• Solver embedded in the
framework;
• Makes componentization
straightforward;
• Standard approach in the
aerospace industry.
14www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Atmosphere example (Xcos)
• Two inputs: altitude and deltaISA;
• Three outputs: temperature,
pressure and density;
• Unit test using a comparison
between the output of the block
and the literature data;
15www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Xcos Full Model Implementation
• A diagram block for each component
shown previously;
• Unit test for each block based on
data in the reference book and in
other sources of data;
• No trimmer yet;
• No linearizer yet.
16www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Flight simulation example
1. Trim the aircraft using the scilab
script version;
1. Run a script to initialize the
variables context;
1. Start the Xcos simulation;
1. Check the outputs.
17www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Xcos implementation vs Script implementation
• Xcos readability is mostly
straightforward (not always for
equations);
• Xcos makes possible to have
continuous and discrete time
implementations in the same
simulation;
• Xcos is easier to be translated
automatically to another programming
language (like C, for example);
• Xcos full aircraft model is very slow to
change (2.5-GHz Intel Core i5-7200U);
• Script version can take much more
advantage of version control system
(including merge features);
• Script version is easily adaptable to find
an equilibrium condition (trimming);
18www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Pitch rate controller design example
• What is pitch?
• And pitch rate?
• Why control pitch rate?
19www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Pitch rate controller design example
1. Linearize the 6-DoF aircraft model
around an equilibrium condition;
[A, B, C, D] = lin(sim_f16, X0_lin, U0);
1. Use the state-space representation to
design the controller (in this example,
using root locus);
ss_pi = syslin("c", 0, 3, 1, 1); //PI = (s+3)/s
ss_cl_alpha_pi = ss_cl_alpha*ss_pi;
//evans(ss_cl_alpha_pi(2,1),10);
20www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Getting closer to the industry
Source: Wikipedia at
https://upload.wikimedia.org/wikipedia/commons/b/b
d/AltitudeEnvelopeText.GIF
Design points
21www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Getting closer to the industry
Model based
design
22www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Getting closer to the industry
For example, at least:
• 6 aerodynamic coefficients;
• 4 parameters;
• Resolution of 0.1 deg or 0.01 Mach for each
parameter;
• Several configurations (flaps, slats, landing
gear, spoilers);
• Easily achieving gigabytes of data to lookup;
Source: Wikipedia at
https://en.wikipedia.org/wiki/Wind_tunnel#/media/File:MD-
11_12ft_Wind_Tunnel_Test.jpg
Amount of data and computational performance
23www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Getting closer to the industry
• Integration with Version Control
System and Issue tracking System;
• Merge feature for models;
• Traceability;
• Traceability (again);
Source: Wikipedia at https://en.wikipedia.org/wiki/DO-178C#/media/File:DO-178C_Traceability.png
Version Control
24www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Thank you

Más contenido relacionado

La actualidad más candente

ILS CAT II AND LOW VISIBILITY PROCEDURES
ILS CAT II AND LOW VISIBILITY PROCEDURESILS CAT II AND LOW VISIBILITY PROCEDURES
ILS CAT II AND LOW VISIBILITY PROCEDURESjairosilveira
 
Avionic systems by sanju
Avionic systems by sanjuAvionic systems by sanju
Avionic systems by sanjusanjana_ane
 
8 fighter aircraft avionics-part i
8 fighter aircraft avionics-part i8 fighter aircraft avionics-part i
8 fighter aircraft avionics-part iSolo Hermelin
 
V2500 Electronic Engine Control.pdf
V2500 Electronic Engine Control.pdfV2500 Electronic Engine Control.pdf
V2500 Electronic Engine Control.pdfSerranoSerrano7
 
Fadec- full authority digital engine control-latest
Fadec- full authority digital engine control-latestFadec- full authority digital engine control-latest
Fadec- full authority digital engine control-latestAbhishek Alankar
 
Fadec full authority digital engine control-final
Fadec  full authority digital engine control-finalFadec  full authority digital engine control-final
Fadec full authority digital engine control-finalAbhishek Alankar
 
Migrating into a cloud
Migrating into a cloudMigrating into a cloud
Migrating into a cloudANUSUYA T K
 
study of transponders -Defense Electronics Applications Lab, Dehradun
study of transponders -Defense Electronics Applications Lab, Dehradunstudy of transponders -Defense Electronics Applications Lab, Dehradun
study of transponders -Defense Electronics Applications Lab, DehradunMohit Kumar
 
FDR and CVR of Aircrafts
FDR and CVR of AircraftsFDR and CVR of Aircrafts
FDR and CVR of Aircraftsalpha_sherdil
 
Drone101 - Introduction to Multirotors
Drone101 - Introduction to MultirotorsDrone101 - Introduction to Multirotors
Drone101 - Introduction to MultirotorsJohnson Lam
 
10 Things every iPad pilot should know
10 Things every iPad pilot should know10 Things every iPad pilot should know
10 Things every iPad pilot should knowSporty's Pilot Shop
 
Aircraft design initial_sizing_2
Aircraft design initial_sizing_2Aircraft design initial_sizing_2
Aircraft design initial_sizing_2Roopam Choudhury
 
Fuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoningFuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoningDr. C.V. Suresh Babu
 
Flight Management System
Flight Management SystemFlight Management System
Flight Management SystemIshwar Bulbule
 

La actualidad más candente (20)

ILS CAT II AND LOW VISIBILITY PROCEDURES
ILS CAT II AND LOW VISIBILITY PROCEDURESILS CAT II AND LOW VISIBILITY PROCEDURES
ILS CAT II AND LOW VISIBILITY PROCEDURES
 
Avionic systems by sanju
Avionic systems by sanjuAvionic systems by sanju
Avionic systems by sanju
 
8 fighter aircraft avionics-part i
8 fighter aircraft avionics-part i8 fighter aircraft avionics-part i
8 fighter aircraft avionics-part i
 
V2500 Electronic Engine Control.pdf
V2500 Electronic Engine Control.pdfV2500 Electronic Engine Control.pdf
V2500 Electronic Engine Control.pdf
 
Fadec- full authority digital engine control-latest
Fadec- full authority digital engine control-latestFadec- full authority digital engine control-latest
Fadec- full authority digital engine control-latest
 
Rtca Do 160.pdf
Rtca Do 160.pdfRtca Do 160.pdf
Rtca Do 160.pdf
 
Fadec full authority digital engine control-final
Fadec  full authority digital engine control-finalFadec  full authority digital engine control-final
Fadec full authority digital engine control-final
 
A320 normal-procedures
A320 normal-proceduresA320 normal-procedures
A320 normal-procedures
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Migrating into a cloud
Migrating into a cloudMigrating into a cloud
Migrating into a cloud
 
study of transponders -Defense Electronics Applications Lab, Dehradun
study of transponders -Defense Electronics Applications Lab, Dehradunstudy of transponders -Defense Electronics Applications Lab, Dehradun
study of transponders -Defense Electronics Applications Lab, Dehradun
 
FDR and CVR of Aircrafts
FDR and CVR of AircraftsFDR and CVR of Aircrafts
FDR and CVR of Aircrafts
 
Drone101 - Introduction to Multirotors
Drone101 - Introduction to MultirotorsDrone101 - Introduction to Multirotors
Drone101 - Introduction to Multirotors
 
10 Things every iPad pilot should know
10 Things every iPad pilot should know10 Things every iPad pilot should know
10 Things every iPad pilot should know
 
ATDA Commercial Transport Airframe Part 4.pdf
ATDA Commercial Transport Airframe Part 4.pdfATDA Commercial Transport Airframe Part 4.pdf
ATDA Commercial Transport Airframe Part 4.pdf
 
Aircraft design initial_sizing_2
Aircraft design initial_sizing_2Aircraft design initial_sizing_2
Aircraft design initial_sizing_2
 
Fuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoningFuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoning
 
Flight Management System
Flight Management SystemFlight Management System
Flight Management System
 
ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)
 

Similar a Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos

A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...Scilab
 
muhammad zahid is the verry nice engineer in indus university...
muhammad zahid is the verry nice engineer in indus university...muhammad zahid is the verry nice engineer in indus university...
muhammad zahid is the verry nice engineer in indus university...zawalbaloch75
 
Airframe Meetup #3: 2019 Updates & AirSpec
Airframe Meetup #3: 2019 Updates & AirSpecAirframe Meetup #3: 2019 Updates & AirSpec
Airframe Meetup #3: 2019 Updates & AirSpecTaro L. Saito
 
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...IRJET Journal
 
Planning and Control Algorithms Model-Based Approach (State-Space)
Planning and Control Algorithms Model-Based Approach (State-Space)Planning and Control Algorithms Model-Based Approach (State-Space)
Planning and Control Algorithms Model-Based Approach (State-Space)M Reza Rahmati
 
Open power topics20191023
Open power topics20191023Open power topics20191023
Open power topics20191023Yutaka Kawai
 
Supporting Flight Test And Flight Matching
Supporting Flight Test And Flight MatchingSupporting Flight Test And Flight Matching
Supporting Flight Test And Flight Matchingj2aircraft
 
IRJET- CFD-A Trend in Automobile Aerodynamics Technology
IRJET- 	  CFD-A Trend in Automobile Aerodynamics TechnologyIRJET- 	  CFD-A Trend in Automobile Aerodynamics Technology
IRJET- CFD-A Trend in Automobile Aerodynamics TechnologyIRJET Journal
 
Engineering Portfolio
Engineering PortfolioEngineering Portfolio
Engineering PortfolioMuaz Bondokji
 
Hard landing predection
Hard landing predectionHard landing predection
Hard landing predectionRAJUPADHYAY44
 
DOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdfDOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdfShaizaanKhan
 
Cisco connect montreal 2018 saalvare md-program-xr-v2
Cisco connect montreal 2018 saalvare md-program-xr-v2Cisco connect montreal 2018 saalvare md-program-xr-v2
Cisco connect montreal 2018 saalvare md-program-xr-v2Cisco Canada
 
Study for flight simulation environments
Study for flight simulation environmentsStudy for flight simulation environments
Study for flight simulation environmentsWai Nwe Tun
 
CFD Analysis of conceptual Aircraft body
CFD Analysis of conceptual Aircraft bodyCFD Analysis of conceptual Aircraft body
CFD Analysis of conceptual Aircraft bodyIRJET Journal
 
IRJET-CFD Analysis of conceptual Aircraft body
IRJET-CFD Analysis of conceptual Aircraft bodyIRJET-CFD Analysis of conceptual Aircraft body
IRJET-CFD Analysis of conceptual Aircraft bodyIRJET Journal
 

Similar a Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos (20)

A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
 
muhammad zahid is the verry nice engineer in indus university...
muhammad zahid is the verry nice engineer in indus university...muhammad zahid is the verry nice engineer in indus university...
muhammad zahid is the verry nice engineer in indus university...
 
Portfolio
PortfolioPortfolio
Portfolio
 
Airframe Meetup #3: 2019 Updates & AirSpec
Airframe Meetup #3: 2019 Updates & AirSpecAirframe Meetup #3: 2019 Updates & AirSpec
Airframe Meetup #3: 2019 Updates & AirSpec
 
Paper3x.PDF
Paper3x.PDFPaper3x.PDF
Paper3x.PDF
 
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...
A Comparison of Closed-Loop Performance of MULTIROTOR Configurations using No...
 
Planning and Control Algorithms Model-Based Approach (State-Space)
Planning and Control Algorithms Model-Based Approach (State-Space)Planning and Control Algorithms Model-Based Approach (State-Space)
Planning and Control Algorithms Model-Based Approach (State-Space)
 
Open power topics20191023
Open power topics20191023Open power topics20191023
Open power topics20191023
 
Supporting Flight Test And Flight Matching
Supporting Flight Test And Flight MatchingSupporting Flight Test And Flight Matching
Supporting Flight Test And Flight Matching
 
IRJET- CFD-A Trend in Automobile Aerodynamics Technology
IRJET- 	  CFD-A Trend in Automobile Aerodynamics TechnologyIRJET- 	  CFD-A Trend in Automobile Aerodynamics Technology
IRJET- CFD-A Trend in Automobile Aerodynamics Technology
 
Aircraft Design
Aircraft DesignAircraft Design
Aircraft Design
 
Engineering Portfolio
Engineering PortfolioEngineering Portfolio
Engineering Portfolio
 
Hard landing predection
Hard landing predectionHard landing predection
Hard landing predection
 
DOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdfDOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdf
 
Portfolio
PortfolioPortfolio
Portfolio
 
Cisco connect montreal 2018 saalvare md-program-xr-v2
Cisco connect montreal 2018 saalvare md-program-xr-v2Cisco connect montreal 2018 saalvare md-program-xr-v2
Cisco connect montreal 2018 saalvare md-program-xr-v2
 
Study for flight simulation environments
Study for flight simulation environmentsStudy for flight simulation environments
Study for flight simulation environments
 
Pom final boeing
Pom final boeingPom final boeing
Pom final boeing
 
CFD Analysis of conceptual Aircraft body
CFD Analysis of conceptual Aircraft bodyCFD Analysis of conceptual Aircraft body
CFD Analysis of conceptual Aircraft body
 
IRJET-CFD Analysis of conceptual Aircraft body
IRJET-CFD Analysis of conceptual Aircraft bodyIRJET-CFD Analysis of conceptual Aircraft body
IRJET-CFD Analysis of conceptual Aircraft body
 

Más de Scilab

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust DesignScilab
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimizationScilab
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteScilab
 
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Scilab
 
Scilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab
 
X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...Scilab
 
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab
 
Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab
 
Multiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabMultiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabScilab
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop Scilab
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018Scilab
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Scilab
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Scilab
 
University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018Scilab
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018Scilab
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Scilab
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Scilab
 
CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018Scilab
 
Scilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the CommunityScilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the CommunityScilab
 

Más de Scilab (20)

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust Design
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimization
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 Keynote
 
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
 
Scilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modelling
 
X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...X2C -a tool for model-based control development and automated code generation...
X2C -a tool for model-based control development and automated code generation...
 
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
 
Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1
 
Multiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabMultiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in Scilab
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018
 
University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018
 
CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018
 
Scilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the CommunityScilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the Community
 

Último

Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProRay Yuan Liu
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfShreyas Pandit
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Javier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier Fernández Muñoz
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectSTATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectGayathriM270621
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 

Último (20)

Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdf
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Javier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptx
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectSTATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subject
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 

Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos

  • 1. 1www.esi-group.com Copyright © ESI Group, 2019. All rights reserved.Copyright © ESI Group, 2019. All rights reserved. www.esi-group.com Aircraft Simulation Model and Flight Control Laws Design Using Scilab and Xcos André Ferreira da Silva, Altran Scilab Conference 2019
  • 2. 2www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Agenda The flight control laws problem;1 The control design process;2 Building a 6-DoF flight mechanics model;3 Building the model using Scilab scripts;4 Building the model using Xcos diagrams;5 Model-based design vs. Scilab scripts;6 Pitch rate controller design example;7 How close are we from industry?8
  • 3. 3www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. The flight control laws problem (1)
  • 4. 4www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. The flight control laws problem (2) Fly-By-Wire
  • 5. 5www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. The flight control laws problem (3)
  • 6. 6www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. The control design process 6 DoF Aircraft Model Open-Loop Linear model Linear Controller Design 6 DoF Aircraft Model Closed-Loop ● Study the plant; ● Define requirements for closing the loop; ● Study the plant dynamics; ● Refine requirements for closing the loop; ● Choose a controller architecture; ● Calculate the gains; ● Linear analysis (margins and performance); ● Non-linear controller design; ● Controller discretization; ● Handling qualities assessment; ● To be used by other clients (loads);
  • 7. 7www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Aircraft flight mechanics model (6 DoF) Roughly speaking: • Rotational: roll, pitch and yaw; • Translational: upwards, forwards, sidewards; Detailed mathematical description requires: • Fixed-body reference frame; • Earth-fixed inertial frame;
  • 8. 8www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Aircraft flight mechanics model (6 DoF) • Position in the inertial frame: x, y, z; • Aircraft attitude: 𝛙, 𝛟, 𝛉; • Aerodynamic variables: 𝛂, 𝛃, airspeed, Mach; Inputs (at least): Outputs (at least): • Aerodynamic surfaces deflection or stick/column/wheel command; • Throttle command; • Aerodynamic configuration change command (flaps, slats, landing gear);
  • 9. 9www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Aircraft flight mechanics model (6 DoF) • Atmosphere: implementation of International Standard Atmosphere model; • Aerodata: aerodynamic data; • Engine: engine dynamics model; • Params: geometric and mass properties of the aircraft; • EQM: equations of motion;
  • 10. 10www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Scilab script implementation • Implementation based on data for F16 model presented at Steven & Lewis (2003, 2nd edition); • Unit test for each module comparing outputs with data from the book (trim conditions, etc.); • Modularization following the presented component diagram; • Simulator, linearizer and trimmer make use of Scilab functions for solving ordinary differential equations, for linearizing, etc;
  • 11. 11www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Atmosphere example (Scilab script) function [T_K, p_Pa, rho_kgpm3]=atmosphere(h_m, deltaIsa) ● International Standard Atmosphere (1976); ● Physical model for temperature, pressure and density calculations with many tabulated values; ● Tables extracted from the official document to a CSV and used for unit test;
  • 12. 12www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Flight simulation example 1. Trim the aircraft (find an equilibrium condition); S = fminsearch(costf16, S0); 1. Apply an input (surface deflection); controls.elev_deg = elev_step; 1. Solve the system of the ordinary differential equations; y = ode(X0, t(1), t, f16_model); 1. Check the time history of the outputs;
  • 13. 13www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Model-based design approach: Xcos • Visual modeling to improve readability; • Solver embedded in the framework; • Makes componentization straightforward; • Standard approach in the aerospace industry.
  • 14. 14www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Atmosphere example (Xcos) • Two inputs: altitude and deltaISA; • Three outputs: temperature, pressure and density; • Unit test using a comparison between the output of the block and the literature data;
  • 15. 15www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Xcos Full Model Implementation • A diagram block for each component shown previously; • Unit test for each block based on data in the reference book and in other sources of data; • No trimmer yet; • No linearizer yet.
  • 16. 16www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Flight simulation example 1. Trim the aircraft using the scilab script version; 1. Run a script to initialize the variables context; 1. Start the Xcos simulation; 1. Check the outputs.
  • 17. 17www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Xcos implementation vs Script implementation • Xcos readability is mostly straightforward (not always for equations); • Xcos makes possible to have continuous and discrete time implementations in the same simulation; • Xcos is easier to be translated automatically to another programming language (like C, for example); • Xcos full aircraft model is very slow to change (2.5-GHz Intel Core i5-7200U); • Script version can take much more advantage of version control system (including merge features); • Script version is easily adaptable to find an equilibrium condition (trimming);
  • 18. 18www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Pitch rate controller design example • What is pitch? • And pitch rate? • Why control pitch rate?
  • 19. 19www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Pitch rate controller design example 1. Linearize the 6-DoF aircraft model around an equilibrium condition; [A, B, C, D] = lin(sim_f16, X0_lin, U0); 1. Use the state-space representation to design the controller (in this example, using root locus); ss_pi = syslin("c", 0, 3, 1, 1); //PI = (s+3)/s ss_cl_alpha_pi = ss_cl_alpha*ss_pi; //evans(ss_cl_alpha_pi(2,1),10);
  • 20. 20www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Getting closer to the industry Source: Wikipedia at https://upload.wikimedia.org/wikipedia/commons/b/b d/AltitudeEnvelopeText.GIF Design points
  • 21. 21www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Getting closer to the industry Model based design
  • 22. 22www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Getting closer to the industry For example, at least: • 6 aerodynamic coefficients; • 4 parameters; • Resolution of 0.1 deg or 0.01 Mach for each parameter; • Several configurations (flaps, slats, landing gear, spoilers); • Easily achieving gigabytes of data to lookup; Source: Wikipedia at https://en.wikipedia.org/wiki/Wind_tunnel#/media/File:MD- 11_12ft_Wind_Tunnel_Test.jpg Amount of data and computational performance
  • 23. 23www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Getting closer to the industry • Integration with Version Control System and Issue tracking System; • Merge feature for models; • Traceability; • Traceability (again); Source: Wikipedia at https://en.wikipedia.org/wiki/DO-178C#/media/File:DO-178C_Traceability.png Version Control
  • 24. 24www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Thank you