📄 airlib.mdl
字号:
Library {
Name "airlib"
Version 3.00
BlockDataTips off
BlockParametersDataTip off
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar off
StatusBar off
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Jan 30 14:14:19 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "campa"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Jul 29 13:59:58 2006"
ModelVersionFormat "1.%<AutoIncrement:10>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "airlib"
Location [173, 176, 643, 380]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Airlib Aircraft Models"
Ports [0, 0, 0, 0, 0]
Position [270, 73, 332, 103]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
OpenFcn "airlibex"
ShowPortLabels on
MaskDisplay "disp('Aircraft\\nModels')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Airlib Aircraft Models"
Location [245, 152, 497, 281]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "Airlib Aircraft Models1"
Ports [0, 0, 0, 0, 0]
Position [350, 73, 412, 103]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
OpenFcn "airgk"
ShowPortLabels on
MaskDisplay "disp('General\\nController')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Airlib Aircraft Models1"
Location [245, 152, 497, 281]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "Airlib B747 Demo"
Ports [0, 0, 0, 0, 0]
Position [270, 118, 332, 148]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
OpenFcn "B747cl"
ShowPortLabels on
MaskDisplay "disp('B747\\nClosed Loop')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Airlib B747 Demo"
Location [245, 152, 497, 281]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "Airlib B747 Demo1"
Ports [0, 0, 0, 0, 0]
Position [350, 118, 412, 148]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
OpenFcn "fdcwind"
ShowPortLabels on
MaskDisplay "disp('FDC\\nwind model')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Airlib B747 Demo1"
Location [245, 152, 497, 281]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "B747"
Ports [3, 3, 0, 0, 0]
Position [40, 31, 95, 149]
DropShadow on
FontName "Arial"
ShowPortLabels off
MaskType "General Nonlinear Aircraft Model"
MaskDescription " The first input contains the wind velocity an"
"d acceleration.\n The second input contains external forces and moments in b"
"ody axis.\n The third input contains the deflections of elevators, ailerons,"
" rudder,\n and flaps. For a list of outputs look under the mask.\n NB : The"
" International measurement system (MKS) is adopted."
MaskHelp "<p>\nThis block is a general nonlinear 6DOF air"
"craft model, with a very accurate built-in atmosphere model and constant aero"
"dynamic derivatives. \nThe architecture of the block is largely based on the "
"Aircraft block provided by the <A \nHREF=\"http://www.mathworks.com/matlabcen"
"tral/fileexchange/loadFile.do?objectId=252&objectType=file\">FDC toolbox</A> "
"(Marc Rauw, 1993-2000).\n</p>\n<p>\nThe geometric and inertal data of the air"
"craft are entered as parameters in the first row of the mask. The other six r"
"ows contains the \nnon-dimensional aerodynamic derivatives. The last row is t"
"he initial state.\n</p>\n<p>\nThe first input contains the wind velocity and "
"acceleration. \nThe second input contains external forces and moments in the "
"aircraft body axis. \nThe third input contains the deflections of elevators, "
"ailerons, rudder, \nand flaps or stabilators. For a list of outputs look unde"
"r the mask. \n</p>\n<p>\nThe control surface sign conventions are the same ad"
"opted in books such as Stevens-Lewis and Etkin, and in many flight simulators"
", \nincluding the FDC toolbox. <br> \nSpecifically, positive elevator deflect"
"ion causes negative pitching moment (Cmde < 0), positive rudder deflection"
" causes negative yawing \nmoment (Cndr < 0), and positive aileron deflecti"
"on causes negative rolling moment (Clda < 0). Another way to say the same "
"thing is \nthat, the positive elevators deflection is Trailing Edge Down (TED"
"), the positive rudder(s) deflection is Trailing Edge Left (TEL), and, \ntaki"
"ng as TED the positive ailerons deflection, da=K*(da_right-da_left), with K u"
"sually equal to 1 (FDC) or 1/2.\n</p>\n<p>\nSince this block is largely based"
" on the FDC toolbox, i redirect you to the FDC Toolbox manual, for a good exp"
"lanation of the underlying \ncomponents. Besides the mask and the fact that t"
"he aerodynamic derivatives are expressed in the stability axis, the only rele"
"vant difference \nwith the FDC toolbox is that in the computation of the aero"
"dynamic forces, q is normalized as q*cbar/2V instead of q*cbar/V. The majorit"
"y \nof aeronautics books that i've seen use q*cbar/2V.\n</p>\n<p>\nPlease not"
"e that the International Measurement System is adopted. So, lengths are in me"
"ters, masses in Kg, and inertia moments in Kg*m^2. \nMoreover, forces are in "
"N, moments in N*m, accelerations in g, and angles in radians. For those that "
"use the english system, here are some useful \nconversion factors: <br>\n1 ft"
" = 0.3048 m, 1 lb = 0.4536 Kg, 1 slug = 14.593903 Kg , 1 slug*ft^2 = 1.3"
"55818 Kg*m^2 \n<br>\n</p>\n<p>\nFinally, there is an <A HREF=\"http://www.aae"
".uiuc.edu/m-selig/apasim/Aircraft-uiuc.html\">excellent source</A> of aircraf"
"t aerodynamic data \nwhich is mantained by Michael S. Selig, Rob Deters, and "
"Glen Dimock at the university of Urbana-Champaign. To use any of the given mo"
"dels \nyou just need to type the supplied aircraft data in the block mask. "
"\n</p>\n<p>\n<p>\nDecember 2002, Giampiero Campa\n</p>\n</p>"
MaskPromptString "Geometry and Mass : [cbar b S Ix Iy "
" Iz Jxy Jxz Jyz m]|Aerodynamic D-Force Derivatives : [CD0 CDa CDq CDde C"
"Dih]|Aerodynamic L-Force Derivatives : [CL0 CLa CLq CLde CLih]|Aerodynamic Y-"
"Moment Derivatives : [Cm0 Cma Cmq Cmde Cmih]|Aerodynamic Y-Force Derivatives "
": [CY0 CYb CYp CYr CYda CYdr]|Aerodynamic X-moment Derivatives : [Cl0 Clb Clp"
" Clr Clda Cldr]|Aerodynamic Z-moment Derivatives : [Cn0 Cnb Cnp Cnr Cnda Cndr"
"]|Initial Condition x0 [v alpha beta p q r psi theta phi xe ye H]"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "GM1=@1;CD_wind=@2;CL_wind=@3;Cm_body=@4;CY_body"
"=@5;Cl_body=@6;Cn_body=@7;x0=@8;"
MaskInitialization "AM=zeros(6,19);\nAM(1,[1 2 9 11 12])=reshape(CD"
"_wind,1,5);\nAM(3,[1 2 9 11 12])=reshape(CL_wind,1,5);\nAM(5,[1 2 9 11 12])=r"
"eshape(Cm_body,1,5);\nAM(2,[1 5 8 10 13 14])=reshape(CY_body,1,6);\nAM(4,[1 5"
" 8 10 13 14])=reshape(Cl_body,1,6);\nAM(6,[1 5 8 10 13 14])=reshape(Cn_body,1"
",6);\n\nIx=GM1(4);Iy=GM1(5);Iz=GM1(6);\nJxy=GM1(7);Jxz=GM1(8);Jyz=GM1(9);\n\n"
"detI = Ix*Iy*Iz - 2*Jxy*Jxz*Jyz - Ix*Jyz^2 - Iy*Jxz^2 - Iz*Jxy^2;\nI1 = Iy*"
"Iz - Jyz^2;I2 = Jxy*Iz + Jyz*Jxz;\nI3 = Jxy*Jyz + Iy*Jxz;I4 = Ix*Iz - J"
"xz^2;\nI5 = Ix*Jyz + Jxy*Jxz;I6 = Ix*Iy - Jxy^2;\n\nPl = I1/detI; Pm = I"
"2/detI; Pn = I3/detI;\nPpp = -(Jxz*I2 - Jxy*I3)/detI;Ppq = (Jxz*I1 - Jyz*I2 -"
" (Iy-Ix)*I3)/detI;\nPpr = -(Jxy*I1 + (Ix-Iz)*I2 - Jyz*I3)/detI;Pqq = (Jyz*I1 "
"- Jxy*I3)/detI;\nPqr = -((Iz-Iy)*I1 - Jxy*I2 + Jxz*I3)/detI;Prr = -(Jyz*I1 - "
"Jxz*I2)/detI;\n\nQl = I2/detI; Qm = I4/detI; Qn = I5/detI;\nQpp = -(Jxz*I4 -"
" Jxy*I5)/detI;Qpq = (Jxz*I2 - Jyz*I4 - (Iy-Ix)*I5)/detI;\nQpr = -(Jxy*I2 + (I"
"x-Iz)*I4 - Jyz*I5)/detI;Qqq = (Jyz*I2 - Jxy*I5)/detI;\nQqr = -((Iz-Iy)*I2 - J"
"xy*I4 + Jxz*I5)/detI;Qrr = -(Jyz*I2 - Jxz*I4)/detI;\n\nRl = I3/detI; Rm = I5"
"/detI; Rn = I6/detI;\nRpp = -(Jxz*I5 - Jxy*I6)/detI;\nRpq = (Jxz*I3 - Jyz*I5 "
"- (Iy-Ix)*I6)/detI;\nRpr = -(Jxy*I3 + (Ix-Iz)*I5 - Jyz*I6)/detI;\nRqq = (Jyz*"
"I3 - Jxy*I6)/detI;\nRqr = -((Iz-Iy)*I3 - Jxy*I5 + Jxz*I6)/detI;\nRrr = -(Jyz*"
"I3 - Jxz*I5)/detI;\n\nGM2 = [ Pl Pm Pn Ppp Ppq Ppr Pqq Pqr Prr ;"
"\n Ql Qm Qn Qpp Qpq Qpr Qqq Qqr Qrr ;\n "
" Rl Rm Rn Rpp Rpq Rpr Rqq Rqr Rrr ];\n\nxfix=1;\n"
MaskDisplay "disp('General\\nAircraft\\nModel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[8.32 59.74 510.95 24675560 44876980 6"
"7383260 0 1315126 0 288772]|[0.0164 0.2 0 0 0]|[0.21 4.4 6.6 0."
"32 0.7]|[0 -1 -20.5 -1.3 -2.7]|[0 -0.9 0 0 -0 0.12]"
"|[0 -0.16 -0.34 0.13 -0.013 0.008]|[0 0.16 -0.026 -0.28"
" -0.0018 -0.1]|[150.148 0.0464959 0 0 0 0 0 0.0464959 0 0 0 61]"
System {
Name "B747"
Location [58, 142, 709, 766]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name " uwind"
Position [15, 335, 35, 355]
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "ext fm"
Position [15, 155, 35, 175]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "deflect"
Position [15, 105, 35, 125]
DropShadow on
FontName "Arial"
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Gain
Name " *1"
Position [492, 360, 498, 365]
Orientation "down"
ForegroundColor "magenta"
ShowName off
FontName "Arial"
Gain "1"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "*1"
Position [482, 360, 488, 365]
Orientation "down"
ForegroundColor "magenta"
ShowName off
FontName "Arial"
Gain "1"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "0"
Ports [0, 0, 0, 0, 0]
Position [92, 528, 242, 560]
ForegroundColor "blue"
DropShadow on
ShowName off
FontName "Arial"
ShowPortLabels off
MaskDisplay "disp('AIRCRAFT, main level\\nM.O. Rauw')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Terminator
Name "Caero"
Position [520, 105, 540, 125]
}
Block {
BlockType Reference
Name "Double click here for info\n1"
Ports [0, 0, 0, 0, 0]
Position [90, 489, 151, 517]
ForegroundColor "green"
DropShadow on
ShowName off
SourceBlock "airlib/DT-B747/Double click here for info\n"
"1"
SourceType "Unknown"
}
Block {
BlockType Reference
Name "Double click here to for info\n2"
Ports [0, 0, 0, 0, 0]
Position [180, 489, 241, 517]
ForegroundColor "green"
DropShadow on
ShowName off
SourceBlock "airlib/DT-B747/Double click here to for inf"
"o\n2"
SourceType "Unknown"
}
Block {
BlockType Terminator
Name "FM ext"
Position [595, 155, 615, 175]
}
Block {
BlockType Terminator
Name "FMaero"
Position [480, 120, 500, 140]
}
Block {
BlockType Terminator
Name "Fgrav"
Position [595, 200, 615, 220]
}
Block {
BlockType From
Name "From3"
Position [515, 517, 555, 533]
CloseFcn "tagdialog Close"
GotoTag "uvwd"
}
Block {
BlockType From
Name "From4"
Position [515, 547, 555, 563]
CloseFcn "tagdialog Close"
GotoTag "ydl"
}
Block {
BlockType From
Name "From5"
Position [515, 577, 555, 593]
CloseFcn "tagdialog Close"
GotoTag "acc"
}
Block {
BlockType Terminator
Name "Fwind"
Position [595, 245, 615, 265]
}
Block {
BlockType Goto
Name "Goto3"
Position [510, 447, 545, 463]
NamePlacement "alternate"
GotoTag "uvwd"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto4"
Position [580, 92, 615, 108]
NamePlacement "alternate"
GotoTag "ydl"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto5"
Position [510, 472, 545, 488]
GotoTag "acc"
TagVisibility "local"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1, 0, 0, 0]
Position [570, 510, 575, 600]
ShowName off
Inputs "[3 3 6]"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "ad"
Ports [1, 4, 0, 0, 0]
Position [75, 17, 130, 78]
ShowName off
FontName "Arial"
ShowPortLabels off
System {
Name "ad"
Location [4, 74, 409, 312]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "x"
Position [15, 55, 35, 75]
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -