simexa26.mdl
来自「市面上电力系统的范例 直得收藏学习的ㄧ本书」· MDL 代码 · 共 221 行
MDL
221 行
Model {
Name "simexa26"
Version 2.09
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
PaperOrientation landscape
PaperType usletter
PaperUnits inches
StartTime "0.0"
StopTime "10"
Solver ode45
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption RefineOutputTimes
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
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 "simexa26"
Location [128, 297, 784, 612]
Open on
ScreenColor white
Block {
BlockType Inport
Name "In"
Position [30, 75, 50, 95]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType TransferFcn
Name "Controller"
Position [165, 73, 220, 117]
Numerator "[1 2]"
Denominator "[1 1]"
}
Block {
BlockType Gain
Name "Gain"
Position [335, 175, 365, 205]
Orientation left
Gain "2"
}
Block {
BlockType Integrator
Name "Integ."
Ports [1, 1, 0, 0, 0]
Position [450, 90, 480, 120]
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "Plant"
Position [335, 79, 400, 131]
Numerator "[20]"
Denominator "[1 10 16]"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [100, 77, 130, 108]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [260, 87, 290, 118]
Inputs "+-"
}
Block {
BlockType Outport
Name "Out"
Position [535, 95, 555, 115]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Integ."
SrcPort 1
Points [20, 0]
Branch {
Points [0, 130; -435, 0; 0, -135]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Out"
DstPort 1
}
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Controller"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Controller"
DstPort 1
}
Line {
SrcBlock "Plant"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 85]
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Integ."
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-85, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Plant"
DstPort 1
}
Annotation {
Position [286, 274]
FontSize 12
Text "Simulation model for system in Example A.26"
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?