📄 f16_openloop.mdl
字号:
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Terminator
}
}
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 "F16_openloop"
Location [128, 156, 708, 461]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType "S-Function"
Name "F-16 dynamics"
Ports [3, 1]
Position [230, 77, 365, 153]
FunctionName "F16_dyn"
Parameters "init_x"
MaskDisplay "image(imread('aerodata/f16.jpg'))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "LEF"
Ports [1, 1]
Position [265, 192, 300, 208]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "port_label('output', 1, 'dlef')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "LEF"
Location [33, 90, 978, 619]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "state"
Position [15, 178, 45, 192]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Creating qbar / ps"
Ports [2, 1]
Position [260, 86, 445, 244]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Creating qbar / ps"
Location [127, 107, 892, 385]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "alt"
Position [25, 58, 55, 72]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "V"
Position [25, 228, 55, 242]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [290, 219, 320, 251]
ShowName off
Operator "square"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [195, 48, 200, 112]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [650, 119, 685, 166]
ShowName off
Inputs "/*"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [550, 179, 585, 226]
ShowName off
Inputs "**"
RndMeth "Floor"
Port {
PortNumber 1
Name "qbar"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Fcn
Name "Temp"
Position [90, 50, 150, 80]
Expr "288.15-0.0065*u"
}
Block {
BlockType Fcn
Name "ps"
Position [345, 65, 405, 95]
Expr "101325*u/1.225"
}
Block {
BlockType Gain
Name "r2d4"
Position [375, 216, 420, 254]
ShowName off
Gain "0.5"
}
Block {
BlockType Fcn
Name "rho"
Position [240, 65, 300, 95]
Expr "1.225*exp(-9.80665*u(2)/(287.05*u(1)))"
}
Block {
BlockType Outport
Name "qbar / ps"
Position [710, 138, 740, 152]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "ps"
SrcPort 1
Points [200, 0; 0, 50]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "rho"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 110]
DstBlock "Product5"
DstPort 1
}
Branch {
DstBlock "ps"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "rho"
DstPort 1
}
Line {
SrcBlock "Temp"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "alt"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 30]
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "Temp"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "r2d4"
DstPort 1
}
Line {
SrcBlock "r2d4"
SrcPort 1
Points [100, 0; 0, -20]
DstBlock "Product5"
DstPort 2
}
Line {
Name "qbar"
Labels [0, 0]
SrcBlock "Product5"
SrcPort 1
Points [20, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "qbar / ps"
DstPort 1
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Degrees to\nRadians"
Ports [1, 1]
Position [775, 320, 805, 350]
ShowName off
SourceBlock "simulink_extras/Transformations/Degrees to"
"\nRadians"
SourceType "DegreesToRadians"
ShowPortLabels on
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 6]
Position [70, 70, 80, 300]
BackgroundColor "black"
ShowName off
Outputs "[1 1 1 9 1 1]"
Port {
PortNumber 1
Name "Vt"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 2
Name "beta"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 3
Name "alpha"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 5
Name "ze"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Gain
Name "Gain"
Position [305, 278, 345, 312]
ShowName off
Gain "2"
}
Block {
BlockType Gain
Name "Gain1"
Position [280, 315, 325, 355]
ShowName off
Gain "7.25"
}
Block {
BlockType Gain
Name "Gain2"
Position [480, 315, 525, 355]
ShowName off
Gain "1.38"
}
Block {
BlockType Gain
Name "Gain3"
Position [135, 258, 175, 292]
ShowName off
Gain "-1"
}
Block {
BlockType SubSystem
Name "LEF act."
Ports [1, 1]
Position [635, 314, 735, 356]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -