📄 s6.mdl
字号:
Model {
Name "s6"
Version 2.00
SimParamPage Solver
SampleTimeColors off
WideVectorLines off
PaperOrientation landscape
StartTime "0.0"
StopTime "tstop"
Solver ode15s
RelTol "1e-6"
AbsTol "1e-6"
Refine "1"
MaxStep "1e-2"
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 "s6"
Location [83, 49, 705, 438]
Open on
ScreenColor white
Block {
BlockType Clock
Name "Clock"
Position [60, 95, 80, 115]
DeleteFcn "simclock BlockIsBeingDestroyed"
PostSaveFcn "simclock Save"
Location [30, 40, 140, 75]
}
Block {
BlockType SubSystem
Name "Daxis"
Position [315, 310, 350, 380]
ShowPortLabels off
System {
Name "Daxis"
Location [173, 176, 1004, 691]
Open off
ScreenColor white
Block {
BlockType Inport
Name "in_v'ds"
Position [50, 140, 70, 160]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_(wr/wb)*psiqr'"
Position [45, 290, 65, 310]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [135, 135, 320, 165]
Expr "wb*(u[2]+(rpds/xplds)*(u[1]-u[3]))"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [145, 284, 325, 316]
Expr "wb*(-u[2] +(rpr/xplr)*(u[3]-u[1]))"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [485, 207, 635, 243]
Expr "xMd*(u[1]/xplds+u[2]/xplr)"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [495, 126, 590, 154]
Expr "(u[1]-u[2])/xplds"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [490, 300, 585, 330]
Expr "(u[1]-u[2])/xplr"
}
Block {
BlockType Gain
Name "Gain"
Position [400, 372, 570, 428]
Gain "xmq/(wb*(xplr+xmq))"
}
Block {
BlockType Mux
Name "Mux"
Position [100, 108, 120, 192]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux1"
Position [105, 262, 125, 338]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux2"
Position [450, 286, 470, 339]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux3"
Position [445, 193, 465, 257]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux4"
Position [450, 114, 470, 161]
Inputs "2"
}
Block {
BlockType Integrator
Name "psi'ds_"
Position [340, 137, 370, 163]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psipdso"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "psidr'_"
Position [355, 287, 385, 313]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psipdro"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "out_psi'ds"
Position [735, 65, 755, 85]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_i'ds"
Position [735, 130, 755, 150]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_idr'"
Position [735, 305, 755, 325]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_psidr'"
Position [735, 260, 755, 280]
Port "4"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_dpsidr'/dt"
Position [735, 390, 755, 410]
Port "5"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [0, 0]
Branch {
Points [5, 0; 0, 100]
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "psidr'_"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_dpsidr'/dt"
DstPort 1
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "out_idr'"
DstPort 1
}
Line {
SrcBlock "in_(wr/wb)*psiqr'"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "in_v'ds"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "out_i'ds"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psi'ds_"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "psi'ds_"
SrcPort 1
Points [0, 0]
Branch {
Points [30, 0; 0, -75]
DstBlock "out_psi'ds"
DstPort 1
}
Branch {
Points [30, 0; 0, 60]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [30, 0; 0, -25]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [30, 0; 0, 60; -325, 0; 0, -30]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
Points [55, 0; 0, -45; -270, 0; 0, -30]
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [55, 0; 0, 140; -620, 0; 0, -40]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [55, 0; 0, -135; -615, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [55, 0; 0, 140; -285, 0; 0, -40]
DstBlock "Mux2"
DstPort 2
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "psidr'_"
SrcPort 1
Points [0, 0]
Branch {
Points [25, 0; 0, -30]
DstBlock "out_psidr'"
DstPort 1
}
Branch {
Points [25, 0; 0, -60; -330, 0; 0, 35]
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [25, 0; 0, -60]
DstBlock "Mux3"
DstPort 2
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Fcn5"
DstPort 1
}
Annotation {
Position [407, 283]
VerticalAlignment top
Text "psidr'"
}
Annotation {
Position [387, 137]
VerticalAlignment top
Text "psi'ds"
}
Annotation {
Position [612, 127]
VerticalAlignment top
Text "ipds"
}
Annotation {
Position [602, 299]
VerticalAlignment top
Text "idr'"
}
Annotation {
Position [667, 207]
VerticalAlignment top
Text "psiqm"
}
}
}
Block {
BlockType SubSystem
Name "ExtConn"
Position [120, 236, 170, 354]
ShowPortLabels off
System {
Name "ExtConn"
Location [4, 42, 764, 542]
Open off
ScreenColor white
Block {
BlockType Inport
Name "in_vas"
Position [35, 15, 55, 35]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_wr/wb"
Position [75, 320, 95, 340]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_i'ds"
Position [15, 140, 35, 160]
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "in_dpsidr'/dt"
Position [75, 420, 95, 440]
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Gain
Name "1/Crun"
Position [160, 132, 230, 168]
Gain "1/Crun"
}
Block {
BlockType Gain
Name "1/Cstart"
Position [215, 173, 285, 207]
Gain "1/Cstart"
}
Block {
BlockType Constant
Name "Caprun"
Position [410, 244, 465, 266]
Orientation left
Value "Caprun"
}
Block {
BlockType Constant
Name "Capstart"
Position [535, 245, 590, 265]
Orientation left
Value "Capstart"
}
Block {
BlockType Gain
Name "Gain2"
Position [485, 48, 555, 82]
Gain "Nq2Nd"
}
Block {
BlockType Ground
Name "Ground"
Position [190, 383, 205, 397]
}
Block {
BlockType Ground
Name "Ground1"
Position [475, 143, 490, 157]
}
Block {
BlockType Ground
Name "Ground2"
Position [70, 183, 85, 197]
}
Block {
BlockType Logic
Name "Logical\nOperator"
Position [290, 305, 325, 345]
Operator AND
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Position [315, 249, 355, 276]
Orientation left
Operator AND
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Position [487, 205, 518, 225]
Orientation up
Operator OR
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Position [540, 295, 570, 335]
Operator AND
Inputs "2"
}
Block {
BlockType Gain
Name "Rcrun"
Position [160, 39, 215, 81]
Gain "Rcrun"
}
Block {
BlockType Gain
Name "Rcstart"
Position [215, 81, 290, 119]
Gain "Rcstart"
}
Block {
BlockType RelationalOperator
Name "Rel Op"
Position [175, 323, 205, 347]
Operator >=
}
Block {
BlockType RelationalOperator
Name "Rel Op1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -