📄 spm1.mdl
字号:
Model {
Name "spm1"
Version 2.00
SimParamPage Solver
SampleTimeColors off
WideVectorLines off
PaperOrientation landscape
StartTime "0.0"
StopTime "999999"
Solver ode45
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "10"
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
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
}
System {
Name "spm1"
Location [311, 230, 811, 530]
Open on
ScreenColor yellow
Block {
BlockType Inport
Name "Inport"
Position [35, 70, 55, 90]
BackgroundColor blue
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Integrator
Name "Integrator1"
Position [195, 77, 225, 113]
BackgroundColor green
DropShadow on
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator2"
Position [285, 78, 315, 112]
BackgroundColor green
DropShadow on
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Product
Name "Product"
Position [250, 167, 280, 203]
Orientation left
BackgroundColor green
DropShadow on
Inputs "3"
}
Block {
BlockType Sum
Name "Sum"
Position [140, 72, 160, 118]
BackgroundColor green
DropShadow on
Inputs "+---"
}
Block {
BlockType Outport
Name "Outport"
Position [395, 85, 415, 105]
BackgroundColor blue
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [-155, 0; 0, -95]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 50; -135, 0; 0, -35]
DstBlock "Sum"
DstPort 4
}
Branch {
DstBlock "Integrator2"
DstPort 1
}
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 55]
Branch {
Points [0, 25]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 10]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 10]
DstBlock "Product"
DstPort 3
}
}
}
Branch {
Points [-250, 0; 0, -50]
DstBlock "Sum"
DstPort 3
}
}
Branch {
DstBlock "Outport"
DstPort 1
}
}
Line {
SrcBlock "Inport"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Annotation {
Position [177, 57]
VerticalAlignment top
BackgroundColor yellow
Text ".\nx2"
}
Annotation {
Position [352, 72]
VerticalAlignment top
BackgroundColor yellow
Text "y=x1"
}
Annotation {
Position [257, 57]
VerticalAlignment top
BackgroundColor yellow
Text " .\nx2=x1"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -