Plecs {
Name "Help_on_phasesequence_decomposition"
Version "4.7"
CircuitModel "ContStateSpace"
StartTime "0.0"
TimeSpan "1.0"
Timeout ""
Solver "auto"
MaxStep "1e-5"
InitStep "-1"
FixedStep "1e-3"
Refine "1"
ZCStepSize "1e-9"
RelTol "1e-3"
AbsTol "-1"
TurnOnThreshold "0"
SyncFixedStepTasks "2"
UseSingleCommonBaseRate "2"
LossVariableLimitExceededMsg "3"
NegativeSwitchLossMsg "3"
DivisionByZeroMsg "3"
StiffnessDetectionMsg "2"
MaxConsecutiveZCs "1000"
AlgebraicLoopWithStateMachineMsg "3"
AssertionAction "1"
InitializationCommands ""
InitialState "1"
SystemState ""
TaskingMode "1"
TaskConfigurations ""
CodeGenParameterInlining "2"
CodeGenFloatingPointFormat "2"
CodeGenAbsTimeUsageMsg "3"
CodeGenBaseName ""
CodeGenOutputDir ""
CodeGenExtraOpts ""
CodeGenTarget "Generic"
CodeGenTargetSettings ""
ExtendedMatrixPrecision "1"
MatrixSignificanceCheck "2"
EnableStateSpaceSplitting "2"
DisplayStateSpaceSplitting "1"
DiscretizationMethod "2"
ExternalModeSettings ""
AlgebraicLoopMethod "1"
AlgebraicLoopTolerance "1e-6"
ScriptsDialogGeometry ""
ScriptsDialogSplitterPos "0"
Schematic {
Location [0, 26; 1280, 683]
ZoomFactor 1
SliderPosition [0, 0]
ShowBrowser off
BrowserWidth 100
Component {
Type Scope
Name "zero"
Show on
Position [935, 175]
Direction up
Flipped off
LabelPosition south
Location [0, 26; 1283, 706]
State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA"
"G0AQQByAGUAYQAAAAAA/////wAAAEwA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//"
"///wAAAJcA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAACXAP///wAAAAMAAAAAAAAAAPw"
"BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABxAP///wAAB4QAAAPZAAAA"
"BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA"
"AAAAA=="
SavedViews "AAAAAgAAAAA="
HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB"
"AAAAGQAAAAFAAAAZAAAAAYAAABkAAAABwAAAGQAAAABAAAAZAAAAAIAAABkAAAAAwAAAGQAAAAIAA"
"AAZAAAAAkAAABkAAAA0AAAAAsBAAABAAAAAAAAAAAAAAAAlv////8AAACBAAAAAAAAAAsAAACbAAA"
"AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA"
"AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA"
"AA1AAAAAQAAAAAAAAPoAAAAADU="
PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Axes "1"
TimeRange "0"
ScrollingMode "1"
SingleTimeAxis "1"
Open "0"
Ts "-1"
SampleLimit "0"
XAxisLabel "Time / s"
ShowLegend "1"
Axis {
Name ""
AutoScale 0
MinValue -2
MaxValue 2
Signals {}
SignalTypes [ ]
Untangle 0
KeepBaseline off
BaselineValue 0
}
Fourier {
SingleXAxis on
AxisLabel "Frequency / Hz"
Scaling 0
PhaseDisplay 0
ShowFourierLegend off
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
}
}
Component {
Type Gain
Name "Gain"
Show on
Position [600, 235]
Direction right
Flipped off
LabelPosition south
Parameter {
Variable "K"
Value "1/3"
Show off
}
Parameter {
Variable "Multiplication"
Value "1"
Show off
}
Parameter {
Variable "DataType"
Value "10"
Show off
}
}
Component {
Type Scope
Name "Positive"
Show on
Position [940, 235]
Direction up
Flipped off
LabelPosition south
Location [0, 26; 1283, 706]
State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA"
"G0AQQByAGUAYQAAAAAA/////wAAAEwA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//"
"///wAAAJcA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAACXAP///wAAAAMAAAAAAAAAAPw"
"BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABxAP///wAAB4QAAAPZAAAA"
"BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA"
"AAAAA=="
SavedViews "AAAAAgAAAAA="
HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB"
"AAAAGQAAAAFAAAAZAAAAAYAAABkAAAABwAAAGQAAAABAAAAZAAAAAIAAABkAAAAAwAAAGQAAAAIAA"
"AAZAAAAAkAAABkAAAA0AAAAAsBAAABAAAAAAAAAAAAAAAAlv////8AAACBAAAAAAAAAAsAAACbAAA"
"AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA"
"AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA"
"AA1AAAAAQAAAAAAAAPoAAAAADU="
PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Axes "1"
TimeRange "0"
ScrollingMode "1"
SingleTimeAxis "1"
Open "0"
Ts "-1"
SampleLimit "0"
XAxisLabel "Time / s"
ShowLegend "1"
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
SignalTypes [ ]
Untangle 0
KeepBaseline off
BaselineValue 0
}
Fourier {
SingleXAxis on
AxisLabel "Frequency / Hz"
Scaling 0
PhaseDisplay 0
ShowFourierLegend off
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
}
}
Component {
Type Scope
Name "negative"
Show on
Position [945, 300]
Direction up
Flipped off
LabelPosition south
Location [0, 26; 1283, 706]
State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA"
"G0AQQByAGUAYQAAAAAA/////wAAAEwA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//"
"///wAAAJcA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAACXAP///wAAAAMAAAAAAAAAAPw"
"BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABxAP///wAAB4QAAAPZAAAA"
"BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA"
"AAAAA=="
SavedViews "AAAAAgAAAAA="
HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAB"
"AAAAGQAAAAFAAAAZAAAAAYAAABkAAAABwAAAGQAAAABAAAAZAAAAAIAAABkAAAAAwAAAGQAAAAIAA"
"AAZAAAAAkAAABkAAAA3AAAAAsBAAABAAAAAAAAAAAAAAAAlv////8AAACBAAAAAAAAAAsAAACnAAA"
"AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA"
"AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA"
"AA1AAAAAQAAAAAAAAPoAAAAADU="
PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Axes "1"
TimeRange "0"
ScrollingMode "1"
SingleTimeAxis "1"
Open "0"
Ts "-1"
SampleLimit "0"
XAxisLabel "Time / s"
ShowLegend "1"
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
SignalTypes [ ]
Untangle 0
KeepBaseline off
BaselineValue 0
}
Fourier {
SingleXAxis on
AxisLabel "Frequency / Hz"
Scaling 0
PhaseDisplay 0
ShowFourierLegend off
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
}
}
Component {
Type SignalDemux
Name "Demux1"
Show off
Position [655, 235]
Direction right
Flipped on
LabelPosition south
Parameter {
Variable "Width"
Value "3"
Show off
}
}
Component {
Type CScript
Name "+ Sequence"
Show on
Position [840, 235]
Direction up
Flipped off
LabelPosition south
Parameter {
Variable "DialogGeometry"
Value "[640 386 910 360]"
Show off
}
Parameter {
Variable "NumInputs"
Value "[1 1 1]"
Show off
}
Parameter {
Variable "NumOutputs"
Value "3"
Show off
}
Parameter {
Variable "NumContStates"
Value "0"
Show off
}
Parameter {
Variable "NumDiscStates"
Value "0"
Show off
}
Parameter {
Variable "NumZCSignals"
Value "0"
Show off
}
Parameter {
Variable "DirectFeedthrough"
Value "1"
Show off
}
Parameter {
Variable "Ts"
Value "0"
Show off
}
Parameter {
Variable "Parameters"
Value ""
Show off
}
Parameter {
Variable "LangStandard"
Value "2"
Show off
}
Parameter {
Variable "GnuExtensions"
Value "1"
Show off
}
Parameter {
Variable "RuntimeCheck"
Value "2"
Show off
}
Parameter {
Variable "Declarations"
Value "#include\n"
"#include\n"
"#include\n"
"\n"
"#define Va InputSignal(0,0)\n"
"#define Vb InputSignal(1,0)\n"
"#define Vc InputSignal(2,0)\n"
"\n"
"#define pi 3.14159265358979323846\n"
"\n"
"#define Va1 OutputSignal(0,0)\n"
"#define Vb1 OutputSignal(0,1)\n"
"#define Vc1 OutputSignal(0,2)\n"
"\n"
"\n"
"complex float alpha,alphasqr;"
Show off
}
Parameter {
Variable "StartFcn"
Value ""
Show off
}
Parameter {
Variable "OutputFcn"
Value "alpha= -0.5+0.866*I; // 'a' complex operator, denoted a"
" phase shift\n"
"alphasqr= -0.5-0.866*I; // 'a^2' complex operator square\n"
"\n"
"//Positive Sequence\n"
"Va1=Va+(alpha*Vb)+(alphasqr*Vc);\n"
"Vb1=alphasqr*Va1;\n"
"Vc1=alpha*Va1;\n"
Show off
}
Parameter {
Variable "UpdateFcn"
Value ""
Show off
}
Parameter {
Variable "DerivativeFcn"
Value ""
Show off
}
Parameter {
Variable "TerminateFcn"
Value ""
Show off
}
Parameter {
Variable "StoreCustomStateFcn"
Value ""
Show off
}
Parameter {
Variable "RestoreCustomStateFcn"
Value ""
Show off
}
}
Component {
Type CScript
Name "- Sequence1"
Show on
Position [840, 300]
Direction up
Flipped off
LabelPosition south
Parameter {
Variable "DialogGeometry"
Value "[640 386 1075 360]"
Show off
}
Parameter {
Variable "NumInputs"
Value "[1 1 1]"
Show off
}
Parameter {
Variable "NumOutputs"
Value "3"
Show off
}
Parameter {
Variable "NumContStates"
Value "0"
Show off
}
Parameter {
Variable "NumDiscStates"
Value "0"
Show off
}
Parameter {
Variable "NumZCSignals"
Value "0"
Show off
}
Parameter {
Variable "DirectFeedthrough"
Value "1"
Show off
}
Parameter {
Variable "Ts"
Value "0"
Show off
}
Parameter {
Variable "Parameters"
Value ""
Show off
}
Parameter {
Variable "LangStandard"
Value "2"
Show off
}
Parameter {
Variable "GnuExtensions"
Value "1"
Show off
}
Parameter {
Variable "RuntimeCheck"
Value "2"
Show off
}
Parameter {
Variable "Declarations"
Value "#include\n"
"#include\n"
"#include\n"
"\n"
"#define Va InputSignal(0,0)\n"
"#define Vb InputSignal(1,0)\n"
"#define Vc InputSignal(2,0)\n"
"\n"
"#define pi 3.14159265358979323846\n"
"\n"
"#define Va1 OutputSignal(0,0)\n"
"#define Vb1 OutputSignal(0,1)\n"
"#define Vc1 OutputSignal(0,2)\n"
"\n"
"\n"
"complex float alpha,alphasqr;"
Show off
}
Parameter {
Variable "StartFcn"
Value ""
Show off
}
Parameter {
Variable "OutputFcn"
Value "alpha= -0.5+0.866*I; // 'a'complex operator, denoted a "
"phase shift\n"
"alphasqr= -0.5-0.866*I; // 'a^2' complex operator square\n"
"\n"
"//Negative Sequence\n"
"Va1=Va+(alphasqr*Vb)+(alpha*Vc);\n"
"Vb1=alpha*Va1;\n"
"Vc1=alphasqr*Va1;\n"
Show off
}
Parameter {
Variable "UpdateFcn"
Value ""
Show off
}
Parameter {
Variable "DerivativeFcn"
Value ""
Show off
}
Parameter {
Variable "TerminateFcn"
Value ""
Show off
}
Parameter {
Variable "StoreCustomStateFcn"
Value ""
Show off
}
Parameter {
Variable "RestoreCustomStateFcn"
Value ""
Show off
}
}
Component {
Type CScript
Name "Zero Sequence"
Show on
Position [840, 175]
Direction up
Flipped off
LabelPosition south
Parameter {
Variable "DialogGeometry"
Value "[640 385 623 360]"
Show off
}
Parameter {
Variable "NumInputs"
Value "[1 1 1]"
Show off
}
Parameter {
Variable "NumOutputs"
Value "3"
Show off
}
Parameter {
Variable "NumContStates"
Value "0"
Show off
}
Parameter {
Variable "NumDiscStates"
Value "0"
Show off
}
Parameter {
Variable "NumZCSignals"
Value "0"
Show off
}
Parameter {
Variable "DirectFeedthrough"
Value "1"
Show off
}
Parameter {
Variable "Ts"
Value "0"
Show off
}
Parameter {
Variable "Parameters"
Value ""
Show off
}
Parameter {
Variable "LangStandard"
Value "2"
Show off
}
Parameter {
Variable "GnuExtensions"
Value "1"
Show off
}
Parameter {
Variable "RuntimeCheck"
Value "2"
Show off
}
Parameter {
Variable "Declarations"
Value "#include\n"
"#include\n"
"#include\n"
"\n"
"#define Va InputSignal(0,0)\n"
"#define Vb InputSignal(1,0)\n"
"#define Vc InputSignal(2,0)\n"
"\n"
"#define pi 3.14159265358979323846\n"
"\n"
"#define Va0 OutputSignal(0,0)\n"
"#define Vb0 OutputSignal(0,1)\n"
"#define Vc0 OutputSignal(0,2)\n"
"\n"
"\n"
"complex float alpha,alphasqr;"
Show off
}
Parameter {
Variable "StartFcn"
Value ""
Show off
}
Parameter {
Variable "OutputFcn"
Value "alpha= -0.5+0.866*I; // 'a' complex operator, denoted a"
" phase shift\n"
"alphasqr= -0.5-0.866*I; // 'a^2' complex operator square\n"
"\n"
"//Zero Sequence\n"
"Va0=Va+Vb+Vc;\n"
"Vb0=Va+Vb+Vc;\n"
"Vc0=Va+Vb+Vc;\n"
Show off
}
Parameter {
Variable "UpdateFcn"
Value ""
Show off
}
Parameter {
Variable "DerivativeFcn"
Value ""
Show off
}
Parameter {
Variable "TerminateFcn"
Value ""
Show off
}
Parameter {
Variable "StoreCustomStateFcn"
Value ""
Show off
}
Parameter {
Variable "RestoreCustomStateFcn"
Value ""
Show off
}
}
Component {
Type ACVoltageSource
Name "V_ac"
Show on
Position [355, 180]
Direction down
Flipped on
LabelPosition east
Parameter {
Variable "V"
Value "1"
Show off
}
Parameter {
Variable "w"
Value "2*pi*50"
Show off
}
Parameter {
Variable "phi"
Value "2*pi/3"
Show off
}
}
Component {
Type Voltmeter
Name "Vm1"
Show on
Position [485, 175]
Direction up
Flipped off
LabelPosition west
}
Component {
Type ACVoltageSource
Name "V_ac1"
Show on
Position [355, 240]
Direction down
Flipped on
LabelPosition east
Parameter {
Variable "V"
Value "1"
Show off
}
Parameter {
Variable "w"
Value "2*pi*50"
Show off
}
Parameter {
Variable "phi"
Value "0"
Show off
}
}
Component {
Type Voltmeter
Name "Vm2"
Show on
Position [485, 235]
Direction up
Flipped off
LabelPosition west
}
Component {
Type ACVoltageSource
Name "V_ac2"
Show on
Position [355, 295]
Direction down
Flipped on
LabelPosition east
Parameter {
Variable "V"
Value "1"
Show off
}
Parameter {
Variable "w"
Value "2*pi*50"
Show off
}
Parameter {
Variable "phi"
Value "-2*pi/3"
Show off
}
}
Component {
Type Voltmeter
Name "Vm3"
Show on
Position [485, 290]
Direction up
Flipped off
LabelPosition west
}
Component {
Type SignalMux
Name "Mux"
Show off
Position [565, 235]
Direction right
Flipped off
LabelPosition south
Parameter {
Variable "Width"
Value "3"
Show off
}
}
Connection {
Type Signal
SrcComponent "Zero Sequence"
SrcTerminal 4
DstComponent "zero"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "+ Sequence"
SrcTerminal 4
DstComponent "Positive"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "- Sequence1"
SrcTerminal 4
DstComponent "negative"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "Gain"
SrcTerminal 2
DstComponent "Demux1"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "Demux1"
SrcTerminal 3
Points [700, 235]
Branch {
DstComponent "+ Sequence"
DstTerminal 2
}
Branch {
Points [700, 175]
DstComponent "Zero Sequence"
DstTerminal 2
}
Branch {
Points [700, 300]
DstComponent "- Sequence1"
DstTerminal 2
}
}
Connection {
Type Signal
SrcComponent "Demux1"
SrcTerminal 4
Points [715, 245]
Branch {
DstComponent "+ Sequence"
DstTerminal 3
}
Branch {
Points [715, 185]
DstComponent "Zero Sequence"
DstTerminal 3
}
Branch {
Points [715, 310]
DstComponent "- Sequence1"
DstTerminal 3
}
}
Connection {
Type Signal
SrcComponent "Demux1"
SrcTerminal 2
Points [730, 225]
Branch {
DstComponent "+ Sequence"
DstTerminal 1
}
Branch {
Points [730, 165]
DstComponent "Zero Sequence"
DstTerminal 1
}
Branch {
Points [730, 290]
DstComponent "- Sequence1"
DstTerminal 1
}
}
Connection {
Type Wire
SrcComponent "V_ac"
SrcTerminal 1
Points [355, 155]
DstComponent "Vm1"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "V_ac"
SrcTerminal 2
Points [485, 200]
DstComponent "Vm1"
DstTerminal 2
}
Connection {
Type Wire
SrcComponent "V_ac1"
SrcTerminal 1
Points [355, 215]
DstComponent "Vm2"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "V_ac1"
SrcTerminal 2
Points [485, 260]
DstComponent "Vm2"
DstTerminal 2
}
Connection {
Type Wire
SrcComponent "V_ac2"
SrcTerminal 1
Points [355, 270]
DstComponent "Vm3"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "V_ac2"
SrcTerminal 2
Points [485, 315]
DstComponent "Vm3"
DstTerminal 2
}
Connection {
Type Signal
SrcComponent "Vm1"
SrcTerminal 3
Points [515, 175; 515, 225]
DstComponent "Mux"
DstTerminal 2
}
Connection {
Type Signal
SrcComponent "Vm2"
SrcTerminal 3
DstComponent "Mux"
DstTerminal 3
}
Connection {
Type Signal
SrcComponent "Vm3"
SrcTerminal 3
Points [515, 290; 515, 245]
DstComponent "Mux"
DstTerminal 4
}
Connection {
Type Signal
SrcComponent "Mux"
SrcTerminal 1
DstComponent "Gain"
DstTerminal 1
}
}
}