📄 hysteresis_grid0.mdl
字号:
BlockType Inport
Name "Iq*"
Position [55, 83, 85, 97]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn"
Position [75, 51, 105, 69]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [75, 19, 105, 41]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain2"
Position [235, 38, 250, 62]
ShowName off
}
Block {
BlockType Gain
Name "Gain3"
Position [265, 68, 280, 92]
ShowName off
}
Block {
BlockType Gain
Name "Gain4"
Position [290, 98, 305, 122]
ShowName off
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [125, 15, 130, 135]
ShowName off
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [340, 37, 345, 123]
ShowName off
Inputs "3"
}
Block {
BlockType Fcn
Name "ia"
Position [165, 40, 190, 60]
NamePlacement "alternate"
Expr "-u[3]*u[2] + u[4]*u[1] "
}
Block {
BlockType Fcn
Name "ib"
Position [165, 71, 190, 89]
Expr "(-u[1]+1.7320508*u[2])*u[4]*0.5+(u[2]+1"
".7320508*u[1])*u[3]*0.5"
}
Block {
BlockType Sum
Name "ic"
Ports [2, 1]
Position [240, 92, 250, 123]
Inputs "--"
}
Block {
BlockType Outport
Name "Iabc*"
Position [370, 73, 400, 87]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Iabc*"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 5]
DstBlock "ib"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "ia"
DstPort 1
}
}
Line {
SrcBlock "Teta"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Iq*"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Id*"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "ic"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "ia"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "ic"
DstPort 2
}
}
Line {
SrcBlock "ib"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "ic"
DstPort 1
}
}
}
}
Block {
BlockType Constant
Name "id*"
Position [60, 88, 90, 112]
Value "100"
}
Block {
BlockType Constant
Name "iq*"
Position [55, 143, 85, 167]
Value "50"
}
Block {
BlockType Outport
Name "pulses"
Position [385, 78, 415, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "dq to ABC\nconversion\ninvariante en amplit"
"ud"
SrcPort 1
DstBlock "Current\nRegulator"
DstPort 2
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Current\nRegulator"
DstPort 1
}
Line {
SrcBlock "Current\nRegulator"
SrcPort 1
Points [0, 0]
DstBlock "pulses"
DstPort 1
}
Line {
SrcBlock "id*"
SrcPort 1
DstBlock "dq to ABC\nconversion\ninvariante en amplit"
"ud"
DstPort 2
}
Line {
SrcBlock "iq*"
SrcPort 1
Points [50, 0; 0, -30]
DstBlock "dq to ABC\nconversion\ninvariante en amplit"
"ud"
DstPort 3
}
Line {
SrcBlock "Digital Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, 45]
DstBlock "dq to ABC\nconversion\ninvariante en amplit"
"ud"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [645, 386, 650, 424]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [665, 801, 670, 839]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Filtro L con Lg"
Ports [0, 4, 0, 0, 0, 3]
Position [115, 136, 165, 214]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
Port {
PortNumber 2
Name "Iabc (A)"
PropagatedSignals ", , "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "Eabc(V)"
PropagatedSignals ", , "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "Filtro L con Lg"
Location [2, 86, 1142, 752]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType PMComponent
Name "Bus Bar (thin horiz)2"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 0, 0, 0, 0, 0, 5]
Position [690, 345, 960, 350]
Orientation "up"
NamePlacement "alternate"
ShowName off
PhysicalDomain "powersysdomain"
LeftPortType "p1"
RightPortType "p1"
RConnTagsString "O1|O2|O3|O4|O5"
MaskType "JunctionPoint"
MaskDescription "This block is used to replace the Bus Bar "
"block from powerlib2. This block was generated by the psbupdate function. Wit"
"h SimPowerSystems, this block is not required. You should consider deleting t"
"his block and reconnect the lines together."
MaskPromptString "inputs|outputs"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "off,off"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "entrees=@1;sorties=@2;"
MaskInitialization "inputtags = cell(1,entrees);\n\nfor i=1:ent"
"rees\n\n inputtags{i} = ['I',num2str(i)];\n\nend\n\noutputtags = cell("
"1,sorties);\n\nfor i=1:sorties\n\n outputtags{i} = ['O',num2str(i)];\n"
"\nend\n\nset_param(gcbh,'LConnTags',inputtags);\n\nset_param(gcbh,'RConnTags'"
",outputtags);"
MaskDisplay "color('red');\n\nplot([0,100],[0,100])\n\np"
"lot([0,100],[100,0])\n\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "0|5"
MaskTabNameString ","
}
Block {
BlockType Reference
Name "Controlled Voltage Source"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [748, 265, 777, 300]
Orientation "up"
ShowName off
SourceBlock "powerlib/Electrical\nSources/Controlled Vol"
"tage Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize on
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Controlled Voltage Source1"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [801, 265, 834, 300]
Orientation "up"
ShowName off
SourceBlock "powerlib/Electrical\nSources/Controlled Vol"
"tage Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize on
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Controlled Voltage Source2"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [852, 265, 888, 300]
Orientation "up"
ShowName off
SourceBlock "powerlib/Electrical\nSources/Controlled Vol"
"tage Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize on
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Current Measurement"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [685, 111, 715, 129]
ShowName off
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement1"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [685, 141, 715, 159]
ShowName off
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement2"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [685, 171, 715, 189]
ShowName off
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement3"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [140, 106, 170, 124]
ShowName off
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement4"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [140, 136, 170, 154]
ShowName off
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement5"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [140, 166, 170, 184]
ShowName off
SourceBlock "powerlib/Measurem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -