SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

The standard atmosphere
The standard atmosphereThe standard atmosphere
The standard atmosphereMohamed Yasser
 
2 aircraft flight instruments
2 aircraft flight instruments2 aircraft flight instruments
2 aircraft flight instrumentsSolo Hermelin
 
Leveraging Alf for SysML, Part 1: Better Simulation Modeling
Leveraging Alf for SysML, Part 1: Better Simulation ModelingLeveraging Alf for SysML, Part 1: Better Simulation Modeling
Leveraging Alf for SysML, Part 1: Better Simulation ModelingEd Seidewitz
 
Display systems used in avionics
Display systems used in avionicsDisplay systems used in avionics
Display systems used in avionicsJeremieNiyonsaba
 
Block diagram Examples
Block diagram ExamplesBlock diagram Examples
Block diagram ExamplesSagar Kuntumal
 
Sdn and open flow tutorial 4
Sdn and open flow tutorial 4Sdn and open flow tutorial 4
Sdn and open flow tutorial 4UmaMahesh Sistu
 
aircraft static and dynamic stability,longitudinal and lateral
 aircraft static and dynamic stability,longitudinal and lateral aircraft static and dynamic stability,longitudinal and lateral
aircraft static and dynamic stability,longitudinal and lateralJini Raj
 
Aircraft digital computer system
Aircraft digital computer systemAircraft digital computer system
Aircraft digital computer systemItchan Urbano
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)hemadri sharma
 
Foundation Fieldbus
Foundation FieldbusFoundation Fieldbus
Foundation FieldbusJustin Baby
 
Basic Aerodynamics Ii Stability Large
Basic Aerodynamics Ii Stability   LargeBasic Aerodynamics Ii Stability   Large
Basic Aerodynamics Ii Stability Largelccmechanics
 
Advanced Aerodynamics
Advanced  AerodynamicsAdvanced  Aerodynamics
Advanced AerodynamicsKevin McNulty
 
Delta V Control System Overview
Delta V Control System OverviewDelta V Control System Overview
Delta V Control System OverviewSumeet Goel
 
Flight control systems
Flight control systemsFlight control systems
Flight control systemsTalha Karim
 
Avionics Systems Instruments
Avionics Systems InstrumentsAvionics Systems Instruments
Avionics Systems InstrumentsMichael Bseliss
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatJitender Singh Shekhawat
 

Tendances (20)

The standard atmosphere
The standard atmosphereThe standard atmosphere
The standard atmosphere
 
2 aircraft flight instruments
2 aircraft flight instruments2 aircraft flight instruments
2 aircraft flight instruments
 
Lecture 23 loop transfer function
Lecture 23 loop transfer functionLecture 23 loop transfer function
Lecture 23 loop transfer function
 
Leveraging Alf for SysML, Part 1: Better Simulation Modeling
Leveraging Alf for SysML, Part 1: Better Simulation ModelingLeveraging Alf for SysML, Part 1: Better Simulation Modeling
Leveraging Alf for SysML, Part 1: Better Simulation Modeling
 
Display systems used in avionics
Display systems used in avionicsDisplay systems used in avionics
Display systems used in avionics
 
Block diagram Examples
Block diagram ExamplesBlock diagram Examples
Block diagram Examples
 
Sdn and open flow tutorial 4
Sdn and open flow tutorial 4Sdn and open flow tutorial 4
Sdn and open flow tutorial 4
 
aircraft static and dynamic stability,longitudinal and lateral
 aircraft static and dynamic stability,longitudinal and lateral aircraft static and dynamic stability,longitudinal and lateral
aircraft static and dynamic stability,longitudinal and lateral
 
Control chap2
Control chap2Control chap2
Control chap2
 
Aircraft digital computer system
Aircraft digital computer systemAircraft digital computer system
Aircraft digital computer system
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)
 
Typical electronic
Typical electronicTypical electronic
Typical electronic
 
avionics-architectures1.ppt
avionics-architectures1.pptavionics-architectures1.ppt
avionics-architectures1.ppt
 
Foundation Fieldbus
Foundation FieldbusFoundation Fieldbus
Foundation Fieldbus
 
Basic Aerodynamics Ii Stability Large
Basic Aerodynamics Ii Stability   LargeBasic Aerodynamics Ii Stability   Large
Basic Aerodynamics Ii Stability Large
 
Advanced Aerodynamics
Advanced  AerodynamicsAdvanced  Aerodynamics
Advanced Aerodynamics
 
Delta V Control System Overview
Delta V Control System OverviewDelta V Control System Overview
Delta V Control System Overview
 
Flight control systems
Flight control systemsFlight control systems
Flight control systems
 
Avionics Systems Instruments
Avionics Systems InstrumentsAvionics Systems Instruments
Avionics Systems Instruments
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 

Similaire à 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
 

Similaire à 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
 

Plus 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
 

Plus 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
 

Dernier

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Dernier (20)

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

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