📄 apilot1.mdl
字号:
Model {
Name "apilot1"
Version 2.09
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
PaperOrientation landscape
PaperType usletter
PaperUnits inches
StartTime "0.0"
StopTime "100"
Solver ode15s
RelTol "1e-06"
AbsTol "1e-04"
Refine "1"
MaxStep "2"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption RefineOutputTimes
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg warning
MinStepSizeMsg warning
UnconnectedInputMsg warning
UnconnectedOutputMsg warning
UnconnectedLineMsg warning
ConsistencyChecking off
ZeroCross on
SimulationMode normal
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
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 "apilot1"
Location [10, 45, 610, 468]
Open on
ScreenColor white
Block {
BlockType SubSystem
Name "+u0"
Ports [6, 2, 0, 0, 0]
Position [190, 87, 230, 168]
FontName "Arial"
ShowName off
ShowPortLabels off
MaskDisplay "disp('Add\\ninitial\\ninputs')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "+u0"
Location [4, 48, 282, 421]
Open off
ScreenColor white
Block {
BlockType Inport
Name "Ddeltae"
Position [35, 70, 55, 90]
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Ddeltaa"
Position [35, 110, 55, 130]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Ddeltar"
Position [35, 155, 55, 175]
DropShadow on
FontName "Arial"
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Ddeltaf"
Position [35, 195, 55, 215]
DropShadow on
FontName "Arial"
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Dn"
Position [35, 270, 55, 290]
DropShadow on
FontName "Arial"
Port "5"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Dpz"
Position [35, 310, 55, 330]
DropShadow on
FontName "Arial"
Port "6"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Constant
Name "Initial inputs\nfor aeromod"
Position [120, 58, 165, 82]
FontName "Arial"
Value "uaero0"
}
Block {
BlockType Constant
Name "Initial inputs\nfor engmod"
Position [120, 318, 165, 342]
FontName "Arial"
Value "uprop0"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1, 0, 0, 0]
Position [125, 112, 130, 173]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "4"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [120, 270, 125, 305]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [200, 285, 215, 305]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [200, 130, 215, 150]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType Outport
Name "uaero"
Position [240, 130, 260, 150]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "uprop"
Position [235, 285, 255, 305]
DropShadow on
FontName "Arial"
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Dpz"
SrcPort 1
Points [40, 0; 0, -25]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Dn"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Initial inputs\nfor engmod"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "uprop"
DstPort 1
}
Line {
SrcBlock "Ddeltaa"
SrcPort 1
Points [30, 0; 0, 15]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Ddeltae"
SrcPort 1
Points [40, 0; 0, 40]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Ddeltar"
SrcPort 1
Points [30, 0; 0, -15]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Ddeltaf"
SrcPort 1
Points [40, 0; 0, -40]
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "Initial inputs\nfor aeromod"
SrcPort 1
Points [10, 0; 0, 65]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "uaero"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Annotation {
Position [64, 13]
ForegroundColor blue
FontSize 11
FontWeight bold
Text "Add initial inputs"
}
Annotation {
Position [62, 247]
VerticalAlignment top
ForegroundColor red
FontName "Arial"
Text "ENGINE INPUTS:"
}
Annotation {
Position [77, 37]
VerticalAlignment top
ForegroundColor red
FontName "Arial"
Text "AERODYNAMIC INPUTS:"
}
}
}
Block {
BlockType SubSystem
Name "-x0"
Ports [1, 2, 0, 0, 0]
Position [360, 39, 425, 121]
FontName "Arial"
ShowName off
ShowPortLabels off
MaskDisplay "disp('Subtract\\ninitial con-\\nditions\\n\\nNo "
"sensors!')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "-x0"
Location [4, 61, 260, 251]
Open off
ScreenColor white
Block {
BlockType Inport
Name "[x; Hdot]"
Position [20, 85, 40, 105]
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Constant
Name "Initial condition"
Position [20, 140, 120, 170]
FontName "Arial"
Value "[xinco; xdot0(12)]"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [150, 90, 165, 110]
FontName "Arial"
ShowName off
Inputs "+-"
}
Block {
BlockType Outport
Name "z == [x; Hdot] "
Position [195, 40, 215, 60]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "z-z0 == [x-x0;\nHdot-Hdot0]"
Position [195, 90, 215, 110]
DropShadow on
FontName "Arial"
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "[x; Hdot]"
SrcPort 1
Points [85, 0]
Branch {
Points [0, -45]
DstBlock "z == [x; Hdot] "
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Initial condition"
SrcPort 1
Points [5, 0; 0, -50]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "z-z0 == [x-x0;\nHdot-Hdot0]"
DstPort 1
}
Annotation {
Position [77, 14]
ForegroundColor blue
FontSize 11
FontWeight bold
Text "Subtract initial conditions"
}
}
}
Block {
BlockType SubSystem
Name "Beaver dynamics"
Ports [3, 2, 0, 0, 0]
Position [260, 52, 330, 168]
BackgroundColor lightBlue
ShowPortLabels on
System {
Name "Beaver dynamics"
Location [14, 46, 587, 482]
Open off
ScreenColor white
Block {
BlockType Inport
Name "uwind"
Position [25, 345, 45, 365]
DropShadow on
FontName "Arial"
FontSize 9
Port "1"
PortWidth "6"
SampleTime "-1"
}
Block {
BlockType Inport
Name "uaero"
Position [25, 215, 45, 235]
DropShadow on
FontName "Arial"
FontSize 9
Port "2"
PortWidth "4"
SampleTime "-1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -