Plecs {
Name "datei_edited"
Version "4.3"
CircuitModel "ContStateSpace"
StartTime "0.0"
StopTime "0.1"
Timeout ""
Solver "dopri"
MaxStep "1e-3"
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 "R = 1*cos(45*pi/180);\nL = sin(45/180*pi)/(2*pi*40);"
"\n\nF = 40;\nZ = R+1j*2*pi*F*L;\t% Complex impedance\n\nV = 1.0; \t\t\t\t% Vp"
"k,ln\nVrms = V/sqrt(2); \t% Vrms. Assume 0deg angle\nIrms = Vrms/Z;\t\t\t% c"
"omplex RMS phase current;\nImag = abs(Irms);\t\t\nIang = arg(Irms);\n\n% Init"
"ial instantaneous phase currents\nIa0= sqrt(2)*Imag*sin(Iang);\nIb0 = sqrt(2"
")*Imag*sin(Iang-2*pi/3);\nIc0 = sqrt(2)*Imag*sin(Iang+2*pi/3);\n\n\n%Note tha"
"t there are complex number calculations included \n% in the initialization co"
"mmands. The underlying Octave\n% engine is able to compute complex numbers, b"
"ut PLECS\n% cannot process them. A workaround exists where PLECS \n% can pass"
" the initialization commands to Octave for \n% evaluation, and then the compl"
"ex variables are cleared \n% from the workspace at the end of the initializat"
"ion \n% commands.\n\n\nclear('Z','Irms');"
InitialState "1"
SystemState ""
CodeGenParameterInlining "2"
CodeGenInliningExceptions "AAAACwAAAAAA"
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 [472, 487; 1447, 1053]
ZoomFactor 1.22144
SliderPosition [0, 0]
ShowBrowser off
BrowserWidth 100
Component {
Type ThreePhaseVoltageSource
Name "V_3ph"
Show on
Position [145, 175]
Direction up
Flipped off
Parameter {
Variable "V"
Value "V"
Show off
}
Parameter {
Variable "w"
Value "F"
Show off
}
Parameter {
Variable "phi"
Value "45*pi/180*0"
Show off
}
Parameter {
Variable "neutral"
Value "1"
Show off
}
}
Component {
Type Resistor
Name "R1"
Show on
Position [290, 85]
Direction up
Flipped off
Parameter {
Variable "R"
Value "R"
Show off
}
}
Component {
Type Inductor
Name "L1"
Show on
Position [290, 135]
Direction up
Flipped off
Parameter {
Variable "L"
Value "L"
Show off
}
Parameter {
Variable "i_init"
Value "Ia0"
Show off
}
}
Component {
Type Resistor
Name "R2"
Show on
Position [405, 75]
Direction up
Flipped off
Parameter {
Variable "R"
Value "R"
Show off
}
}
Component {
Type Inductor
Name "L2"
Show on
Position [405, 115]
Direction up
Flipped off
Parameter {
Variable "L"
Value "L"
Show off
}
Parameter {
Variable "i_init"
Value "Ib0"
Show off
}
}
Component {
Type Resistor
Name "R3"
Show on
Position [505, 80]
Direction up
Flipped off
Parameter {
Variable "R"
Value "R"
Show off
}
}
Component {
Type Inductor
Name "L3"
Show on
Position [505, 135]
Direction up
Flipped off
Parameter {
Variable "L"
Value "L"
Show off
}
Parameter {
Variable "i_init"
Value "Ic0"
Show off
}
}
Component {
Type Ground
Name "Ground"
Show off
Position [120, 230]
Direction up
Flipped off
}
Component {
Type Ammeter
Name "Am1"
Show on
Position [290, 220]
Direction up
Flipped off
}
Component {
Type Ammeter
Name "Am2"
Show on
Position [405, 215]
Direction up
Flipped off
}
Component {
Type Ammeter
Name "Am3"
Show on
Position [505, 220]
Direction up
Flipped off
}
Component {
Type PlecsProbe
Name "Probe"
Show off
Position [470, 315]
Direction right
Flipped off
}
Component {
Type Scope
Name "Scope"
Show on
Position [585, 315]
Direction up
Flipped off
Location [422, 237; 813, 465]
State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA"
"G0AQQByAGUAYQAAAAAA/////wAAAFwA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//"
"///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw"
"BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABCAP///wAAAYcAAADIAAAA"
"BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA"
"AAAAA=="
SavedViews "AAAAAgAAAAA="
HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAC"
"QAAAGQAAAAIAAAAZAAAAAcAAABkAAAABgAAAGQAAAAFAAAAZAAAAAQAAABkAAAAAwAAAGQAAAACAA"
"AAZAAAAAEAAABkAAAAvwAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAACsAAA"
"AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA"
"AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA"
"AATAAAAAQAAAAAAAAPoAAAAABM="
PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAA"
"AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
Axes "2"
TimeRange "0"
ScrollingMode "1"
SingleTimeAxis "1"
Open "0"
Ts "-1"
SampleLimit "0"
XAxisLabel ""
Axis {
Name "Voltage"
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
SignalTypes [ ]
AxisLabel "V"
Untangle 0
KeepBaseline off
BaselineValue 0
}
Axis {
Name "Current"
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
SignalTypes [ ]
AxisLabel "A"
Untangle 0
KeepBaseline off
BaselineValue 0
}
Fourier {
SingleXAxis on
AxisLabel "Frequency"
Scaling 0
PhaseDisplay 0
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
}
}
Component {
Type SignalDemux
Name "Demux"
Show off
Position [540, 315]
Direction right
Flipped on
Parameter {
Variable "Width"
Value "[3 3]"
Show off
}
}
Connection {
Type Wire
SrcComponent "V_3ph"
SrcTerminal 4
Points [120, 175]
DstComponent "Ground"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "L1"
SrcTerminal 2
DstComponent "Am1"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "Am3"
SrcTerminal 2
Points [505, 250; 405, 250]
Branch {
Points [290, 250]
DstComponent "Am1"
DstTerminal 2
}
Branch {
DstComponent "Am2"
DstTerminal 2
}
}
Connection {
Type Wire
SrcComponent "L2"
SrcTerminal 2
DstComponent "Am2"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "Am3"
SrcTerminal 1
DstComponent "L3"
DstTerminal 2
}
Connection {
Type Wire
SrcComponent "R1"
SrcTerminal 2
DstComponent "L1"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "V_3ph"
SrcTerminal 2
Points [335, 175; 335, 55]
DstComponent "R2"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "R3"
SrcTerminal 2
DstComponent "L3"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "V_3ph"
SrcTerminal 3
Points [170, 185; 170, 270; 620, 270; 620, 60]
DstComponent "R3"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "R2"
SrcTerminal 2
DstComponent "L2"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "Demux"
SrcTerminal 2
DstComponent "Scope"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "Demux"
SrcTerminal 3
DstComponent "Scope"
DstTerminal 2
}
Connection {
Type Signal
SrcComponent "Probe"
SrcTerminal 1
DstComponent "Demux"
DstTerminal 1
}
Connection {
Type Wire
SrcComponent "R1"
SrcTerminal 1
Points [290, 55; 175, 55; 175, 165]
DstComponent "V_3ph"
DstTerminal 1
}
}
ProbeBlock {
Tag "datei_edited/Probe"
Probe {
Component "V_3ph"
Path ""
Signals {"Source voltage"}
}
Probe {
Component "Am1"
Path ""
Signals {"Measured current"}
}
Probe {
Component "Am2"
Path ""
Signals {"Measured current"}
}
Probe {
Component "Am3"
Path ""
Signals {"Measured current"}
}
}
}
DemoSignature "dAMOkLU0qaTuarlkqciVul3CGIcWqb+xlmEIIlenZ24="