Spec:Mesh Fault Current

When approved remove this tag.

= Overview =

Mesh Fault analysis (zFault method) capability in GridLAB-D will be implemented to perform fault studies for unbalanced mesh systems. These simulations will calculate Fault current and Fault voltage at a particular node where a certain type of fault is introduced at a node or a line.

= Variable Definitions and Equations =

Important equations and definitions that are relevant to Mesh Fault implementation in GridLAB-D:

Equations
This section describes some of the important equations used in drafting out this algorithm. The flow is along the lines of the algorithm design itself i.e., the equations of Y and Z bus; fault equations; fault-boundary conditions extracted from [2]

\displaystyle{}Y_s & \displaystyle{}Y_m & \displaystyle{}Y_m\\ \displaystyle{}Y_m & \displaystyle{}Y_s & \displaystyle{}Y_m\\ \displaystyle{}Y_m & \displaystyle{}Y_m & \displaystyle{}Y_s \end{bmatrix} $$ \displaystyle{}Y_s & \displaystyle{}Y_m\\ \displaystyle{}Y_m & \displaystyle{}Y_s \end{bmatrix} $$ \displaystyle{}Y_s \end{bmatrix} $$ \displaystyle{}Y_{11} & \displaystyle{}Y_{12} & \cdots & \displaystyle{}Y_{1M}\\ \displaystyle{}Y_{12} & \displaystyle{}Y_{22} & \cdots & \displaystyle{}Y_{2M}\\ \vdots & \vdots & & \vdots\\ \displaystyle{}Y_{M1} & \displaystyle{}Y_{M2} & \cdots & \displaystyle{}Y_{MM} \end{bmatrix} $$ \displaystyle{}Z{^N_{Th}} & \displaystyle{}I_{3x3}\\ \displaystyle{}C_{I3\phi} & \displaystyle{}C_{V3\phi} \end{bmatrix} \begin{bmatrix} \displaystyle{}I{^N_{Fault}}\\ \displaystyle{}V{^N_{Fault}} \end{bmatrix} = \begin{bmatrix} \displaystyle{}V{^S_{Th}}\\ 0 \end{bmatrix} $$ \displaystyle{}Z{^N_{Th}} & \displaystyle{}I_{2x2}\\ \displaystyle{}C_{I2\phi} & \displaystyle{}C_{V2\phi} \end{bmatrix} \begin{bmatrix} \displaystyle{}I{^N_{Fault}}\\ \displaystyle{}V{^N_{Fault}} \end{bmatrix} = \begin{bmatrix} \displaystyle{}V{^S_{Th}}\\ 0 \end{bmatrix} $$ \displaystyle{}Z{^N_{Th}} & 1\\ \displaystyle{}C_{I1\phi} & \displaystyle{}C_{V1\phi} \end{bmatrix} \begin{bmatrix} \displaystyle{}I{^N_{Fault}}\\ \displaystyle{}V{^N_{Fault}} \end{bmatrix} = \begin{bmatrix} \displaystyle{}V{^S_{Th}}\\ 0 \end{bmatrix} $$
 * 1) Primitive admittance matrices:
 * 2) Three Phase ($$\displaystyle{}Y_{ph_3}$$):
 * $$\begin{bmatrix}
 * 1) Two Phase ($$\displaystyle{}Y_{ph_2}$$):
 * $$\begin{bmatrix}
 * 1) One Phase ($$\displaystyle{}Y_{ph_1}$$):
 * $$\begin{bmatrix}
 * 1) Y-Bus:
 * $$\begin{bmatrix}
 * 1) Invert Y-bus to get Z-bus:
 * $$\displaystyle{}Z=(Y^{-1})$$
 * 1) Fault Equations:
 * 2) Three phase fault at node-N:
 * $$\begin{bmatrix}
 * 1) Two phase fault at node-N:
 * $$\begin{bmatrix}
 * 1) One phase fault at node-N:
 * $$\begin{bmatrix}
 * 1) Refer below for  $$\displaystyle{}C_{I_{phase}\phi}$$ and $$\displaystyle{}C_{V_{phase}\phi}$$matrices:
 * Faults table.png

= Methodology = The step-by-step description below can be used a pseudo-code while implementing this in GridLAB-D. First part of this section focuses on step-by-step instructions and associated notes that is required to program this in GridLAB-D; Second part of this section is the flow-chart which is a direct sequential representation of the pseudo-code; Third part of this section is an example worked out in MATLAB. The results of this example were compared against the results generated by Fortescue algorithm described in [2]

Instructions
\displaystyle{}I_{3x3} & \displaystyle{}0_{3x3} & \cdots & \displaystyle{}0_{3x3}\\ \displaystyle{}Y_{12} & \displaystyle{}Y_{22} & \cdots & \displaystyle{}Y_{2M}\\ \vdots & \vdots & & \vdots\\ \displaystyle{}Y_{M1} & \displaystyle{}Y_{M2} & \cdots & \displaystyle{}Y_{MM} \end{bmatrix} $$
 * 1) Extract voltage at swing node ($$\displaystyle{}V{^s_{Th}}$$) from GridLAB-D
 * 2) Extract Z-bus. Then extract Thevenin's impedance matrix at node-N ($$\displaystyle{}Z{^N_{Th}}$$) and use it in "4. Fault Equations" in Equations section. For explicit extraction, see the optional steps below:
 * 3) Extract Y-bus (Y) from GridLAB-D
 * 4) Replace $$\displaystyle{}1^{st}$$ element of the matrix i.e., Row-1, Column-1 with identity matrix (I). It can be 3x3 or 2x2 or 1x1 depending up on the phase of swing node)
 * 5) Replace remaining elements of Row-1 with zero matrices with the same order of above identity matrix.
 * After the above modifications, for a 3-phase swing node the Y-bus looks like:
 * $$\begin{bmatrix}
 * 1) Invert Y-bus to get Z-bus
 * 2) Extract Thevenin's impedance matrix at node-N:
 * $$\displaystyle{}Z{^N_{Th}}=Z(\displaystyle{}N{^{start}_{row}}:\displaystyle{}N{^{end}_{row}},\displaystyle{}N{^{start}_{column}}:\displaystyle{}N{^{end}_{column}})$$
 * 1) Use the above $$\displaystyle{}Z{^N_{Th}}$$ in "4. Fault Equations" in Equations section
 * 2) Extract the phase information of the node where the fault is to be introduced. Based on that information, introduce fault boundary conditions in “4. Fault Equations” based on the table in Equations section
 * 3) Define fault impedance ($$\displaystyle{}Z_{f}$$) in "4. Fault Equations" in Equations section
 * 4) Introduce Swing bus voltage ($$\displaystyle{}V{^s_{Th}}$$) in "4. Fault Equations" in Equations section
 * 5) Calculate Fault Current ($$\displaystyle{}I{^N_{Fault}}$$) and Fault Voltage ($$\displaystyle{}V{^N_{Fault}}$$)

Flow Chart
This sub-section is the translated form of Instructions sub-section. Information in below flow-chart is phrased along the lines of Instructions.



Example
Two simple systems are constructed in MATLAB:


 * 1) Three phase three node three line mesh system
 * 2) Three phase three node two line radial system.

Fault analysis was performed on these systems by using both zFault method and Fortescue [2] method and the results are compared. The tests were performed for Single Line to Ground (SLG) Fault at A, B, C and for Line to Line (LL) Fault between A-B, B-C, C-A and results from both the methods matched for SLG and LL faults i.e., both the algorithms are tested for six types of faults. There is no change in the overall algorithm except that you use a different Y-bus for different system - In step.4 below, two Y-bus matrices are shown (first Y-bus matrix is for the mesh system example model and the second Y-bus matrix that is shown under "Note" in step.4 is for the radial system example model). This code can be used as is in MATLAB to test the results.

0.152 + 0.535i & 0.036 + 0.323i & 0.036 + 0.275i\\ 0.036 + 0.323i & 0.152 + 0.535i & 0.036 + 0.296i\\ 0.036 + 0.275i & 0.036 + 0.296i & 0.152 + 0.535i \end{bmatrix}$$ 0.266 + 0.937i & 0.063 + 0.564i & 0.063 + 0.482i\\ 0.063 + 0.564i & 0.266 + 0.937i & 0.063 + 0.517i\\ 0.063 + 0.482i & 0.063 + 0.517i & 0.266 + 0.937i \end{bmatrix}$$ 0.266 + 0.937i & 0.063 + 0.564i & 0.063 + 0.482i\\ 0.063 + 0.564i & 0.266 + 0.937i & 0.063 + 0.517i\\ 0.063 + 0.482i & 0.063 + 0.517i & 0.266 + 0.937i \end{bmatrix}$$ \displaystyle{}I_{3x3} & \displaystyle{}0_{3x3} & \displaystyle{}0_{3x3}\\ \displaystyle{}-y_{12} & \displaystyle{}y_{12}+\displaystyle{}y_{23} & \displaystyle{}-y_{23}\\ \displaystyle{}-y_{13} & \displaystyle{}-y_{23} & \displaystyle{}y_{13}+\displaystyle{}y_{23} \end{bmatrix}$$ \displaystyle{}I_{3x3} & \displaystyle{}0_{3x3} & \displaystyle{}0_{3x3}\\ \displaystyle{}-y_{12} & \displaystyle{}y_{12}+\displaystyle{}y_{23} & \displaystyle{}-y_{23}\\ \displaystyle{}0_{3x3} & \displaystyle{}-y_{23} & \displaystyle{}y_{23} \end{bmatrix}$$ 4160\\ 4160\cos(-\theta)+4160\sin(-\theta)\\ 4160\cos(\theta)+4160\sin(\theta) \end{bmatrix}$$ 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & \displaystyle{}-Z_f \end{bmatrix} $$ 0 & 0 & 0\\ 0 & 0 & 0\\ 0 & 0 & 1 \end{bmatrix} $$ \displaystyle{}Z{^3_{Th}} & \displaystyle{}I_{3x3}\\ \displaystyle{}C_{I3\phi} & \displaystyle{}C_{V3\phi} \end{bmatrix} $$ \displaystyle{}V{^s_{Th}}\\ \displaystyle{}0_{3x1} \end{bmatrix} $$
 * 1) For a mesh system that looks like below (all the three lines are ABCN phase) where node-1 is the swing node. For the sake of this example, the voltage at Swing node is 4160V.
 * MeshExample.png
 * 1) Obtain the line impedance matrices ($$\displaystyle{}z_{12},\displaystyle{}z_{23},\displaystyle{}z_{13}$$) from GridLAB-D. Example:
 * $$\displaystyle{}z_{12}=\begin{bmatrix}
 * $$\displaystyle{}z_{23}=\begin{bmatrix}
 * $$\displaystyle{}z_{13}=\begin{bmatrix}
 * 1) Invert the above line impedance matrices to primitive admittance matrices ($$\displaystyle{}y_{12},\displaystyle{}y_{23},\displaystyle{}y_{13}$$):
 * $$\displaystyle{}y_{12}=inv(\displaystyle{}z_{12})$$
 * $$\displaystyle{}y_{23}=inv(\displaystyle{}z_{23})$$
 * $$\displaystyle{}y_{13}=inv(\displaystyle{}z_{13})$$
 * 1) Obtain Y-bus (see Figure.3 for Mesh system):
 * $$\displaystyle{}Y=\begin{bmatrix}
 * 1) NOTE: If we have a radial system that looks like in Figure.4, the Y-bus looks like this:
 * RadialExample.png
 * $$\displaystyle{}Y=\begin{bmatrix}
 * 1) Obtain pre-fault voltage at swing node from GridLAB-D. For the sake of this example, we are defining the voltage as 4160V:
 * $$\theta=\frac{2\pi{}}{3}$$
 * $$\displaystyle{}V{^s_{Th}}=\begin{bmatrix}
 * 1) Since all the nodes and lines in our system are 3-phase, each element in the Y-bus is a 3x3 matrix. Therefore the size of Y-bus is a 9x9 matrix. All the diagonal elements represent self-admittance matrices (Example: $$\displaystyle{}y_{11}$$ that represents Y(1:3,1:3) is for node-1, $$\displaystyle{}y_{22}$$ that represents Y(4:6,4:6) is for node-2, $$\displaystyle{}y_{33}$$ that represents Y(7:9,7:9) is for node-3. The non-diagonal 3x3 matrix-elements in Y such as $$\displaystyle{}y_{12}$$ that represents Y(1:3,4:6) etc are mutual admittance matrix-elements). In this example, we are going to introduce fault at node-3. Therefore to obtain the impedance at node-3 which is $$\displaystyle{}Z_{33}$$:
 * 2) Invert Y-bus to find Z-bus:
 * $$ Z=inv(Y)$$
 * 1) Extract the impedance matrix at node-3 i.e., Z(7:9,7:9) which is self-impedance matrix at node-3:
 * $$\displaystyle{}Z{^3_{Th}}=Z(7:9,7:9)$$
 * 1) Set the fault impedance ($$\displaystyle{}Z_f$$) and find Fault current at node-3 ($$\displaystyle{}I{^3_{Fault}}$$); Fault voltage at node-3 ($$\displaystyle{}V{^3_{Fault}}$$).
 * 2) Set the fault impedance ($$\displaystyle{}Z_f$$), swing bus voltage ($$\displaystyle{}V{^s_{Th}}$$), "Fault-boundary conditions" in “4. Fault Equations” in Equations section. In this example, we introduce Single Line to Ground (SLG) fault at node-3 at phase-C:
 * 3) Define Fault impedance ($$\displaystyle{}Z_f$$):
 * $$\displaystyle{}Z_f=0$$
 * 1) Define Fault-boundary conditions matrices:
 * $$\displaystyle{}C_{I3\phi}=\begin{bmatrix}
 * $$\displaystyle{}C_{V3\phi}=\begin{bmatrix}
 * 1) Compute the first matrix on LHS of "4. Fault Equations" in Equations section:
 * $$\displaystyle{}C_F=\begin{bmatrix}
 * 1) Compute RHS of "4. Fault Equations" in Equations section:
 * $$\displaystyle{}V{^F_{RHS}}=\begin{bmatrix}
 * 1) Multiply the inverse of $$\displaystyle{}C_F$$ with $$\displaystyle{}V{^F_{RHS}}$$:
 * $$\displaystyle{}currIvoltV_{Fault}=inv(\displaystyle{}C_F)*\displaystyle{}V{^F_{RHS}}$$
 * 1) Obtain Fault current at node-3 ($$\displaystyle{}I{^3_{Fault}}$$):
 * $$\displaystyle{}I{^3_{Fault}}=\displaystyle{}currIvoltV_{Fault}(1:3)$$
 * 1) Obtain Fault voltage at node-3 ($$\displaystyle{}V{^3_{Fault}}$$):
 * $$\displaystyle{}V{^3_{Fault}}=\displaystyle{}currIvoltV_{Fault}(4:6)$$

= Validation =


 * 1) Our validation results shown below are from MATLAB and the Fortescue approach [2], with a MATLAB implementation for initial feasibility testing. Line impedance matrices (and Y-bus) from Example is used to perform zFault and Fortescue Test results.
 * 2) Actual validation will be against the GridLAB-D-implemented model to make sure it matches.
 * 3) Results from initial MATLAB validation tests:

= References =
 * 1) P.A.N. Garcia, J.L.R. Pereira, M.P.Vinagre, E.J.Oliveira, “Fault Analysis Using Continuation Power Flow and Phase Coordinates”
 * 2) Rabih A. Jabr, Izudin Dzafic, “A Fortescue Approach for Real-Time Short Circuit Computation in Multiphase Distribution Networks”
 * 3) If you want to learn more about the background information and Fortescue approach related details, please grab [1], [20], [21]. They have in-depth information about the method.

= See also =


 * Requirements
 * User's Manual