📄 main_circuit.mdl
字号:
}
Block {
BlockType Reference
Name "Load current3"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [1, 2]
Position [934, 530, 961, 550]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Measurements/Current Measurement"
SourceType "Current Measurement"
PSBOutputType "01"
PSBequivalent "1"
}
Block {
BlockType Reference
Name "Parallel RLC Branch"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [530, 350, 590, 430]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
a "100"
b "120e-3"
c "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Parallel RLC Branch1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [710, 360, 770, 440]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
a "100"
b "120e-3"
c "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Parallel RLC Branch2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [895, 375, 955, 455]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
a "100"
b "120e-3"
c "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [645, 338, 690, 372]
PulseType "Time-based"
Amplitude "1"
Period "0.1"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Position [1005, 368, 1050, 402]
PulseType "Time-based"
Amplitude "1"
Period "0.1"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator2"
Position [820, 333, 865, 367]
PulseType "Time-based"
Amplitude "1"
Period "0.1"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [480, 19, 510, 51]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Reference
Name "Series RLC Branch"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [580, 365, 640, 415]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "0"
b "0"
c "40e-6"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Series RLC Branch1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [755, 375, 815, 425]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "0"
b "0"
c "40e-6"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Series RLC Branch2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [935, 390, 995, 440]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "0"
b "0"
c "40e-6"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Subsystem1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [365, 165, 385, 185]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Subsystem2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [380, 245, 400, 265]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Subsystem7"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [350, 80, 370, 100]
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ua"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [65, 72, 110, 108]
SourceBlock "powerlib2/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
A "100"
P "0"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ub"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [75, 155, 120, 195]
SourceBlock "powerlib2/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
A "100"
P "-120"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Uc"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [60, 241, 105, 279]
SourceBlock "powerlib2/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
A "100"
P "120"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType SubSystem
Name "compensate_current\ndq_method\n\n"
Ports [3, 3]
Position [130, 410, 170, 470]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "compensate_current\ndq_method\n\n"
Location [98, 44, 686, 269]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [25, 58, 55, 72]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [25, 78, 55, 92]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [190, 28, 290, 72]
Numerator "[1 0 0]"
Denominator "[1 44.4 987.65]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
Name "converter23"
Ports [2, 3]
Position [460, 35, 500, 95]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "converter23"
Location [87, 74, 847, 740]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "xd"
Position [25, 28, 55, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "xq"
Position [25, 113, 55, 127]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [360, 26, 405, 59]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [360, 111, 405, 144]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [385, 211, 430, 244]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [395, 331, 440, 364]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [395, 441, 440, 474]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [400, 541, 445, 574]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [520, 90, 540, 170]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [535, 385, 555, 465]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [525, 245, 545, 325]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "cos\n(wt-120)"
Ports [0, 1]
Position [230, 155, 270, 215]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "cos(wt+phase)"
MaskPromptString "相位|幅值|频率"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "phase=@1;Amplitude=@2;f=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-120|1|50"
MaskVariableAliases ",,"
System {
Name "cos\n(wt-120)"
Location [-8, 74, 607, 357]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [25, 130, 45, 150]
DisplayTime off
Decimation "1"
}
Block {
BlockType Gain
Name "Gain"
Position [105, 122, 175, 158]
Gain "2*pi*f"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -