Chapter 11 : Distribution System Reliability

Example 11.1 Page No : 598

In [1]:
# Variables
Rsys = 0.99         #Minimum Acceptable System Reliabilty
n = 15.;         #Number of identical Components

# Calculations
q = (1-Rsys)/n;         #Probability of component failure
Ri = 1-q;         #Approximate value of the component reliability

# Results
print 'The Approximate Value of The component reliability is %g'%(Ri)
The Approximate Value of The component reliability is 0.999333

Example 11.2 Page No : 606

In [2]:
# Variables
L = 4.;         #Total Length of the cable
Lov = 3.;        #Length of Overhead Cable
Lu = L-Lov;         #Length of Underground Cable
Nct = 2.;         #Number of circuit terminations
T = 10.;         #No of years for which the record is shown

Fov = 2.;         # Faults Per Mile of the Over Head Cable
Fu = 1.;         #Faults Per Mile of The Underground cable

Ct = 0.3/100        # Cable Termination Fault Rate

#Repair Time
Tov = 3.;         #Over Head
Tu = 28.;         #Underground
Tct = 3.;         #Cable Termination

# Calculations
lamdaFDR =  (Lov*Fov/T)+(Lu*Fu/T)+(2*Ct);         #Total Annual Fault Rate
rFDR = ((Tov*Lov*Fov/T)+(Tu*Lu*Fu/T)+(2*Ct*Tct))/lamdaFDR;         #Annual Fault Restoration Time
mFDR = 8760-rFDR;         #Annual Mean Time of Failure
UFDR = rFDR*100/(rFDR+mFDR);         #Unavailability of Feeder
AFDR = 100-UFDR;         #Availability of Feeder

# Results
print 'a) The Total Annual Fault Rate is %g faults per year'%(lamdaFDR)
print 'b) The Annual Fault Restoration Time is %g hours per fault per year'%(rFDR)
print 'c) Unavailability of the feeder is %g percent'%(UFDR)
print 'd) Availability of the feeder is %g percent'%(AFDR)
a) The Total Annual Fault Rate is 0.706 faults per year
b) The Annual Fault Restoration Time is 6.54108 hours per fault per year
c) Unavailability of the feeder is 0.0746698 percent
d) Availability of the feeder is 99.9253 percent

Example 11.3 Page No : 608

In [3]:
import math 

# Variables
#Annual average Fault rates
Fm = 0.08;
Fl = 0.2;


#Average Repair Times
Rm = 3.5;         #Main
Rl = 1.5;         #Lateral
Rs = 0.75;        #Manual Sections

# Dismath.tances of the Lateral Feeders of A,B, and C respectively
Lla = 2.;
Llb = 1.5;
Llc = 1.5;

# Dismath.tances of the Main Feeders of A,B, and C respectively
Lma = 1.;
Lmb = 1.;
Lmc = 1.;

# Calculations
TFm = (Lma*Fm)+(Lmc*Fm)+(Lmb*Fm);         #Annual Fault of the Main Sections

def SusInt(y): 
    return TFm+(Fl*y)

#Sustained Interruption Rates for A,B and C
IrA = SusInt(Lla);
IrB = SusInt(Llb);
IrC = SusInt(Llc);

#Annual Repair time for A,B and C
rA = ((Lma*Fm*Rm)+(Lmb*Fm*Rs)+(Lmc*Fm*Rs)+(Lla*Fl*Rl))/IrA;
rB = ((Lma*Fm*Rm)+(Lmb*Fm*Rm)+(Lmc*Fm*Rs)+(Llb*Fl*Rl))/IrB;
rC = ((Lma*Fm*Rm)+(Lmb*Fm*Rm)+(Lmc*Fm*Rm)+(Llc*Fl*Rl))/IrC;

# Results
print 'i The Annual Sustained Interruption Rates for:'
print 'Customer A : %g faults per year'%(IrA)
print 'Customer B : %g faults per year'%(IrB)
print 'Customer C : %g faults per year'%(IrC)
print 'ii The Average Annual Repair Time Restoration Time for:'
print 'Customer A : %g hours per fault per year'%(rA)
print 'Customer A : %g hours per fault per year'%(rB)
print 'Customer A : %g hours per fault per year'%(rC)
i The Annual Sustained Interruption Rates for:
Customer A : 0.64 faults per year
Customer B : 0.54 faults per year
Customer C : 0.54 faults per year
ii The Average Annual Repair Time Restoration Time for:
Customer A : 1.5625 hours per fault per year
Customer A : 1.98148 hours per fault per year
Customer A : 2.38889 hours per fault per year

Example 11.4 Page No : 612

In [5]:
import math 

# Variables
Ri = 0.85;

def relp(y,z):
    return 1-((1-(Ri**y))**z)        #Equal Parallel Combination

def rels(y,z):
    return (1-((1-Ri)**y))**z         #Equal Series Combination

# Calculations
#Case 1: 4 elements in series

Req1 =  rels(1,4);

#Case 2: Two Comination of 4 elements in series, parallel to each other

Req2 = relp(4,2);

#Case 3 : ((two elements in series)        #(two elements in series))in series with ((two elements in series)        #(two elements in series))

#Two Segments
R1 = relp(2,2);
R2 = relp(2,2);
Req3 = R1*R2;

#Case 4 : (two elements in parallel)in series with ((three elements in series)        #(three elements in series))

#Two Segments
R1 = relp(1,2);
R2 = relp(3,2);
Req4 = R1*R2;

#Case 5, 4 groups of (2 elements in parallel) connected in series to each other
Req5 = rels(2,4);

# Results
print 'The Equivalent System reliability for:'
print 'a) Configuration A : %g'%(Req1)
print 'b) Configuration B : %g'%(Req2)
print 'c) Configuration C : %g'%(Req3)
print 'd) Configuration D : %g'%(Req4)
print 'e) Configuration E : %g'%(Req5)
The Equivalent System reliability for:
a) Configuration A : 0.522006
b) Configuration B : 0.771522
c) Configuration C : 0.851917
d) Configuration D : 0.831951
e) Configuration E : 0.912992

Example 11.5 Page No : 614

In [7]:
import math 
#To Design the system to meet the given Equivalent System Reliability
#Page 614

# Variables
#Individual System Reliabilities
Ra = 0.8;
Rb = 0.95;
Rc = 0.99;
Rd = 0.90;
Re = 0.65;

# Calculations
#When All Are Connected in Series

Req = Ra*Rb*Rc*Rd*Re;         #Equivalent System Reliability

Rr = 0.8;         #Required

Rae = Rr/(Rb*Rc*Rd);

#Since Connecting the elements in parallel will increase their reliability
def rel(Ri,y,):
    return  (1-((1-Ri)**y))         #Equal Only Parallel Combination

#Since Connecting the elements in parallel will increase their reliability
#Conditions to Find The Number of Elements to be used
for i in range(1,11):
    L = i;         #Number of Time Element A is used
    R1 = rel(Ra,i);
    X = R1-Rae;
    if(abs(X)+X == 0):
        continue;
    else:
        break;

for i in range(1,11):
    M = i;        #Number of Time Element E is used
    R2 = rel(Re,i);
    X = R2-Rae;
    if(abs(X)+X == 0):
        continue;
    else:
        break;

print 'a) The Equivalent system Reliability is %g'%(Req)
print 'b) One Each of B,C and D all connected in series are connected in serieswith the series combination of XComination of\
 %g elements of A, \nAll Connected in Parallel)and YComination of %g elements of E, \nAll Connected in Parallel) to\
  achieve %g Equivalent System Realibility'%(L,M,Rr)
a) The Equivalent system Reliability is 0.440154
b) One Each of B,C and D all connected in series are connected in serieswith the series combination of XComination of 2 elements of A, 
All Connected in Parallel)and YComination of 3 elements of E, 
All Connected in Parallel) to  achieve 0.8 Equivalent System Realibility

Example 11.6 Page No : 614

In [8]:
import math 
#To Find The Probability on the reliability of transformers
#Page 614

# Variables
#Reliabilities of The Three Transformers
Pa = 0.9;
Pb = 0.95;
Pc = 0.99;

#Faliures of Three Transformers
Qa = 1-Pa;
Qb = 1-Pb;
Qc = 1-Pc;

# Calculations
#Probability of NO Transformer Failing
Pnf = Pa*Pb*Pc;

PfA = Qa*Pb*Pc        #Probability of Transformer A Failing
PfB = Pa*Qb*Pc        #Probability of Transformer B Failing
PfC = Pa*Pb*Qc        #Probability of Transformer C Failing

PfAB = Qa*Qb*Pc        #Probability of Transformer A and B Failing
PfBC = Pa*Qb*Qc        #Probability of Transformer B and C Failing
PfCA = Qa*Pb*Qc        #Probability of Transformer C and A Failing

Pf = Qa*Qb*Qc;         #Probability of All Transformers failing

# Results
print 'a) Probability of No Transformer Failing is %g'%(Pnf)
print 'b'
print 'Probability of Transformer A Failing is %g'%(PfA)
print 'Probability of Transformer B Failing is %g'%(PfB)
print 'Probability of Transformer C Failing is %g'%(PfC)
print 'c'
print 'Probability of Transformers A and B Failing is %g'%(PfAB)
print 'Probability of Transformers B and C Failing is %g'%(PfBC)
print 'Probability of Transformers C and A Failing is %g'%(PfCA)
print 'd) Probability of All Three Transformers Failing is %g'%(Pf)
a) Probability of No Transformer Failing is 0.84645
b
Probability of Transformer A Failing is 0.09405
Probability of Transformer B Failing is 0.04455
Probability of Transformer C Failing is 0.00855
c
Probability of Transformers A and B Failing is 0.00495
Probability of Transformers B and C Failing is 0.00045
Probability of Transformers C and A Failing is 0.00095
d) Probability of All Three Transformers Failing is 5e-05

Example 11.7 Page No : 619

In [9]:
import math 
#To Determine Probabilities Using Markovian Principle
#Page 619

# Variables
#Conditional Probabilites Present Future
Pdd = 2./100;         #Down Down
Pud = 5./100;         #Up Down
Pdu = 1-Pdd;         #Down up
Puu = 1-Pud;         #Up Up

# Calculations
P = [[Pdd,Pdu],[Pud,Puu]];         #Transition Matrix

# Results
print 'a The Conditional Probabilites for'
print 'Transformers Down in Present and Down in Future is %g'%(Pdd)
print 'Transformers Down in Present and Up in Future is %g'%(Pdd)
print 'Transformers Up in Present and Down in Future is %g'%(Pdd)
print 'Transformers Up in Present and Up in Future is %g'%(Pdd)
print 'b The Transition Matrix is',
print (P)
print 'c The Transition Diagram can be viewed with the result file attached to this code'
a The Conditional Probabilites for
Transformers Down in Present and Down in Future is 0.02
Transformers Down in Present and Up in Future is 0.02
Transformers Up in Present and Down in Future is 0.02
Transformers Up in Present and Up in Future is 0.02
b The Transition Matrix is [[0.02, 0.98], [0.05, 0.95]]
c The Transition Diagram can be viewed with the result file attached to this code

Example 11.8 Page No : 620

In [11]:
import math 
#To Determine the Conditional Outage Probabilites
#Page 620

# Calculations
#Conditional Outage Probabilites From The Table Given
P11 = 40./100;
P12 = 30./100;
P13 = 30./100;
P21 = 20./100;
P22 = 50./100;
P23 = 30./100;
P31 = 25./100;
P32 = 25./100;
P33 = 50./100;

#Transition Matrix
P = [[P11,P12,P13],[P21,P22,P23],[P31,P32,P33]];

print "a The Conditional Outage Probabilites for:"
print "Presently Outaged Feeder is 1, Next Outaged Feeder is 1 is %g"%(P11)
print "Presently Outaged Feeder is 1, Next Outaged Feeder is 2 is %g"%(P12)
print "Presently Outaged Feeder is 1, Next Outaged Feeder is 3 is %g"%(P13)
print "Presently Outaged Feeder is 2, Next Outaged Feeder is 1 is %g"%(P21)
print "Presently Outaged Feeder is 2, Next Outaged Feeder is 2 is %g"%(P22)
print "Presently Outaged Feeder is 2, Next Outaged Feeder is 3 is %g"%(P23)
print "Presently Outaged Feeder is 3, Next Outaged Feeder is 1 is %g"%(P31)
print "Presently Outaged Feeder is 3, Next Outaged Feeder is 2 is %g"%(P32)
print "Presently Outaged Feeder is 3, Next Outaged Feeder is 3 is %g"%(P33)
print "b Transition Matrix is"
print (P)
print "c The Transition figure is print layed in the result file attached to this code"
a The Conditional Outage Probabilites for:
Presently Outaged Feeder is 1, Next Outaged Feeder is 1 is 0.4
Presently Outaged Feeder is 1, Next Outaged Feeder is 2 is 0.3
Presently Outaged Feeder is 1, Next Outaged Feeder is 3 is 0.3
Presently Outaged Feeder is 2, Next Outaged Feeder is 1 is 0.2
Presently Outaged Feeder is 2, Next Outaged Feeder is 2 is 0.5
Presently Outaged Feeder is 2, Next Outaged Feeder is 3 is 0.3
Presently Outaged Feeder is 3, Next Outaged Feeder is 1 is 0.25
Presently Outaged Feeder is 3, Next Outaged Feeder is 2 is 0.25
Presently Outaged Feeder is 3, Next Outaged Feeder is 3 is 0.5
b Transition Matrix is
[[0.4, 0.3, 0.3], [0.2, 0.5, 0.3], [0.25, 0.25, 0.5]]
c The Transition figure is print layed in the result file attached to this code

Example 11.9 Page No : 624

In [16]:
import math 
from numpy import array

# Variables
P = array([[0.6,0.4],[0.3,0.7]]);         #One Step Transition Matrix

Po = array([0.8,0.2]);         #Initial State Probability Vector

# Calculations
#Funtion to determine the Vector of State Probability
def VSP(y): 
    return (Po*(P**y))

P1 = VSP(1);         #Vector of State Probability at Time t1
P4 = VSP(4);         #Vector of State Probability at Time t4
P8 = VSP(8);         #Vector of State Probability at Time t8

# Results
print 'a The Vector of State Probability at time t1 is',
print (P1)
print 'a The Vector of State Probability at time t4 is',
print (P4)
print 'a The Vector of State Probability at time t8 is',
print (P8)
a The Vector of State Probability at time t1 is [[ 0.48  0.08]
 [ 0.24  0.14]]
a The Vector of State Probability at time t4 is [[ 0.10368  0.00512]
 [ 0.00648  0.04802]]
a The Vector of State Probability at time t8 is [[  1.34369280e-02   1.31072000e-04]
 [  5.24880000e-05   1.15296020e-02]]