SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Tailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UKTailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UK
Obeo
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
AMIT KUMAR
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and History
Amazon Web Services
 
Microsoft cloud migration and modernization playbook 031819 (1) (2)
Microsoft cloud migration and modernization playbook 031819 (1) (2)Microsoft cloud migration and modernization playbook 031819 (1) (2)
Microsoft cloud migration and modernization playbook 031819 (1) (2)
didicadoida
 
Automatic control systems benjamin c[1]. kuo
Automatic control systems benjamin c[1]. kuoAutomatic control systems benjamin c[1]. kuo
Automatic control systems benjamin c[1]. kuo
Mulugeta Ashango
 

Was ist angesagt? (20)

Centralized SOC Architectures on AWS
Centralized SOC Architectures on AWSCentralized SOC Architectures on AWS
Centralized SOC Architectures on AWS
 
Tailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UKTailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UK
 
OPAL-RT eFPGAsim Power Electronic Real-time Simulator
OPAL-RT eFPGAsim Power Electronic Real-time SimulatorOPAL-RT eFPGAsim Power Electronic Real-time Simulator
OPAL-RT eFPGAsim Power Electronic Real-time Simulator
 
Scripting with Python to interact with Capella model
Scripting with Python to interact with Capella modelScripting with Python to interact with Capella model
Scripting with Python to interact with Capella model
 
From Model-based to Model and Simulation-based Systems Architectures
From Model-based to Model and Simulation-based Systems ArchitecturesFrom Model-based to Model and Simulation-based Systems Architectures
From Model-based to Model and Simulation-based Systems Architectures
 
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
Re-Host or Re-Architect: Understanding the Why and How of Very Different Path...
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
ISO-26262-Webinar.pptx
ISO-26262-Webinar.pptxISO-26262-Webinar.pptx
ISO-26262-Webinar.pptx
 
Me314 week08-stability and steady state errors
Me314 week08-stability and steady state errorsMe314 week08-stability and steady state errors
Me314 week08-stability and steady state errors
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)
 
Sil target selection verification exida
Sil target selection verification   exidaSil target selection verification   exida
Sil target selection verification exida
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and History
 
[Capella Day 2019] Integrating Capella, SCADE and medini analyze, for MBSE, E...
[Capella Day 2019] Integrating Capella, SCADE and medini analyze, for MBSE, E...[Capella Day 2019] Integrating Capella, SCADE and medini analyze, for MBSE, E...
[Capella Day 2019] Integrating Capella, SCADE and medini analyze, for MBSE, E...
 
Microsoft cloud migration and modernization playbook 031819 (1) (2)
Microsoft cloud migration and modernization playbook 031819 (1) (2)Microsoft cloud migration and modernization playbook 031819 (1) (2)
Microsoft cloud migration and modernization playbook 031819 (1) (2)
 
Automatic control systems benjamin c[1]. kuo
Automatic control systems benjamin c[1]. kuoAutomatic control systems benjamin c[1]. kuo
Automatic control systems benjamin c[1]. kuo
 
Verifying and Validating Requirements
Verifying and Validating RequirementsVerifying and Validating Requirements
Verifying and Validating Requirements
 
Lecture 2: Preliminaries (Understanding and Preprocessing data)
Lecture 2: Preliminaries (Understanding and Preprocessing data)Lecture 2: Preliminaries (Understanding and Preprocessing data)
Lecture 2: Preliminaries (Understanding and Preprocessing data)
 
Cloud Governance and Provisioning Management using AWS Management Tools and S...
Cloud Governance and Provisioning Management using AWS Management Tools and S...Cloud Governance and Provisioning Management using AWS Management Tools and S...
Cloud Governance and Provisioning Management using AWS Management Tools and S...
 
System testing
System testingSystem testing
System testing
 
STPA Analysis of Automotive Safety Using Arcadia and Capella
STPA Analysis of Automotive Safety Using Arcadia and CapellaSTPA Analysis of Automotive Safety Using Arcadia and Capella
STPA Analysis of Automotive Safety Using Arcadia and Capella
 

Ähnlich wie Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos

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
 
Engineering Portfolio
Engineering PortfolioEngineering Portfolio
Engineering Portfolio
Muaz Bondokji
 
DOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdfDOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdf
ShaizaanKhan
 

Ähnlich wie 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
 
DOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdfDOC245-20240219-WA0000_240219_090212.pdf
DOC245-20240219-WA0000_240219_090212.pdf
 
Hard landing predection
Hard landing predectionHard landing predection
Hard landing predection
 
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
 

Mehr von Scilab

Mehr von 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
 
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
 
Customizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and PaletteCustomizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and Palette
 

Kürzlich hochgeladen

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
 
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
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Kürzlich hochgeladen (20)

Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
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, ...
 
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...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
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
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 

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