📄 aeroblk_vmm.mdl
字号:
SourceType "Dynamic Pressure"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Gain
Name "Gain"
Position [290, 95, 320, 125]
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
Gain "0"
}
Block {
BlockType Reference
Name "Mach Number"
Ports [2, 1]
Position [105, 20, 145, 95]
BackgroundColor "[1.000000, 0.501961, 0.501961]"
ShowName off
SourceBlock "aerolibasang/Mach Number"
SourceType "Mach Number"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Outport
Name "F"
Position [585, 123, 615, 137]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name " M"
Position [585, 193, 615, 207]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mach Number"
SrcPort 1
DstBlock "Calculate Coefficients"
DstPort 1
}
Line {
SrcBlock "Alpha"
SrcPort 1
DstBlock "Calculate Coefficients"
DstPort 2
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "Mach Number"
DstPort 2
}
Line {
SrcBlock "V"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Mach Number"
DstPort 1
}
Branch {
Points [0, 190; 235, 0; 0, -95]
DstBlock "Dynamic Pressure"
DstPort 1
}
}
Line {
SrcBlock "Dynamic Pressure"
SrcPort 1
DstBlock "Aerodynamic\nForces and Moments"
DstPort 2
}
Line {
SrcBlock "Rho"
SrcPort 1
DstBlock "Dynamic Pressure"
DstPort 2
}
Line {
SrcBlock "CG"
SrcPort 1
DstBlock "Aerodynamic\nForces and Moments"
DstPort 3
}
Line {
SrcBlock "CP"
SrcPort 1
DstBlock "Aerodynamic\nForces and Moments"
DstPort 4
}
Line {
SrcBlock "Aerodynamic\nForces and Moments"
SrcPort 1
DstBlock "F"
DstPort 1
}
Line {
SrcBlock "Aerodynamic\nForces and Moments"
SrcPort 2
DstBlock " M"
DstPort 1
}
Line {
SrcBlock "Calculate Coefficients"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Aerodynamic\nForces and Moments"
DstPort 1
}
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 2]
Position [85, 19, 90, 146]
ShowName off
OutputSignals "Motor.Propellant.m_dot,Motor.Propellant"
".m"
Port {
PortNumber 1
Name "<m_dot>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "<m>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector1"
Ports [1, 1]
Position [180, 378, 185, 412]
ShowName off
OutputSignals "CG"
Port {
PortNumber 1
Name "<CG>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector2"
Ports [1, 3]
Position [145, 150, 150, 280]
ShowName off
OutputSignals "g,sos,rho"
Port {
PortNumber 1
Name "<g>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "<sos>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "<rho>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Create Statically \nStable CP"
Ports [1, 1]
Position [230, 427, 270, 453]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Create Statically \nStable CP"
Location [236, 529, 482, 631]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "CG"
Position [85, 28, 115, 42]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [115, 45, 145, 75]
Value "0.1"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [150, 25, 170, 45]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "CP"
Position [195, 28, 225, 42]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "CG"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "CP"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Exhaust Velocity"
Position [255, 27, 380, 73]
Gain "[vmm_Uex 0 0]"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Thrust"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Gain
Name "Gravity Vector"
Position [255, 105, 380, 145]
ShowName off
Gain "[0 0 1]"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Incidence, Sideslip,\n& Airspeed"
Ports [1, 3]
Position [145, 298, 185, 362]
BackgroundColor "[1.000000, 0.501961, 0.501961]"
ShowName off
SourceBlock "aerolibasang/Incidence, Sideslip,\n& Ai"
"rspeed"
SourceType "Incidence,Sideslip,&Airspeed"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Reshape
Name "Reshape"
Position [415, 113, 445, 137]
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [570, 105, 590, 125]
ShowName off
IconShape "round"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Terminator
Name "Terminator"
Position [205, 320, 225, 340]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [205, 340, 225, 360]
ShowName off
}
Block {
BlockType Product
Name "To body axes"
Ports [2, 1]
Position [475, 86, 515, 139]
Multiplication "Matrix(*)"
InputSameDT off
RndMeth "Floor"
Port {
PortNumber 1
Name "Fgravity"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Product
Name "weight"
Ports [2, 1]
Position [195, 104, 235, 146]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Outport
Name "Forces"
Position [610, 108, 640, 122]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Moments"
Position [570, 393, 600, 407]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Gravity Vector"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
Line {
Name "Thrust"
Labels [0, 0]
SrcBlock "Exhaust Velocity"
SrcPort 1
Points [195, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "DCM"
SrcPort 1
DstBlock "To body axes"
DstPort 1
}
Line {
Name "Fgravity"
Labels [0, 0]
SrcBlock "To body axes"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
Name "<m>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 2
DstBlock "weight"
DstPort 1
}
Line {
Name "<m_dot>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
DstBlock "Exhaust Velocity"
DstPort 1
}
Line {
SrcBlock "Bus"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Bus\nSelector"
DstPort 1
}
Branch {
Points [0, 310]
DstBlock "Bus\nSelector1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Forces"
DstPort 1
}
Line {
SrcBlock "Aerodynamics"
SrcPort 2
DstBlock "Moments"
DstPort 1
}
Line {
SrcBlock "Aerodynamics"
SrcPort 1
Points [160, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Envir Bus"
SrcPort 1
DstBlock "Bus\nSelector2"
DstPort 1
}
Line {
Name "<sos>"
Labels [0, 0]
SrcBlock "Bus\nSelector2"
SrcPort 2
DstBlock "Aerodynamics"
DstPort 1
}
Line {
Name "<rho>"
Labels [0, 0]
SrcBlock "Bus\nSelector2"
SrcPort 3
DstBlock "Aerodynamics"
DstPort 2
}
Line {
SrcBlock "Vb"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Incidence, Sideslip,\n& Airspeed"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -