📄 ssts__tether_dumbbell.mdl
字号:
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
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"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType ToFile
Filename "untitled.mat"
MatrixName "ans"
Decimation "1"
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "SSTS__tether_dumbbell"
Location [2, 74, 998, 728]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "97"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Alpha to workspace"
Ports [1]
Position [940, 200, 980, 250]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Alpha to workspace"
Location [-77, 181, 935, 851]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Alpha"
Position [225, 313, 255, 327]
IconDisplay "Port number"
}
Block {
BlockType ToWorkspace
Name "Alpha To Workspace"
Position [330, 265, 390, 295]
VariableName "Alpha"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "DAlpha_Dt To Workspace"
Position [520, 304, 605, 336]
VariableName "DAlpha_Dt"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "DDAlpha_DDt To Workspace"
Position [345, 345, 460, 375]
VariableName "DDAlpha_DDt"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [280, 260, 285, 380]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Alpha To Workspace"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "DAlpha_Dt To Workspace"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
DstBlock "DDAlpha_DDt To Workspace"
DstPort 1
}
Line {
SrcBlock "Alpha"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
}
}
Block {
BlockType Clock
Name "Clock"
Position [725, 120, 745, 140]
Decimation "10"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 13]
Position [845, 181, 850, 619]
BackgroundColor "black"
ShowName off
Outputs "13"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Dumb-Bell Space Tether Dynamics Model"
Ports [0, 13]
Position [40, 160, 705, 620]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDescription "SSTSLAB - Dumb Bell Tether\nBy Yi Chen\n27-Nov-"
"2006"
MaskHelp "Unit:\nMass - kg\nLength - m\nmu = 3.9877848*"
"10^14 - m^3s^-2"
MaskPromptString "Payload Mass - M1(Kg)|Payload Mass - M2(Kg)|Len"
"gth of Tether - L1(m)|Length of Tether - L2(m)|Distance to periapsis/Start po"
"int-rp(m)|Eccentricity-e|Gravitational parameter-mu(m^3s^-2)|Initial Psi-(rad"
")|Initial Alpha-(rad)|Initial Theta-(rad)"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "M1=@1;M2=@2;L1=@3;L2=@4;rp=@5;e=@6;mu=@7;inipsi"
"=@8;inialpha=@9;initheta=@10;"
MaskDisplay "port_label('Output',1,'Alpha');\nport_label('Ou"
"tput',2,'Psi');\nport_label('Output',3,'R');\nport_label('Output',4,'Orbits')"
";\nimage(imread('SSTS__tether_dumbbell.jpg'));\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1000|5000|10000|10000|6890000|0.25|3.9877848*10"
"^14|0|0.1|0"
MaskTabNameString ",,,,,,,,,"
System {
Name "Dumb-Bell Space Tether Dynamics Model"
Location [2, 74, 998, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "111"
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [965, 938, 995, 1022]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [2260, 1170, 2280, 1370]
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add10"
Ports [2, 1]
Position [3645, 837, 3675, 908]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add11"
Ports [2, 1]
Position [4150, 852, 4180, 923]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add12"
Ports [2, 1]
Position [1505, 993, 1535, 1077]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add13"
Ports [2, 1]
Position [940, 381, 975, 459]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add14"
Ports [2, 1]
Position [545, 291, 580, 369]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add15"
Ports [2, 1]
Position [4735, 902, 4765, 973]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add16"
Ports [2, 1]
Position [4155, 1307, 4185, 1378]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add17"
Ports [2, 1]
Position [4530, 1232, 4560, 1303]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [3, 1]
Position [3205, 817, 3235, 983]
Inputs "--+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "alpha''"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [1420, 1331, 1455, 1409]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add5"
Ports [2, 1]
Position [2455, 1472, 2485, 1503]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add6"
Ports [2, 1]
Position [2820, 1247, 2850, 1278]
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add7"
Ports [2, 1]
Position [3640, 577, 3670, 648]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add8"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -