📄 fadianji.mdl
字号:
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
Points [-220, 0]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [110, 0; 0, 120]
DstBlock "Mux1"
DstPort 1
}
}
}
Line {
SrcBlock "ω"
SrcPort 1
Points [0, 0; 105, 0]
Branch {
Points [0, 60]
DstBlock "Product1"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -55]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [-80, 0; 0, 40]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 60]
DstBlock "Gain3"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [-75, 0; 0, -45]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [25, 0; 0, 15]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, -5]
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Gain4"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Mux1"
DstPort 3
}
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [0, 0; 80, 0]
Branch {
Points [0, 65]
DstBlock "Gain5"
DstPort 1
}
Branch {
Points [0, -135]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [-85, 0; 0, -50]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Udq0"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [35, 0; 0, -95]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [35, 0; 0, 105]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "idq0"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "ψdq0"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -60; -205, 0]
DstBlock "Product"
DstPort 2
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1]
Position [725, 290, 765, 350]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [2, 70, 1022, 748]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "idq0"
Position [315, 253, 345, 267]
}
Block {
BlockType Inport
Name "ψdq0"
Position [315, 318, 345, 332]
Port "2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [370, 232, 375, 288]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [370, 293, 375, 357]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Gain
Name "Gain"
Position [655, 280, 685, 310]
Gain "1.5*p"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [475, 231, 520, 264]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [475, 301, 520, 334]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [580, 267, 610, 318]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Terminator
Name "Terminator"
Position [405, 270, 425, 290]
}
Block {
BlockType Terminator
Name "Terminator1"
Position [410, 335, 430, 355]
}
Block {
BlockType Outport
Name "Te"
Position [710, 288, 740, 302]
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "idq0"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "ψdq0"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [60, 0; 0, -70]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [75, 0; 0, 50]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [5, 0; 0, 10; 75, 0]
DstBlock "Product1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Three-Phase\nV-I Measurement"
Ports [3, 5]
Position [620, 383, 670, 457]
AncestorBlock "powerlib2/Measurements/Three-Phase\nV-I Measure"
"ment"
CopyFcn " powericon('psbloadfunction',gcbh,'3-Phase VI "
"Measurement','VerifyPhasor'); "
LoadFcn "powericon('psbloadfunction',gcbh,'3-Phase VI Me"
"asurement','');"
InitFcn "powericon('checksum',bdroot)"
CloseFcn "%3phaseVImeasurement"
FontSize 10
TreatAsAtomicUnit off
MaskType "3-Phase VI Measurement"
MaskDescription "This block is used to measure three-phase volta"
"ges and currents in a circuit. When connected in series with a three-phase el"
"ement, it return the three phase-to-ground voltages and line currents.\n\nThe"
" block can output the voltages and currents in per unit values or in volts an"
"d amperes. Check the appropriate boxes if you want to output the voltages and"
" currents in pu"
MaskHelp "web(psbhelp)"
MaskPromptString "Voltage measurement|Use a label |Signal label "
"(use a From block to collect signal)|Voltage in pu|Base voltage (Vrms phase-"
"phase) :|Current measurement|Use a label|Signal label (use a From block to c"
"ollect signal)|Currents in pu|Base power ( VA 3 phase)|Output signal :|Phasor"
" simulation|Equivalent circuit|PSBOutputType"
MaskStyleString "popup(no|phase-to-ground|phase-to-phase),checkb"
"ox,edit,checkbox,edit,popup(no|yes),checkbox,edit,checkbox,edit,popup(Complex"
"|Real-Imag|Magnitude-Angle|Magnitude),checkbox,edit,edit"
MaskTunableValueString "off,off,off,on,on,off,off,off,on,on,on,on,on,on"
MaskCallbackString "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',2);|powericon('psbcallbacks',gcb,'Three-phase measurements',2);||pow"
"ericon('psbcallbacks',gcb,'Three-phase measurements',2);||powericon('psbcallb"
"acks',gcb,'Three-phase measurements',2);|powericon('psbcallbacks',gcb,'Three-"
"phase measurements',2);||powericon('psbcallbacks',gcb,'Three-phase measuremen"
"ts',4);|||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,off,on,on,on"
MaskVisibilityString "on,on,off,on,on,on,on,off,on,on,on,off,off,off"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,"
MaskVariables "VChoice=@1;ualv=@2;labelV=&3;Vpu=@4;Vbase=@5;IC"
"hoice=@6;ualc=@7;labelC=&8;Ppu=@9;Pbase=@10;OutputType=@11;PhasorSimulation=@"
"12;PSBequivalent=@13;PSBOutputType=&14;"
MaskInitialization "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',4);\nif Vpu\n xKv=1/(Vbase/sqrt(3)*sqrt(2));\nelse\n xKv=1;\n"
"end\nif Ppu\n xKi=1/(Pbase/Vbase/sqrt(3)*sqrt(2));\nelse\n xKi=1;\nend"
"\nswitch OutputType\ncase 1\n OutputSelection = [1:6];\n PhasorModeV ="
" [1:3];\n NormalModeV = [7:9];\n PhasorModeI = [4:6];\n NormalModeI "
"= [10:12];\n Kv = xKv;\n Ki = xKi;\ncase 2\n OutputSelection = [7,13"
",8,14,9,15,10,16,11,17,12,18];\n PhasorModeV = [1:6];\n NormalModeV = ["
"13:15];\n PhasorModeI = [7:12];\n NormalModeI = [16:18];\n Kv = xKv;"
"\n Ki = xKi;\ncase 3\n OutputSelection = [13,19,14,20,15,21,16,22,17,23"
",18,24];\n PhasorModeV = [1:6];\n NormalModeV = [13:15];\n PhasorMod"
"eI = [7:12];\n NormalModeI = [16:18];\n Kv = [xKv 1 xKv 1 xKv 1];\n "
"Ki = [xKi 1 xKi 1 xKi 1];\ncase 4\n OutputSelection = [19:24];\n Phaso"
"rModeV = [1:3];\n NormalModeV = [7:9];\n PhasorModeI = [4:6];\n Norm"
"alModeI = [10:12];\n Kv = xKv;\n Ki = xKi;\nend\nif PhasorSimulation\n "
" SelectionModeV = PhasorModeV;\n SelectionModeI = PhasorModeI;\nelse\n "
" SelectionModeV = NormalModeV;\n SelectionModeI = NormalModeI;\n Kv = "
"xKv;\n Ki = xKi;\nend"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "phase-to-ground|off|V1|on|500e3|yes|off|I1|on|1"
"00e6|Magnitude|off|0|11100"
System {
Name "Three-Phase\nV-I Measurement"
Location [357, 382, 1063, 777]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "A"
Position [15, 23, 45, 37]
}
Block {
BlockType Inport
Name "B"
Position [15, 83, 45, 97]
Port "2"
}
Block {
BlockType Inport
Name "C"
Position [15, 138, 45, 152]
Port "3"
}
Block {
BlockType Constant
Name "Constant"
Position [155, 15, 175, 35]
Value "NaN"
}
Block {
BlockType Constant
Name "Constant1"
Position [160, 60, 180, 80]
Value "NaN"
}
Block {
BlockType Constant
Name "Constant2"
Position [150, 120, 170, 140]
NamePlacement "alternate"
Value "NaN"
}
Block {
BlockType SubSystem
Name "Ia"
Ports [0, 1]
Position [55, 279, 90, 301]
AncestorBlock "powerlib2/Measurements/Three-Phase\nV-I Mea"
"surement/Ia"
TreatAsAtomicUnit off
System {
Name "Ia"
Location [153, 397, 333, 481]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType From
Name "source"
Position [25, 29, 100, 61]
NamePlacement "alternate"
GotoTag "tp243179"
}
Block {
BlockType Outport
Name "Out1"
Position [125, 38, 155, 52]
}
Line {
SrcBlock "source"
SrcPort 1
DstBlock "Out1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -