• Nie Znaleziono Wyników

DASMAT-Delft University Aircraft Simulation Model and Analysis Tool: A Matlab/Simulink Environment for Flight Dynamics and Control Analysis

N/A
N/A
Protected

Academic year: 2021

Share "DASMAT-Delft University Aircraft Simulation Model and Analysis Tool: A Matlab/Simulink Environment for Flight Dynamics and Control Analysis"

Copied!
236
0
0

Pełen tekst

(1)

Series 03

ContraI and Simulation 03

DASMAT-Delft University Aircraft

Simulation Model and Analysis Tooi

A Matlab/Simulink Environment

for Flight Dynamics and Control Analysis

C.A.A.M. van der Linden

(2)
(3)

DASMAT-Delft University Aircraft Simulation

Model and Analysis Taal

A Matlab/Simulink Environment

for Flight Dynamics and Control Analysis

Bibliotheek TU Delft

1111111111111

2392

339

1

(4)
(5)

DASMAT-Delft University Aircraft

Simulation Model and Analysis Tooi

A Matlab/Simulink Environment

tor Flight Dynamics and Control Analysis

C.A.A.M. van der Linden

(6)

Published and distributed by:

Delft University Press Mekelweg 4 2628CD Delft The Netherlands Telephone +31 (0)152783254 Fax +31 (0)152781661 e-mail: DUP@DUP.TUDelft.NL by order of:

Faculty of Aerospace Engineering Delft University of Technology Kluyverweg 1 P.O. Box 5058 2600 GB Delft The Netherlands Telephone +31 (0)15278 1455 Fax +31 (0)152781822 e-mail: Secretariaat@LR.TUDelft.NL website: http://www.lr.tudelft.nl

Cover: Aerospace Design Studio, 66.5 x45.5 cm, by:

Fer Hakkaart, Dullenbakkersteeg 3, 2312HP Leiden, The Netherlands Tel. + 31 (0)71 512 67 25

90-407-1582-3

Copyrighte 1998by Faculty of Aerospace Engineering All rights reserved.

No part of the material protected by this copyright notice may be reproduced or utilized in any form or by any means, electronic or

mechanical, including photocopying, recording or by any information storage and retrieval system, without written permission from the publisher: Delft University Press.

(7)

Contents

1 Introduction 2 General Overview 2.1 Installation . . 2.2 DA8MATfiles 2.3 SIMULINK models .

2.3.1 Architectureof SIMULINK modeis . 2.3.2 Structure of SIMULINK models 2.3.3 Generic aircraft model . 2.3.4 Generic engine model . 2.3.5 Generic aerodynamic model . . 2.3.6 Aircraft specificaerodynamic model 2.3.7 Aircraft specific propulsion model 2.3.8 Aircraft specificengine model . . . . 2.3.9 Condition specific wind model 2.3.10 Condition specific turbulence model 2.3.11 Operating shells for aircraft simulation. 2.3.12 Operaring shel1sfor enginesimulation

2.4 MATLAB routines . . .

2.4.1 Aircraft specification routine 2.4.2 Aircraft specific mass model. 2.5 Data-files

2.6 Variables

3 Operation

3.1 General operation .

3.2 Starting and initializingDA8MAT 3.3 Simulation of Aircraft . . . .

3.3.1 Open-loopsimulation in SIMULINK window 3.3.2 Open-loop simulation in command window 3.3.3 Specification of controlinputs . . . . 3.3.4 Specification of simulation visualization 3.4 Simulation of Engine . . . .

3.4.1 Simulation in SIMULINK window 3.4.2 Simulation in command window 3.5 Trimming of Aircraft . . . . 1 4 4 4 5 5 7 8 13 14 16 18 20 22 23 25 27 28 29 29 30 30 51 51 51 52 54 57 58 59 61 62 64 65

(8)

3.6 Linearizing of Aircraft . . . . 3.7 Fitting of aerodynamicmodel . . . . 3.8 Plotting of aircraft simulationtime-responses 3.9 Animationofaircraft simulation . 4 Control Design Applications

4.1 Introduetion .

4.2 SIMULINK models in closed- loop system . . . 4.2.1 Operating shell forclosed-Ioopaircraft simulation 4.2.2 Aircraft model .

4.2.3 Controller model 4.2.4 Actuator model. 4.2.5 Sensor model . .

4.2.6 Referencesignal generator .

4.3 MATLAB routinefor closed-loopspecification 4.4 Closed-loopsimulation in SIMULINK window. A Files used by DA8MAT

B Signal formats of generic aircraft models C Variables used by DA8MAT

D Definition of reference frames and outlines of Simulink models D.1 Definition of referen ceframes . . . .

D.1.1 Fixed eart h referenceframe . D.1.2 Moving eart h referenceframe D.1.3 Bod yreferencefram e. . . D.1.4 Stabilityreferenceframe. D.1.5 Air-pa threferen cefram e . D.1.6 Datum referencefram e. . D.2 Gen eric aircraft mod elac..mod.m

D.2.1 AIRDATA . D.2.2 WIND/TURBULENCE D.2.3 AFM . D.2.4 EFM . D.2.5 GRAVITlY D.2.6 FM SORT . D.2.7 EQM . . . D.2.8 OBSERVATIONS D.3 Standard SIMULINKsub-rnodels .

D.3.1 Atmosphere and airdata modelaccatmos .mex» D.3.2 Transformation modelac.axes.mex « . D.3.3 Wind mod el (vnd.none .m) . D.3.4 Turbulencemodels (tiur.none.m) , (cur.dryd.m) D.3.5 Feed-through engine model eng..none.m

D.4 User-suppliedSIMULINKmodeis. . . .

72 75 80 82 122 122 123 124 126 126 128 129 130 131 132 150 154 169 178 179 179 179 179 180 180 180 181 181 181 182 187 189 189 190 195 201 201 203 204 204 207 208

(9)

D.4.l Airc raftspecific aerodynamic model ac.aeronodel . . . 208 D.4.2 Aircraft specific propulsion modelac.povermodeL 212 D.4.3 Aircraft specific enginemodel (eng . nt atmodeL) , (en g.dynmodeL) 213

(10)

List of Tables

2.1 Format for InportjOutportbloeks inSIMULINK modeIs. . . 33 2.2 Strings and speeified variablesfor storing gen erated results in data-files. 34 4.1 Cont rol modesand variablesfor closed-Ioopsimulat ion. 137 B.1 Format of aircraft state variables in aireraft gener ie models ac.mod . mand

ac.rnodp c .m " 155

B.2 Format of Inport blocks inaircra ft generi omod elsac.modvmand ac.modp cim. 155

B.3 Format of Outport blocksinairc raft generie mod elac.mod,m. . . 156 BA Format of Outport ble eks inaircraft gene ric mod elac.modpc .m, . . . . 165 B.5 Forma t of Outportblocks inaircra ftspec ificengine mod eleng..none .m. 168 C.1 Variableswhichnam e mod el-files and mod el-bl ocks. 170 C.2 Vari ableswhiehnam e signa leom po nents . . . 171 C.3 Vari ableswhichnam eda ta-files andstored variabl es. 172

CA Variables which configure simulat ion mod els andcont rolsimula t ions. 173 C.5 Variables which spee ifycontroller mod esfor closed-l oop simula t ion .. 173 C.6 Vari ableswhieh eontain resultsfrom DASMAT tools. . . 174 C.7 Varia bles whieh spec ifyaireraft geome t rie param eters and cont ro l input

limi-tation s. 175

C.8 Variables which speci fy navigati on gro und st ation and measurem entlocations. 176 C.9 Variableswhichspecify atrnospheri e andtur b ulence constant s. 176 C.10 Variableswhieh spe cify aircraft geomet ry for anima t ion . . . 177

(11)

List of Figures

2.1 Architecture of SIMULINK models and variables designatingthe SIMULINK modeis. 35

2.2 SIMULINK S-function ac.mod,mand its highest sub-system levelof genera!

air-craft model. . . .' 36 2.3 SIMULINK S-functionac.modpcvmand its highest sub-system levelofcompact

aircraft model. 38

2.4 SIMULINK S-functi on eng.modimand its highest sub-syst em level of generic

engine model. . . 40 2.5 SIMULINK S-function aero..mod.mand its highest sub-system level of generic

aero dynam ic model. .. . . 41 2.6 Template SIMULINK S-function ac.a erc .m for aircraft spec ific aero dy namic

mod el. . . 42 2.7 ExampleSIMULINKS-functionac.poe.m for propulsionmodelof a two-engin e

airc raft. . . 43 2.8 SIMULINKS-function eng.none .mof feed-through eng ine mod elwith thru st as

cont rol input . . . 44 2.9 SIMULINKS-functionwnd.none .mof wind modelfor zerowind cond it ion.. . . 44 2.10 SIMULINK S-functiontur.none . mof turbulencemodelfor zero turbulence

con-dition. . . .. 45

2.11 SIMULINK S-function tur-dryd.mof turbulencemodel using Dryden spectra. 45 2.12 Default operating shellsfor open-loop aircraft simulation in SIMULINK window. 46 2.13 Default operating shells for open-loop aircraftsimulation incom mand window. 47 2.14 Default operating shellsfor closed-loopaircraftsimulationin SIMULINK window. 48

2.15 Defaultoperating shells forengine simulationin SIMULINK and command window. 49

2.16 Basic lay-out of MATLAB M-script for aircraft specification routinedesignated

byae-info. . . 50 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10

Menu windowfor controlling DASMAT package.

Commands for executing DASMATrout ines from MATLAB prompt. Display for DASMAT initialisation routine. . .

Flow-diagram of aircraftsimulationtooIs im.ac.m . Displayfor aircraft simulationtooI.. . . . Follow-up display for aircraft simulation in SIMULINKwindow.

Window for on-linecontrolling main flight-controls at simulation in SIMULINK

window .

Screen lay-out foraircraft simulation with on-line control and model display.

Fellow-up displayfor aircraftsimulationin command window..

Displ ayfor creating control inputs. . . . 84 84 85 86 87 88 88 89 90 91

(12)

3.11 Control inputs generated from theentries in Figure3.10.. . . 93 3.12 Display for specifyingview par am eterswith animationofaircraft simulation . 94 3.13 Screenlay-out for aircraft simulation displayed asanima t ion. . . . 95 3.14 Screen lay-outfor aircraft simulation displayed as time-responses.. 97 3.15 Flow-diagram ofengine simulation taal sam.eng.m. . . 98 3.16 Display for engine simulationtaal in SIMULINK window. . . 99 3.17 Follow-up display forenginesimula t ion taal incomma nd window.. 100 3.18 Flow-diagramofaircraft trimming taalt.rim.ac.m. . . 101 3.19 Display for aircraft trimming taal. . . 102 3.20 Display for aircrafttrimmingtaal after reading aircraft configur a t ion and

op-era t ing point from file. . . 103 3.21 Follow-up display foraircraft trimming taal. . . 104 3.22 Follow-up display for aircraft trimming taal. . . 105 3.23 Flow-diagramof aircraftlinearisation toolLin.ac.m, 106 3.24 Display for aircraft linearisa tion taal. . . 107 3.25 Flow-diagramofaerodya nmic fittingtaalfitcaeroim. 109 3.26 Display foraer odynami cfitting ta alusingdata generate d from an aerodynami c

model. . . 110 3.27 Displayfor aero d yna mic fittingta alusing (simulat ed )ftight-test data. . . 111 3.28 Follow-updisplayforaerod yna m ic fitting taal fordefinin g st r uct ureof aer od

y-namicpolyn omi als. . . 112 3.29 Follow-updispl ayfor aero dy na mic fittingtaalfor calcula t ing indep enden t and

dep endent variables from aero dy na mic mod el or speci fying indep endent and dep end en t vari abl esinobse rvat ion outputs. . . 113 3.30 Follow-updisplayfor aero dy na mic fit ting tooi fordefinin g add it ionalter ms in

aero dy nam ic polyn omi als (isalsoinitial display after command fiLaerol). . 113 3.31 Follow-up displayfor aerody na m ic fittin g taal with fittingresults.. . . 114 3.32 Flow-di agr am of plat tingtooi ofaircraft simulation time-responsesploLac.m. 115 3.33 Displayfor platting taal ofairc raft simulationtime-respo nses . . . 115 3.34 Exampledisplay of simula ted traj ectories generate d via plattingtaalof

time-responses. . . 116 3.35 Flow-diagram of animation taal of aircraft simulationshov.ac.m. 117 3.36 Display for animation taal ofaircraft simulation. . . 118 3.39 Follow-up displayfor animation taal of aircraft simulation. 118 3.37 Fellow-up display for animation taal of aircraft simulation (identical to Fi

g-ure3.12). . . 119

3.38 Screen lay-out for aircraft simulation displayed as animation. (identical to

Figure3.13) . 120

4.1 Defaultoperatingshellsfor closed-loop aircraftsimulation in SIMULINK window (identical to Figure2.14). . . 138 4.2 Exampleof implementingpeturbationmodels and perform an ceweightsfor the

actuator mod elin theSIMULINK operating shell. . . 139 4.3 Examples of interal str uct ure s of the cont roller. . . 139 4.4 Exampleof implem enting ascheduled control gain in SIMULINK cont roller mod el. 139 4.5 ExampleSIMULINK S-functionfora ftight cont roller mod el. 140 4.6 ExampleSIMULINKS-functi onfor an actuator mod el. 141

(13)

4.7 Example SIMULINK S-function for a sensor model. 142 4.8 Example SIMULINK S-function for a reference signal generator. 143

4.9 Basic lay-out of MATLAB M-script for closed-Ioop specification routine

desig-nated by cLinfo. 144

4.10 Flow-diagram of aircraft simulation tooI sdm.ac.m with closed-Ioop simulation. 145 4.11 Display for aircraft simulation tooI with closed-loop simulation. 146 4.12 Follow-up display for closed-Ioop aircraft simulation. 147 A.l List of files for the DASMAT package. . . . 151

A.l Continue. . . 152 A.2 List of user-generated data-files from DASMAT tools. 152 A.3 List of aircraft specific files for Citation 500 aircraft. . 153

(14)
(15)

Chapter

1

Introduction

This manual documents the implementation of the DA8MAT software package in MAT -LABjSIMULINK . The acronym DA8MATstands for Delft University Aircraft Simulation Mod el and Analysis TooI. The package is designed around a generic nonlinear aircra ft mod el which is availa bleas a SIMULINK S-functi on . In addit ion to this mod el, DA 8MAT

prov ides the followin g ana lysis tools,availableas MATLABM-files: • simula te airc raft mod el

• simulate engine mod el • trim airc ra ft model • linearize aircra ft mod el • fit aerody na m ic model

• plot time-respo nsesofaircra ftsimulat ion • show animation ofaircra ft simulation

The DA8MATpackage offers the user a powerful and f1exibl e Computer Assisted Design

(CAD) environment for use in various disciplines of f1ight mechanics research, i.e, design of control systems ,simulation purposes,designof f1ight tests. Thebase of the package isa gener ic nonlinear aircraftmodel with well-defin edand generalized interfacesto aerodynamic, propulsion and engine modeis,as weil as to modelsof external conditions as atmospheric wind and turbulence. The generic aircraft modelcan thus bemadeapplicableto any aircraft andcondit ion by includinguser-suppliedmodelsor modelsfrom a library for thataircraft or cond it ion. Furthermore, the model architecture gives the user theability to define contro l inputs and select observation outputs without destroying the model integrity, and thus to adap t themodel to theanalysis problem.

DA8MATcontains all required toolsfor both off-lineand on-linesystem analysis. There are

trim m ing and linearization routines for the aircraft model as weil as for the aerodynamic mode!. Theaircraft and enginemod elsmay beanalyzedthroughnonlinearsimulationswhere the dynamical beh aviour may be visualized as a real-tim e 3-dimens ional animat ion or as an act ivity of any exte rn alor internal signa!. Both the mod el and mod el inputs may be manipulated on-lineduringasimulat ion.

(16)

Aside from the tools available from DA8MAT, the user has the possibility to create

self-defined applications and evaluation functions using the results from any DA8MAT tooI. The

results are directly accessible to the user and MATLAB/SIMULINK offers a great variety of standard functions and an easy-to-use program facility.

TheDA8MAT model structure and architecture allows a good starting point for further

devel-opment. The modular structure of the aircraft model has the ability for easy implementation of more complex sub-systems, i.e. an airframe flexibility model, an equation of mot ion model using quaternions or an even more comprehensive observation model. The generic structure of the various models decouple theDA8MAT tools from any specific aircraft. Although DA8-MAT was developed using the available model data of the Cessna Citation 500, it wil! in

future primarily be used for applications regarding the Cessna Citation II. The model ar-chitecture allows an easy integration of the aircraft model with control systems for different applications. The large set of observation outputs is likely sufficient for a broad class of control design problems. The stand-alone usability of the aerodynamic model is essential for parameter identification problems.

The DA8MAT package operates in the MATLAB/SIMULINK environment from The

Math-Works Inc., [9, 10]. MATLAB is a technical computing environment for high-performance nu-meric computation and visualisation. Itis an interactive system which integrates numerical analysis, matrix computation, signal processing and graphics in an easy-to-use environment. Typical uses include general purpose numeric computation, algorithm prototyping and special purpose problem solving with matrix formulations that arise in disciplines such as automatic control and digital signal processing (time-series analysis).

MATLAB also features a family of application-specific solutions called tooiboxes. These are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB environ

-ment in order to solve particular classes of problems. Relevant areas in which toolboxes are

available from The MathWorks Inc. include signal processing, control systems design, dy-namic systems simulation and system identification. TheDA8MAT package is also designed

as a tooibox. Generated results from DA8MAT are thus suitable for further processing in

manyareas.

SIMULINK is an extension to MATLAB for specific applications to dynamic systems. Itcan be used for both model definition and model analysis. For model definition, SIMULINK models can be created and edited in graphical block diagram windows which give a direct insight in the model structure. Model analysis can either be performed by choosing options from SIMULINK menus or by commands in the MATLAB command window for instanee through M-files. A number of analysis options are available in this way via the analysis tools of DA8-MAT in the above list.

The history ofDA8MATstarted with the need for a standard Flight CAD package for control

and design purposes within the Disciplinary Group for Stability and Control at the Faculty of Aerospace Engineering of Delft University of Technology. This need arose with the purchase of the Cessna Citation II aircraft which is to be configured as a fly-by-wire testbed using new flight control methodologies asH

00/

{l-synthesis. Before implementingthese control techniques in real flight, an extensive development and testing facility on laboratory computers should be provided first.

A major initial contribution towards a Flight CAD environment was done by Rauw [14], using model data of the former laboratory owned DHC-2 'Beaver' aircraft. This led to the basic

(17)

framewerk of the aircraft model structure in the MATLAB/SIMULINK environment. This framework was later on further decoupled from a specific aircraft, so as to make it more generic,and a standard input/output format betweenthevarious sub-rnodelswas established. The set of observation outputs has also been extensively elaborated. Aside from theapplied modeis, the analysis tools in MATLAB were further developed and automated. With the further development ofMATLAB/SIMULINK itself, the package was extended with graphical ussr-interfaces for on-line control and visualisation features. Execution speed was improved by introducing compiled C-codefor standard sub-rnodels. This finally evolved to thepresent

day DASMATpackage.

However, the package may keep on evolving,likemost software,by genera t ing a largerlibrary

of sub-system models and application modeis. A nextstep is integrating DASMATwith a simulation and identification program for flight test dat a analysis in the MATLAB e nviron-ment. As for experimental applications,the integration withnSPAc Eis considered.

ThechoiceforMATLAB/SIMULINKas thecomputationalenvironment for theDASMATpa ck-age is based on the following considerations. Thecombination of high-performance numeric

computation with technical application-specific capabilities through a wide rang e of avail

-ab le tools makes MATLAB/SIMULINKa good environment for analysingcomplex system s as

aircraft modeis. The analysis isenhanced by its visualisation capabilities. ltseasy-to- use

program facilitiesprovide agreat flexibilityand exte nsibility,allowingtheuser to contr ibute

and adapt applications to user-specific needs. For act ua l applicat ions, the integration with

nSPAcEprovidesa rapid implement ation of theMATLAB/SIMULINKsoftware with hardwar e syste ms for real-timesimulation , syste manalysisandcont roller design .

Thismanual discuss esthestructure of themodels andope rat iona laspec ts of the DASMAT

package. Theuser isassumed to befamiliar with MATLAB/SIMULINK.

Themanual uses thefollowing typographicalconventions:

• Monospa ce: Commands, functionnames and screendisplays (quotes meansubstitution of an appropriate keyword) ;for example dasmat.

• Bold : Key names, SIMULINK window nam es, menu nam es and items that may be

selectedfrom menus; forexample, theEnter key.

• Italies: MATLABtooibox names,SIMULINKblocknam es,nam es of secti onsin this m

an-ual,mathematical notation and for introduetionof new terms;for exa mple Chapter 1

Introduetion.

The organization of this manual is as follows. Chaptertwo gives an overview of theDASMAT

package witha discussion of the structureof themode Is and variables present. In chapter three, the operational aspects for the simulation and analysis tools is discussed. Chapter

four focuses on the application of the DASMATpackage for control design purposes. The

appendices include a completelist of files from the DASMATpackage,the formats of state,

input and output signals of the aircraft model, a complete list ofsignificant variabl es with theiraccessibility in theMATLABworkspaceand theoutlines of theSIMULINK modeis.

(18)

Chapter 2

General Overview

2.1

Installation

Before inst alling the DASMAT package, the user sho uld create a directory in which the

DASMAT package is to be copied, e.g. matlab/contrib/dasmat. It is recomm ended to

include this directoryin thematlabpath. TheDASMAT packageis then treated as atooib ox and theuser may run thepackagefroman arbit ra ry directory.

Itisfurther recommend edto crea te a werk-directoryfor eachspec ificaircra ft, e.g. citation for the Cessna Citation, and an allied data-directory, e.g. citation/data. The w

ork-directory sho uld be used as operational directory. It cont ains the files with aircraft s pe-cificsub-models and model data. Moreover, if the user wishes tomodifyexist ing ope ra t ing

shells by redefining input blocks or makinga selection ofobserva t ion vari abl es, these new

SIMULINK mod elsmay then be stored in thewerk -direct ory and will not affect the original

set of DASMAT files. Thedata-d irectory isused for locating the dat a-files wit hthe results

gen erated by the DASMAT too1s. When running the package, the user isasked to spec ify

this data-directory.

2.2

DA8MAT

files

Thefiles of theDASMAT packagemay bedistinguished in the following categori es:

• SIMULINK models (S-functions)

• MATLAB routines (M-functionsjM-scripts) • data-files (MAT-files)

A list of the files is presented in Appendix AFiles usedbyDASMAT.The files containing the

generic SIMULINK modeis,MATLAB routinesand non-aircraftdependent data-filesaremai

n-tained in the DASMAT directory, e.g. matlab/contrib/dasmat. User-defin ed SIMULINK

modeis, i.e. aircraft specific sub-modelsor modifiedoperatingshells,together with theas

so-ciated model data-files are kept in theoperational work-directory. All data-files with us

er-generated data fromexecut ing the DASMATtools aresaved in the data-direct orydesignat ed

by thevariabiedatadir. 4

(19)

All filesfrom the DASMATpackagemay belisted via thecommands help dasmat or what dasmat. The generate dda ta- files may belisted via the comma nd dir (datadir ).

TheSIMULINK mod els com prise models for the aircraft, aero dy na mics, propulsion , eng ine, wind and turbulen cemodels. Ther earemoreoverSIMULINK models whichserv easope ra t ing shells from which asimulation is exec ute d. TheSIMULINK models appearas S-functi ons and may have threetypesof representations, i.e. a graphical block diagram , a text M-file or a com piled MEX-file. The ope ra t ingshells have the block diagram represen t a t ion and may thus bedisplayed on the scree n in a SIMULINK window. The MEX-filesare platform dep en den t

andsho uld there fore be compiled from thesupp liedC-co defiles.

The MATLAB routines comprise the routines for the exec ut ion of the simula t ion and the

analysis tools. There arescript M-files and functi on M-files. The script M-filescontain the

sequence of state me nts for the ana lysis tools. The fun ct ion M-files are subro ut ines which perform speci fic tasks wit hinthe script M-files. Each M-file has a headingwhich incl udesa short descrip tion ofthe function,thcsyntaxofthefunctioncall,a refere nce to the rout ineit

was called from and therequired subro utinesandj'o r SIMU LINK modeis. This heading may

bedisplayed usingthe command help )filename).

Theda ta-files comprise data which is required for running DASMAT,whichis specificto the ana lyzed aircraft and da ta which is generated fro m running an analysis tooI. Alldata-files havethc str uct ureof MAT-files, alt houghtheydo not have allthe defaul t .ma t fileextension. The file exte nsion is used for distinguishingthe data-files. In th is way the variab les in the variousdata-files are auto ma tically man aged by DA SMA T.

2.3

Simulink models

2.3.1 Architecture of Simulink models

Thearchitecture ofthe SIMULINK models as presen ted in Figure2.1 provid esflexibility and

createsa gener ie st ruct ure. It alsoallowsadjust ment of simulat ionandanalysisaccord ingto the wishes of the userwhilepreservingtheintegrity oftheaircraft model itself.

Thevariousdiagrams inFigure 2.1indica teSIMULI NK S-funct ions. The texts in mon osp ace

designate thevariabie nam es or file nam es through which the mod els are accessible by the

DASMATpackage. Ifa diagram is concentricwithin anot her diagram, then the SIMULINK

modelof theinner diagram is imbedd edin theSIMULINK mod el ofthe outer diagram via an

S-fun ctionblock.

Theheartof themod elarchit ectureisform edby generic mod eis. Gener ic mod els exist for the aircraftsystem, engine systemand theaerodynamicssystem , seeFigur e2.1. Agener ic mod el

repr esents a framework which is applica ble to any system and condit ion. It is configure d to aspe cific system and condit ion by subst it uting modules which mod el the object specific

charac te rist ics. In SIMULINK , th issubst it ut ion isperform edby implem en ting the modules as

S-fun ctionblocksand modelin gthe objectspecificcha racterist icsasindep end ent S-functions. TheseS-functionsmay betaken from alibrar y of mod els or they maybe create d by the user.

Detailswillbediscussedbelowin this paragraph.

Thegeneric mod elstructureprovidesboth uniqueness, sta nda rd iza t ion, flexibili ty and as a

resultbetter applica bility. All theseaspects are closelyrela ted .Theuniquenessmanifestsby

(20)

the shared use of general applicable equations and modeis, as for example the equations of mot ion and the atmospheric model. Besides, these shared functionalities constitute a stan-dard, Standardization is further introduced for the transfer of data. A standard input/output format is required to fit the object specific sub-models in the generic model. Using the generic model as interface with the outside, as for example with a controller, a standard format data structure is provided. The flexibility evolves from the standardization. The object specific sub-models may be used in different generic models and are easily exchangeable. For example,

an aerodynamic model may be analyzed separately via the aerodynamic generic model or it may be included in the aircraft generic model, either as a set of polynomials or as a collection of lookup tables.

The aircraft generic model determines a kinematic system model using a set of 12 nonlinear equations of motion for a rigid aircraft over a flat non-rotating earth. Furthermore it includes the equations for defining the observation outputs. This SIMULINK model needs to be con-figured for aspecific aircraft by defining the aerodynamic model and the propulsion model. The model is further extended by adding a wind and turbulence model.

The generic models for the engines and the aerodynamics only extend the user-specified models with the atmospheric model and thus facilitate the use of a common atmosphere.

Furthermore, they provide a standardized input format which is compatible with the data structure used at the aircraft generie model.

The outer diagrams in Figure 2.1 represent operating shells. There are operating shells for the aircraft and the engine model. These SIMULINK models provide the control inputs to the aircraft or engine system and give a flexible access to the observation outputs from the aircraft or engine system. The user performs the simulations from these operating shells and has the option to adjust them (after copying the default files to the work-directory) . For example the user can redefine the generation of control inputs and select the format and/or visualization of observation outputs.

There are tree types of operating shells depending on the type of simulation,see Section 2.3.11

Operating shells for aircraft simulation: the control inputs are either defined by Inport blocks (for open-loop simulation from the command window), by other than Inport blocks (for op

en-loop simulation in a SIMULINK window),or they are generated via a controller (for closed-Ioop simulation in a SIMULINK window).

The innermost diagrams in Figure 2.1 represent the aircraft specific sub-models, i.e. the aerodynamic and propulsion model, and the wind and turbulence model. These SIMULINK models should be supplied by the user or selected from the DASMAT package. They have a

standard format for data transfer to make them applicable in different generic modeis. The aerodynamic model calculates the aerodynamic force and moment coefficients and the force and moment coefficients due to gust. The coefficients may either be defined in the air-path, the stability or the body axes. The moment coefficients are with respect to a reference location defined in the datum reference frame. A template SIMULINK model for the aerodynamic model is included in the DASMAT directory.

The propulsion model calculates the forces and moments generated by all engines and passes a number of general engine parameters. The forces and moments are defined in the body axes and are derived from the thrust, position and orientation of individual engines. Each engine is again a SIMULINK model. Ifno engine model is to be included then the thrust is directly obtained from the thrust control inputs in the operating shell. The DASMAT

(21)

directoryincludesa SIMULINK modelfor a two-enginepropulsion model.

Thewind modelspecifiesthe wind velocity along theearth axes. The wind may be defined as afunctionof the aircraft positionso that the aircraftmay fty through a varying wind field

or may ex pe r ience wind shear. TheSIMULINK model for a zero wind condit ion isavaila ble in

theDA8MATdirectory.

Theturbulenc emodel calcula tes thegust velo eiti es and theirtimederivativesalong thebody axes . These quantities becom ezeroif no turbulence isconside red. Otherwis ethey may be calcula te d from whitenoiseusingDryden spec tra. TheSIMULINKmod els areavaila ble in the

DA8MATdirector y.

Thevarious SIMULINK models are designated by variables in the MATLAB workspace. This givesa gen eric code in theM-files where themodelsareindirectly referred via the conte nts

ofstandard namedvariables. Theusermayevalua tethe mod el configur at ion from eit her the

mod elina SIMULINKwindow or from thevar iabl esin the workspace.

Thevariableswhichnametheaircraft specific sub-rno de lsare assigned duringtheiniti aliza-tion phase of DA8MAT.This is donevia a user-supplied M-scrip t . The condit ion spe cific

sub-rnode lsare named at thestart of an analysis or simulation tooI. For some tools, only defaultsub-rnodels are included. Other toolsallow the select ionofuser-supplied sub-rnodels.

The trans fer of da t a between the var ious mod els is done through standardized formats of SIMULINK Inportand Outport blocks. This allows theapplicationof a sub-modelin variou s other modeis ,i.e, the engine modelmay beused in boththeaircraft generi cmodel and the enginegener ic model.Itmay thusbesimulat ed aspart of theaircraft asweilas indep end ently.

Theformats of the Inport /Outportblocks of the aerody namic, propulsion , engine,wind and

tur b ulence mod els are present ed in Tabl e 2.1. They are further ela bo ratedinthe nex t section

at the discu ssion of thevari ou sSIMULINK modeis.

2.3.2 Structure ofSimulink models

Thissect ion describes the above mentioned SIMULINK mod els in more detail. The form ats of the mod el st a te, input and output veet ors are discussed , as weil as the formats of the input /outputveet orsfor data-transferbetweenthe objec tspec ificsub-mode ls and the gener ie

mod eis.

The com plete outlines of the SIMULINK models through the graphical block diagram rep r e-senta t ion aregiven in Appendix D Definition of rejeren ceframes and outlines of SIMULINK

modeIs.

\. TheSIMULINK mod elswil! bedescrib edin thefollowing orde r:

• genericmodels

- genericaircraft mod elsac.modimand ac.modpc im - gene ricengine mod eleng.mod , m

- genericaerod yna mic mod elaaro.modm • object specificsub-rnodels

- aero d yna mic mod elac iae romode L

(22)

propulsion modelac.povermodeL

engine model eng.dynmodel , eng.seatmodel.,eng...none.m - wind model smd.none .m

- turbulence modeltur...none.m, tur.dryd ,m • operation shells

- default operating shells for

a/c

open-loop simulation in SIMULINK windowac.aäm.m,

ac.ss i.mpc .m

- default operating shells fore[c open-loop simulation incommand window ac...fun .m, ac...funpc.m

- default operating shell for

a/c

closed-loop simulation in SIMULINK window cLsim.m,

cLsimpc.m

- default operating shell for engine simulation in SIMULINK window eng.sim.m

- default operating shell for engine simulation in command window eng...fun.m

2.3.3 Generic aircraft model

The generic aircraft model is provided in theSIMULINKS-functionsac.mod , mand ac.modpc . m.

The models use the 6-DOF nonlinear equat ions of motion for a rigid body aircraft with constant mass over a fiat non-rotaring earth. The force equat ions are defined in the air

-path reference frame to allow explicit solution of thestate equat ions in thepresenceof angle

of attack rate and angle of sideslip rate dependency for theaerodynamic coefficients. The

moment equations are defined in thebody reference frameto obtain constant inertia terrns,

Within the equations of motions, the aircraft and condition specific terms areprovided by

the user-defined aerodynamic,propulsion, engine, mass, wind and turbulence modeis.

The model ac.modpc.m is a stripped version of ac.mod.m. It uses the same equat ions of motion but it generates only the most significant observation variables. As the complete set

of observation variables is rather extensive,ac.mod . m requires much computation power and consumes large amounts of memory, making it only applicabie to workstations. The mod el

ac.modpcvmis more suitable for PC-platforms.

Each generic aircraft model has two realizations, one including the engine models for providing

the thrust,the ot her having the thrust as a direct control input. This dual design results in different formats of the states and control inputs.

The SIMULINK S-functionsof ac.modimand ac.modpc .m with their highest sub-system levels

are shown in Figure 2.2 and Figure 2.3 respectively.

The generic aircraft model requires the inclusion of aircraft and condition specific sub-models.

They configure the general applicable equations of motion to the analyzed aircraft andcond i-tion. The sub-models are either SIMULINK S-functions and included in the genericmodelvia

S-functionblocks, or MATLAB M-functions which run independently and generatedata which is then included via variabie names in mainly Constant blocks. The sub-rnodels are desig-nated by variables. The variables which name the aircraft specific sub-rnodels are assigned during the initialization phase of DASMAT by execut ing the aircraft specification routine

designated by ac.d.nf o, see Section 2.4.1Aircraft specification routine. This M-script actually

(23)

configures the generic aircraft mod el to aspeci ficaircraft. The vari abl es for the condit ion specificsub-mode lsare assigned at thestart ofanana lysis tooIfrom user-supplied ent ries. The aerodynamic,pro p ulsion,windandtur bulence mod els are S-functi ons. The aero dy namic and propulsionmod els arecalled by thefilenam esdesign a ted bythe varia bles ac.aeromode l andac.povermodeL,Thewind and turbulen cemodelare called via the variabl esac.vandmode.I and acturbmodel which refer to filesin the DA8MATdirectory or user-supplied models in the work-directory. The transferof da ta between the sub -mode ls and the generic model is done through the for ma ts prese nte d in Table 2.1.

The engine model is also an S-funct ion . lt is however included in the S-functi on of the propulsion mod eldesign at ed byac.povermodeL WhichS-functi on is called dep end showever on the selecte d realization for mod elin gthethrust during the execut ionofan ana lysis tooI. Irthe thrustshould be provid ed via the engine model, thenan S-funct ion whose filenam e is designated by the variabie eng.dynmodel is called . Irthe thrust is mode lled as adirect control input , then theS-funct ion eng..none . mis called from the DA8MATdirectory. The massmod elis an M-function which calculates the mass properties. ltsfilenam eisd es-ign at ed by the varia bie ac.mas smodeL.

The data entered in thegenericaircraftmode lareprovided by externalsignalsvia a seriesof Inport blocks and by constant values, appearingas varia bles in the MATLABwork space, via mainly Constant blocks. The externalsignalsare thecontrol inpu t swhichdrivethe aircraft system . They are supplied via theSIMULINK operatingshells during simula t ion and via the MATLABfuncti onsduringthe exec ut ionofthe ana lysis tools.

The variab les in the workspace adapt the generic aircraft mod el to aspec ific aircra ft and condition and they supp ly reference loca t ions for a numbe r ofobservation variables. The aircraftspecific variablesmainlyappear in the aircraft spec ificsub-modelsand arereadfrom the aircraft specific data-files. The variablesnotreferrin g to aspecificaircraft appear in the generic aircraft mod el itself andare supp liedby the general DA8M ATdata-files as default valu es.

The results fro m the generic aircraft modelare bothsuppliedas externalsignals via a series ofOutport blocks and as variab lesin the MATLAB workspacevia Ta Workspaceblocks. The externalsigna ls provide theconnect ionsofthegenericaircraft mod elwith SIMULI NK ope rat ing shells for simula t ion purposes with on-line and off-lineevalua t ion and to MATLABfunctions for analys is purposes.Theform a t of thesesignalsis standa rd ized to guarantee a correc t data transfer.

The outputof variablesto theworkspace is applied forresu lts which mayhave an arbit rary format. They aregenerated in theaircraftspecificsub -mo de ls. Alt houghthey may cons ist of inte rest ingparame te rs andshouldtherefore bemade accessible, they ca nnot be transfere d to the gener ic mod elby way of nested SIMULINK S-functionsbecaus e their format is not fixed . Theforma t ofthese varia bles isonly standardizedfor those first elements whichare required in the higher-level mode l.

The st a te vectorx isdetermined thro ughthe6-0ü F equat ions ofmoti on and thechoice for including of the engine mod el. The 6-0 ü F equations result in 12state vari abl es,indicated as aircraft states Xa • Ifthe engine model is included ,then Xa is exte nde d with the eng ine statesXt times the numberofengines. The represe ntationof thestatevectorin the MATLAB

workspace therefore becomes:

(24)

where:

Xa (engine model not included )

[x a Xt, xt21 (engine model included) (2.1)

x X a

(2.2)

xt = Xt

A detailed specification of the aircraft states with their units and description is given in T a-bIe B.l. The format of the engine states depends on the included engine mod el, see also Section 2.3.8 Aircraft specific engine model.Ifthis is a statieversion,Xt has noeleme ntsand xt is an empty variabIe.

The control inputs u are subdivided into aerodynamic and thrust cont rols. The aero dyna mic controlsUa consist of theprimary and secondary flight controls.

Thethrust controlsUt, are

eit her the throttle (power lever angle P LA;)settings when the engine model is included or thethrustTN, itself foreachengine. Therepresentation of the contro l inputsin the MATLAB workspacethereforebecom es:

(2.3) where:

U Ua e lla Ó

T Ót. Ót.

s:

Óf igswl

u,(ij } { PLA; (enginemodelincluded ) (2.4) tLti

Tn(i) TN, (enginemodel not included )

By default, the throttlesettings P LA;are assigned in to the control variabieut. The thrust s TN, are stored in a separate thrust variabie Tn. A detailed

specificationof the cont ro l input s is given in Table B.2.

The observation outputsymay contain up to 240 variables,including theaircraftst ates, their time derivatives and a variety of ot her parameters of interest as for exa mple accelerations and force and moment components from the aerodynamic and propulsion sub-models. The observation outputs generatedvia Outport blocks as exte rn al signals are distinguished in 18 groups to provideeasier accessibilitywithin theSIMULINK modeis:

(25)

yl x xa yl0 ydl Ydl

y2 xd ot

x

a yll yabh Ya{3h

y3 yai r Yair y12 yCa e r o YCaero

y4 yacc Yacc y13 yFMa e r o YFMaero

y5 yf p YJp y14 yCgust YCg (2.5)

y6 ys Ys y15 yFMgust YFMg

y7 ypqr Ypqr y16 yCt YC t

y8 yuvv Yuvw y17 yFMt YFMt

y9 yuvvdot Y"vw y18 yFgrav YFgr

All above observation outputs are generated by the general aircraft model ac..mod.m. The representation of the complete vector of externaloutputs in the MATLAB workspace therefore becomes:

y Y [Xa Xa Yair Yacc YJp Ys Ypqr Yuvw Y"vw Ydl Ya{3h YCaero YFMaero YC g YFM g YCt YFM t YFgr]

(2.6)

The compact aircraft model ac..modpc. mgenerates only a reduced number of these observation outputs. lts vector of externaloutputs is given by:

y

=

Yred

=

[x

a

x

a Yair Yacc YJp Ys YFMaero YFMg YFM t] (2.7) The above lists represent the internal formulation of observation outputs and provide the user with a broad application area for analysis and control design problems. For actual ap-plications, the user must select the specific parameters desired in the operating shell, see Section 2.3.11 Operating shells [or aircraft simuiation. A further specification to the ind ivid-ual observations with their units and description is given in TableB.3and TableBA.

The observation outputs written to the MATLAB workspace as variables via To Workspace

blocks consist for both ac..mod .mandac ..modpc. mof data generated in the SIMULINK models of the aircraft specific sub-models.This data is not ported to the generic aircraft model because its format may be variabie. In fact, this only applies to Ypow which is the concatenation of the general engine parameters of all engines and which is generated by the aircraft specific propulsion model. The format of Ypow depends on the nu mb er of engines and the output format of the individual engine models which is only fixed for the first two elements, being thrust and fuel flow. Hence, its representation in the MATLAB workspace is given by:

(2.8) The format ofYpow is discussed in more detail in Section 2.3.8Aircraft specific engine model.

A number of variables from the MATLAB workspace are entered into the generic aircraft model. These variables can be subdivided into data specifying aircraft specific quantities

(26)

and locations for a number of observationparameters. The aircraft specific data consists of

geometrie parameters as wing area S,wing span b,mean aerodynamie chord ë,thereference

location for the aerodynamiccoefficients (x,y,z)e gref in the datum reference frame and the

variables axesYMaero and axesYMgust which indieatethe applied reference fram

efor the

aerodynamicand gust coefficients:

S span chord S b ë xcgref ycgref zcgref Xe9ref Yegref Zegrej axesYMaero axesYMgust (2.9)

The variables axesYM* are assigned to [0/ 1/ 2] for eoeffieients defined in the [air-path/ stability/body] reference fram e. Mor eover , the mass prop erties are included via the vari-ablemassinit whichhas theformat:

massini t

=

[m xeg Yeg Zeg lxx Iy y Izz Ixz] (2.10)

Themassm is in kg,thelocation ofthecente rofgravity (x,Y, z)eg is in thedatum reference

frameand themoments and products of inertialxx,Iyy , Izzand Ixzarewith respect tothe

body referen ceframe and thecenter ofgra vity.

Thelocations required for the observat ions paramet ers consistof locations of measurement sensors and navigation ground st ations.Themeasurem ent locations are defined in thedatum referen eeframe and refertothe accelero mete rs (x,Y, Z)iaeeand thesens orsfor angle ofat tac k,

angle ofsides lipand altitude (x,Y,Zk,~h:

xiacc Xiace xiabh Xiot3h

yiacc Yi aee yiabh

YiQ ~h (2.11)

ziacc Ziacc ziabh Zi

ol3h

Thelocation of thenavigation ground stations are defined in the ear t h fixed refer en ceframe

and referto the loeationsoftheDME beacon(x,Y,Z) D M E,from whieh therangeis ca1culated ,

and the glide-slopeand loealizerantenna (x ,Y,

z)es

and (x,Y,1/J)LOC:

xDME yDME hDME XDME YDME hD M E xGS yGS hGS

xe

s

y

es

h

es

xLOC yLOC psiLOC xLOC YLOC 1/JLOC (2.12)

Moreover, a number of variables are indireetly entered from the workspaceinto the generie aireraft model via the objectspecificsub-models. These variablesare discussed in the sections devoted to thesesub-models.

Thegeometrieparamet ersandthe referen celocationand reference frameof the aerodynamic

and gustcoefficients are load edfrom thedata-filedesignatedby ac.data. Themass properties

are ca1culated from the mass model designat ed by ac.massmode I. The locations for the observat ion param et ers maybe spe cified bytheuser , ot herwise theyarezero by default from thedata-fileae-genrl.mat in theDASMATdirectory.

(27)

2.3.4 Generic engine model

The generic eng ine model is provided in the SIMULINK S-fu nction eng.mod.m, The mode l

exte n ds the airc raftspecificengine mod elwith the atmos p herie mod el. It thus provid es eq ual

cond itions as in the gene r ic aircr aft model.

TheSIMULINK S-functionengmod , mand its highest sub-sy stem level isshown in Figure 2.4.

The engine mod el is an S-function which is incl ude dvia an S-function bloek . Itis possib le

to inclu de a statie mod elwhoseS-fun cti on isdesigna ted by the variab ie engcat atimode Land

a dynamic mode l design a ted by thevariab Ie eng.dynmodeL These variab lesare specifiedvia

the airc raft specificat ion rou tine design a ted by ac.Lnfo (Figure 2.16) and whichis exec uted

duri ngthe initializa ti on ofDASMAT.The selectionof thestatieor dynamic eng ine modelis done duri ng the exec u t ionofan analys is tooI.

Thedata ente re d intothe gener iceng ine mod el is provid ed viaexte rnal sign alsvia a series of

!nport blocks and a constant for the eng ine drag via a Constant bloek. Theexte rnal sign als

farmtheinputs whichdrivethe engine system.Theyare supp lied by theSIMULINK ope rating

she ll during simu la t ion and by theMATLABfuncti on for the tri m m ing tooI.

The constant eng ine drag ent ry isintroduced for com pat ib ility ofthe generic eng ine model

withthein p ut softheeng ine mod elitself. It is used for engine failurema deling. Theassigned

value isdirectly por ted to the engi ne model.

The resu lts from the gene riceng ine mode lare again both supplied as externalsignals via a series of Outportblocks andas vari a blesin theMATLAB work space via To Workspaceblocks.

The externalsignalsprov ide the connect ions ofthe gener iceng ine model wit hSIMULINKop

-eratingshe lls for simula t ion purposeswithon-line evaluat ionand with the MATLAB routine for tr im m ing.

The eng ine state vector Xt is com p lete ly determined by the eng ine mod elwhich is called by

the gene ric eng ine mod el. Ifthe st atieeng ine mod el is included ,i.e. the S-funct ion named in thevariab ie eng.atatmode L, the nthereare no enginestates. Ifthedyn amic eng ine mo del

is incl uded then Xt is eq ua l to the state vect or ofthe S-funct ion designa ted by the variab ie eng.dynmodeL. The eng inestates usu ally comp rise the rpm's ofthe fan and gas turbine.

The inputs of the gene rie engine model consist of the eng ine control input Ut

=

P LA, i.e,

the throt tle (p ower lever angle) setting, and the airc ra ft states Xa . The inpu ts Xa definethe ope rat ing condition of the eng ine, basie all ythe airspee d and alt it ude . The eng ine input s are

thus specified as: wher e: x ut Ut

[x

ut]= [xa utl PLA (2.13) (2.14) 13

(28)

The outputs of the generic engine model are equal to the outputs of the included engine model. All outputs are written to the MATLAB workspace via a To Workspace block. The first 8 outputs are furthermore ported to Outport blocks for transfer to the SIMULINK operating shell. The format of the engine outputs is only specified for the first two elements which are thrust and fuel flow. The succeeding elements depend on the modelled outputs of the included engine and may consist ofrpm'sand ot her interesting engine parameters. This leadsto:

ypow

=

Ypow

=

[TN FF ... ] (2.15)

The above engine outputs are also used in the concatenation of the engine parameters of all engines in the aircraft specific propulsion model. As such, they are part of the observation outputs of the aircraft model, see (2.8).

The data read from the MATLAB workspace by the generic engine model only consists of the engine drag Den g :

Deng = Den g (2.16)

In general, a zero value corresponds to normal engine operation. A non-zero value is used to model engine failure. lts effect depends on the treatment within the engine model itself, see Section 2.3.8 A ircraft specific engine model. lt may be treated as a reduction on the normally supplied engine thrust or as a switch to select engine failure operation mode.

Additional variables in the workspace may be required by the included engine model. These variables consist of engine parameters and constants which are specific to the engine model. The value of engine drag is retrieved from a trim-file .tri which is loaded prior to the use of the generic engine model. The engine specific variables are loaded from the data-file designated by the variabieeng.data.

2.3.5 Generic aerodynamic model

The generic aerodynamic model is provided in the SIMULINK S-function aaro.modaa, The model again extends the aircraft specific aerodynamic model with the atmospheric model to obtain conditions equal to the generic aircraft model. lt also corrects the baseline components of the aerodynamic coefficients with contributions from the angle of attack and angle of sideslip rates, in which format the aerodynamic coefficients are supplied by the aircraft specific aerodynamic model. lt further contains an axis transformation model to provide flexibility, i.e. the supplied aerodynamic coefficients from the included aerodynamic model may be defined in an arbitrary reference frame and transformed to any desired reference frame.

lt should be noted that the aerodynamic model also models the coefficients due to atmospheric turbulence. These coefficients are also with respect to a freely defined reference frame. The SIMULINK S-functionaer'o.modvmand its highest sub-system level is given in Figure 2.5.

The aerodynamic model is included via an S-function block by calling the S-function named in the variabie ac_aeromodel. This variabie is defined during the initialization phase ofDAS -MAT by executing the aircraft specification routine designated byac.änfo,see Figure 2.16.

(29)

The data ent ered in thegeneric aerodyn ami cmodel are provided by exte rn al signa ls via a series of Inport blocks and by variablesin theMATLABworkspacewith const ant valu es via Constan t blocks. The extern al signals aretheinputs which drivethe aerodynamicsyste m. They aresupplied by theMATLABfunction of theanalysis tooi and have afixed format. The results from the generic aerodynamic model are only suppliedas exte rn al sign alsvia a series of Outport blocks.

Theaerodynamic mod el has nostates. It usually consist of series of polyn omi als or table look-ups. The genericaerody namic mod el therefore has no stateseit her.

Theinput s of the genericaero dy na mic mod el consist of those varia bles which primarily i n-fluenee the aerody na mic for ces and moments plusthe turbulence veloeiti es andgust velocity rat es. The relevant terms for the aero dy na mics in still air are the aircr aft states X a , the aero dy namiecont ro lsUa,theangle of attack rat e eiand the angle of sides lip rate

/3.

The gus t velocityand velocity rates areincludedin thevari abi eugand have component sspe cified

along thenegative body axes. Therepr esentation ofthe generic aerodynamic mod el inputs isthus: wher e: [x abdot u gust]= [x a ei

/3

Ua ug ] (2.17) gust Ug x u abdot xa Ua (Pb qb rb VTAS 0 {3 r/J () 1{; he Xe Ye] [óe Óa Ór Ót, Óta Ótr ÓJ

eg

sw] [ei

/3]

(2.18)

[

û

g Og {3g frgc/V eigc/V /3gb/V Ûgasym Ogasym]

The out puts of thegeneri caerodynamicmodel consistsof the aerodyna mic for ceand moment coefficient s plus theforceand moment coeffieients dueto tur b ulenee. They are with resp ect to the referenee location (x,y,z)cgre!" Both type of coefficient s are available in bath the air-path, stability and body referenceframe. Thisgives thefollowingrepresent ation of the generie aero dynam ic mod eloutputs:

where:

[yCaero yCgust]= [YCaero YCaero] (2.19)

(30)

yCaero YCaero [CD Cy CL Ce Cm Cn]a [CD Cy CL Ce Cm Cn]s [CT Cy CN Ce Cm Cn]b (2.20) yCgust YCgust [CDg CYg CLg Clg

c.;

CngJa [CDg CYg CLg

c.,

o

-;

Cng]. [CTg CYg CNg

c.,

o-

.

Cn9Jb

The aero dynamic outputs are again part of the observation outputs of the aircraft model through y12

=

YCaero and y14

=

YCg·

Thevariablesin theMATLAB workspace spec ifygeomet rie paramet ers as wing areaS,wing span band meanaerodynamicchordê,thereferenc elocationfor theaerodynamic coefficients

(x,Y,z)Cgre/ and thevariablesaxes...FMaeroand axes...FMgust which indicatethe app lied

ref-erenee framefor the aerodyna m icand gustcoefficient s. Thereferencelocation is defin ed in

the datum referenceframeand entered via thesignal for themass properties. Hen ce, the variables read from the workspace are:

s

span chord S b ë xcgref ycgref zcgref axe s ...FMae r o axes...FMgust (2.21)

The variabl es axes...FM* are assign ed to [0/1/ 2] for coefficients defined in the [air-path/

stability/body] referen ceframe. All abovevariablesare loaded from thedata-filedesignated

by ac.data,

2.3.6 Aircraft specific aerodynamic mo del

The aircraft specific aerodynamic model is an independent SIMULINK S-function which cal-culates the aerodynamic force and moment coefficients and theforceand moment coefficients due to turbulence, the latter sometimesbeingcalled gust coefficients. The model is included in the generic aircraft model and thegeneric aerodynamicmodel via an S-functionblock and it is designated by thevariabieac.ae'romc deL.

A templateSIMULINK model for the aerodynamic modelis providedin the S-functionaccaarovm

in the DASMAT directory. It is shown in Figure 2.6.

The aerodynamic coefficients are calculated from the aircraft states, the primary and sec

-ondary flight controls,theaircraft center of gravity and airdataparamet ers . The coefficients Care expressed as baseline components Cbaseand linear contributions from the angle of attack rateCó and angleof sideslip rate andCiJ :

(31)

(2.22) OC /3b

G= Gbase

+

Go

...-r-

+

GIJ

vT AS VTAS

Theforces and momentsdueto turbulence arealso mod elledwithinthe aircraft specific ae ro-dyn amic model. The effects of turbulence,which is in fact a disturbanceon the air speed,

may be mod elled as ext ra aerodynami c forces and moment s, or they may be mod elled as correctio ns to the velocitytermsin theequa t ionsof motion. Inthe first case, the coefficients

due to turbulence maybe expresse d in term s oftheaero dy namic derivativ es and thus made depende nt of the gustveloeities andgust velocity rates. Tbegust penetrationeffect is then

alsoeasily mod elled.In thesecond case, tbe coefficients dueto tur bulenceare dedu ced from theext ra forces and momentswhicbarisefrom usingtherelative air velocityinstead of inertial velocity in theequa t ionsof moti on. Now,thegust penetr ation isnotmod elled and theeffect

of turbulence is in fact independe nt of theaerodynam icmode l. Nevertheless, by including

tbeturbulence effects withintheaerodynamicmodel,the user bas tbe ftexibili ty of selecting either modelingoption.

The aerody na mic model has no states. It usually cons ist ofseries of polyn omi als or table look-u ps.

The inpu ts of the aircraftspecificaerodynamic modelarethe aircraft statesxa,the aerody-namiccontrol inpu tsUa, the loca t ion of the aircra ftcenter ofgrav ity (x, Y, z)eg,the airdata

para meters collecte d inYad, and Yad2andthe gust velocity terms ug. The cente r ofgravity is defined in tbe datumreferenceframe and the gust velocity terms are taken positive along

the negativebody axes. Theaerodynamicmode linputs thusbecome:

where:

[x u cg yadl yad2 gust]= [Xa Ua (x, Y,Z)eg Yad, Yad2 ugJ (2.23)

X Xa (Pb qb Tb VT AS 0" (3 4> () 1/J he Xe Ye]

U Ua [de da dr dt.

s,

dtr

s

,

I!gsw]

cg (x,Y, z)eg [xeg Yeg Zeg]

yadl Yad, [M q]

yad2 Yad2

[R

e'

qe qr el Pt T, VEAS VCAS VlAS]

gust = Ug

[

û

g O"g

o,

fLgc/V OgC/V /3g Ûgasym O"gasym

1

(2.24)

Itis advised toputa sat uration block after multiplexin gthe aerodyna miccont ro linputs,see

Figur e 2.6. This garantees that theinported cont rol inputs cannot att ain unreali sticvalu es,

for exa mp le deftect ions beyond any hardstopson the cont rols,and thuslead to an unreliabl e

(32)

calculation of the aerodynamic coefficients.The limits may be assigned in thevariablesumin and umax.

Theoutputs of the airc raft specific aerodynamic modelare the aerodynamic force and m

o-ment coefficients,subdivided in the baseline componentCbaseand theà-and ,B-contributions according to (2.22),and the forceand moment coefficients due to turbulence. All coefficient s

are defined along thepositiveaxes and may besupplied in eit her the air-path, st ability or body reference frame. Theaerodynamicmodel outp uts are therefore:

[Ca Cadot Cbdot Cag]= [Cbase Ci> C~ Cg] (2.25)

where: Ca Cbase [Cx Cy Cz Cl Cm Cn] Cadot Ci> [Cxó CYó C C Cmó Cnó] [CXp

-.

(2.26) Cbdot C~ CVp CZp

c.

,

C mp Cag = Cg [CXg CYg CZg Clg

c.;

Cng ]

Irno

a

-

or ,B-cont ribut ions aremodelled,then thecorrespondingOutport blocks arefed by

zero const ants.

The aircra ft specificaero dy namic model generally reads numerousvariabl esfrom theMATLAB

workspace. Although thesevariableswill beveryspecifictothemodel,they will incorporate look-uptablesfor thevarious aerodynamiccoefficients,constants and geometriepar am et ers.

All thesevari abl es are load edfrom thedat a-filedesign ated by thevari abIeac.data.

2.3.7 Aircraft specific propulsion model

Theaircraftspecific propulsion model is an independent SIMULINK S-function which calculat es

the total force and moment generated by the propulsion system. That is, the forc e and moment contributions of all engines and possibleengine-airframe interference and gyroscopic

effects. The force and moment contributions arethe baselineterms and ar

ecalculatedfrom the generate d thrust of each engine, its position and the direct

ion of its thrust line. The

interferenceand gyroscopic effect s may be modelled asext ra contributions to theforces and moments. Themodel is includedin the genericaircraft model via an 8-function block and it

is designated by thevariabieac.povermodeI.

An example SIMULINK modelfora propulsion model of a two-engin eaircraftisprovid ed in the S-functionac.poe .min theDA8MATdirectory. This modelis shown in Figure2.7. Thethrust of eachengine is obtained from an independent SIMULINK S-function. Two kinds

of S-functions maybe included ,dependingon whetherthethrust controlisselect ed asthrottle

(power lever angle) settingor as thrust itself. In the first case the S-function which models theengineis included .This modelis designatedby thevariabieeng.dynmodeL. Inthe second

(33)

case, no real engine model is included,but instead thefeed-through model provided bythe S-function eng...none.rn from theDA8MAT package. This model just directs its input,i.e.the thrust,to the output in the prescribed output format, see also Section 2.3.8 Aircrajt specifi c engine model.

The results from the propulsionmodel consist of forces and moments and a vector with the concatenat ed outputs of all included engine models. Theforces and moments areported to

thegener ic aircraft model via Outport blocks. Thevector with concatenated engine model

outputs is written to theMATLABworkspacevia a Ta Workspaceblock. Thereason is that the forces and moments arerequired in the generic aircraft model and have a fixed format

which does not depend on thenumber ofengines. On the ot her hand , the vector size of the concatenat ed engine model outputs is det ermined by thenumber ofengines andcan ther

e-fore not berelated to an invariable data structure in thegenericaircraft model. The engine modeloutputs,asidefrom thethrust, aremoreover not relevantin the aircraft model. H ow-ever,they maystill be interestingfor theuser and thereforemadeaccessibl ein theworkspace.

The inputs of the aircraft specific propulsion model are the aircraft sta tes X a, the engine

cont rol inputsUti' the at mospher ic paramet ers Yatm and airdata parameters Yad} and Yad2.

Thepropulsion model inputs thus become:

[x ut yatrn yad1 yad2]= [xa Utl Ut2 Yatm Yadl Yad,] (2.27)

19

(2.29)

FMt = YFM,

whe re:

x xa [Pb qb Tb VTAS a

f3

4> 8 1/J he Xe Yel

utCi) Ut1 { PLAi (enginemod elincluded)

TNi (engine model not included)

yatrn Yatm [Pa p T 9 hp h R H Vsoundl (2.28)

yad1 Yadl [M q]

yad2 Yad2

[R

e

'

qc qTel Pt Tt VEAS VCA S VlAS]

Theoutputs of theaircraft specific propulsion model via Outportblocks are the tot al force

and moment of the engines. Thesefarces and moments aredefined along thepositiveaxesof the body referenceframe. The moments arewith resp ect to theoriginof thedatumreferen ce

frame. Thepropulsion model outputs are:

The engine parameters of all engines are also written to the MATLAB workspace via Ta Workspaceblocks. Theyconsist of the outputs of the engine modelsand are conca te na te d in thevector YPQW' The format ofYPQWis:

(34)

(2.30)

This output is equal to (2.8) generated in the generic aircraft model. The format ofYpow is

discussed in more detail in Section 2.3.8Aircraft specific engine model.

Thevariableswhichareent ered into theaircraft propulsion model from theMATLAB worksp ace

consist of the location of the engines, the direction of the thrust lines and thedragof the

engines. The variables arerow veetors with lengths corre sponding to thenumberofengines . Theengine locations (x,y,z)e ng arespecified in thedatum reference frame. Thedirecti ons

of the thrust lines are specified by the tow angle ta and the tilt angle ti . The tow angle is defined as the angle between the projection of the positive thrust vector on the datum XY-plane and the negative datum X-axis. The tilt angle is defined as the angle between

theprojection of the positivethrust vector on the datum XZ-plane and thenega tiv edatum X-axis. The enginedrag repr esentsa variabiewhich is used forengine failure modeling. lts effect depends on the treatment within the engine model itself,seeSection2.3.8. In general ,

a zero value corresponds to normal engine operation. This nowgives thefollowing entr ies from theworkspace: xeng(i) yeng(i) Yeng, toweng(i) tilteng(i) Deng(i) Den g, (2.31)

zeng(i) Zeng,

Thesevari abl es areload ed from thedata-filedesignatedbyac-data, except for Den gwhich is ret rieved froma trim-file . tri.

2.3.8 Aircraft specific engine model

Theaircraft specific engine mod el is an independ ent SIMULINK S-functi on which calculates the thrust and a number of interestingengine paramet ers as for exa mple rpm's, fuelflow, various temperatures,etc. The model is inc1uded in thegeneric aircraft modelvia the a

ir-craft specificpropulsion modeland directlyin the genericengine model,in bothcases via an S-functionblock.

The engine model may be either a dynamic or a statie model. With the option of using thrust as control input for theaircraft model, DASMAT also supplies a feed-through modelwhich

just ports the injected thrust in the standardized output format.

The S-function of the engine dynamic model is designated by the variabie eng.dynmodeL.

This model has state variables which aredetermined by the way the engineis modelled. This

may be a simple first-order lag modelwhereXt is the actual power level. The modelmay al so

be nonlinear using thermodynamicrelationshipsfor describingthephysical processesinsid e

theengine. For turbofanengines, Xt may then consist of therpm'sof thegas gen erat or and

the fan. The dynamicengine modelis used viatheaircraft specificpropulsion modelin the genericaircraft model forexecut ing simulations with thethrottle(power leverangle) setting

asthrust controls.

Cytaty

Powiązane dokumenty

Śledząc tę zm ianę, Iren eu sz O packi ukazuje, że rom antycy p rag n ę li ocale­ nia jednostkow ości, chw ilowych doznań, zauw ażali w ru in ie d estrukcję, nie

This model can be used to determine the characteristics of the terminal, like the number of loading stations and their capacity, the storage volume, the capacity of

In support of the Dutch implementation process of the Water Framework Directive (WFD), this report describes the results of a model study on the response of several

Met zo'n model kunnen een aantal karakteristieken van de terminal bepaald worden, zoals het aantal laadstations en hun capaciteit, het opslagvolume, de capaciteit van het

Punktem wyjścia rozważań jest fakt, że migracja stanowi stały element dziejów ludzkości i jako taka – w kontekście statusu prawnego migranta – ma także ważne miejsce

Nazwa nierozłącznie w iąże się z rzeczą oznaczaną, nie za­ stępuje, ale dopełnia — nie nieobecność desy gn atu rodzi potrzebę nazyw ania, lecz pragnienie

1 pkt 3 PrAut uprawniony, którego autorskie prawa majątkowe zostały naruszone, może żądać od osoby, która tego dokonała, naprawienia wyrządzonej szkody na zasadach

We also asked whether several concepts from Domain-Driven Design, Reactive Manifesto and the actor concurrency model may be helpful for building the application based on event