simexa22.mdl
来自「solve power flows by gauss seidel method」· MDL 代码 · 共 279 行
MDL
279 行
Model {
Name "simexa22"
Version 2.09
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
PaperOrientation landscape
PaperType usletter
PaperUnits inches
StartTime "0.0"
StopTime "3"
Solver ode45
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep "0.01"
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 "simexa22"
Location [217, 269, 848, 696]
Open on
ScreenColor white
Block {
BlockType Gain
Name "Gain 1"
Position [220, 263, 280, 337]
Orientation left
Gain "25"
}
Block {
BlockType Gain
Name "Gain 2"
Position [210, 163, 275, 227]
Orientation left
Gain "5"
}
Block {
BlockType Integrator
Name "Integrator 1"
Ports [1, 1, 0, 0, 0]
Position [225, 95, 275, 145]
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator 2"
Ports [1, 1, 0, 0, 0]
Position [380, 97, 425, 143]
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Scope
Name "Scope 2"
Ports [1, 0, 0, 0, 0]
Position [420, 13, 465, 67]
Floating off
Location [188, 365, 512, 604]
Open off
Grid on
TickLabels on
ZoomMode on
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1, 0, 0, 0, 0]
Position [515, 95, 555, 145]
Floating off
Location [188, 365, 512, 604]
Open off
Grid on
TickLabels on
ZoomMode on
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step Input"
Position [5, 78, 75, 142]
Time "100"
Before "25"
After "25"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1, 0, 0, 0]
Position [135, 101, 170, 139]
Inputs "+--"
}
Line {
SrcBlock "Step Input"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator 1"
DstPort 1
}
Line {
SrcBlock "Gain 2"
SrcPort 1
Points [-85, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Integrator 2"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 180]
DstBlock "Gain 1"
DstPort 1
}
}
Line {
SrcBlock "Gain 1"
SrcPort 1
Points [-120, 0; 0, -180]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Integrator 1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Integrator 2"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Scope 2"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Gain 2"
DstPort 1
}
}
Annotation {
Position [452, 102]
VerticalAlignment top
Text "x1"
}
Annotation {
Position [332, 102]
VerticalAlignment top
Text "x2"
}
Annotation {
Position [197, 97]
VerticalAlignment top
Text "x2dot"
}
Annotation {
Position [37, 57]
VerticalAlignment top
Text "F = 25"
}
Annotation {
Position [300, 366]
FontSize 12
Text "Simulation diagram for the system of Example "
"A.22"
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?