You are on page 1of 5

%FORMULAE:

%GMD=(DAB.DBC.DCA. )
^(1/
3)
%Wher
eDAB=( Dab.Dab'
.Da'b.Da'b'
)1/
4 si
mil
arl
yDBCandDCA.
%GMRa=?(Daa'
.r'
)
%GMRb=?(Dbb'.r
')
%GMRc=?(Dcc'
.r'
)
%GMRL=(GMRa .GMRb.GMRc) ^1/3

%Thei
nductanceperphasei nmi
ll
i
henri
esperkil
ometer
si sgi
venby
%L=0.2lnGMD/ GMRL
%%Thecapacitanceperphasei
nmicrof
aradsperki
l
omet ersi
sgiv
enby
%C=0.0556/
(lnGMD/ GMRC)

fpr
int
f('
DOUBLE CI
RCUI
T THREE PHASE TRANSPOSED TRANSMI
SSI
ON LI
NE PARAMETERS
CALCULATION(TWOBUNDLE)'
);

%fprint
f('
\n\t
\tChoosethety
peofconduct orfr
om thel
i
stbelow:'
);
%fprint
f('
\n1)Partr
idge 11)Ost r
ich\n2)Merli
n 12)Linnet\
n3)Or i
ole 13)
Chickadee\n4)Ibis 14)Flicker
\n5)Hawk 15)Hen\n6)Osprey 16)
Parakeet\n7)Dov e 17)Rook\ n8)Grosbeak 18)DrakeTer n\n9)Rai
l 19)
Bl
uebi r
d\ n10)Bluejay 20)Kiwi ')
;

%$o=i
nput(
'\n-Ent
eryouropti
on:
')
;
%swit
ch(
o);
%case1
%fprintf
('
\n\
n*DI STANCEMEASUREMENTS:
'
);
% D=
% GMR=
%case2
% D=
% GMR=
%case3
% D=
% GMR=
%end

D=0.
044069;
GMR=0.017374;

fpr
int
f('
\n\
tCHOOSETHEDESI REDCI RCUITARRANGEMENT: '
);
fpr
int
f('
\n-
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
')
;% Repr
esent
ati
on ofbot
hthe t
ransmi
sion l
i
ne
cir
cui
t.

f
pri
ntf
('
\n\nCIRCUI TARRANGEMENT1\ t\
t\t
\tCIRCUITARRANGEMENT2\
n')
f
pri
ntf
('
\n\n[a1]--
-<x>-
--[
c2]\
t\t
\t\t
[a1]--
-<x>-
--[
a2]'
);
f
pri
ntf
('
\n |\t\t
\t\
t| \
t\t
\t\
t\t
|\t
\t\
t\t| '
);
f
pri
ntf
('
\n |\t\t
\t\
t| \
t\t
\t\
t\t
|\t
\t\
t\t| '
);
f
pri
ntf
('
\n<p>\t\
t\t
\ t|\t\
t\t
\t\
t<p>\t\t
\t\
t| '
);
f
pri
ntf
('
\n |\t\t
\t\
t| \
t\t
\t\
t\t
|\t
\t\
t\t| '
);

f
pri
ntf
('
\n[
b1]-
--<y>-
--[
b2]\t
\t\
t\t
[b1]-
--
<y>-
--[
b2]
'
);
f
pri
ntf
('
\n |
\t\
t\t\
t| \
t\t
\t\
t\t
|\t
\t\
t\t|')
;
f
pri
ntf
('
\n |\t\
t\t
\t| \
t\t
\t\
t\t
|\t
\t\t
\t| ')
;
f
pri
ntf
('
\n<q>\t
\t\
t\t|\t\
t\t
\t\
t<q>\t\
t\t\t| '
);
f
pri
ntf
('
\n |\t\
t\t
\t| \
t\t
\t\
t\t
|\t
\t\t
\t| ')
;
f
pri
ntf
('
\n[c1]-
--
<z>-
--[
a2]\t
\t\
t\t
[c1]--
-<z>-
--[
c2]\
n\t
')
;

x1=i
nput('
\nWishtochooseoption[
1(or
)2]?');
swit
ch(x1)
case1
fpri
ntf
('
\n\n You hav
e chose opt
ion 1.
Ent
ert
he v
alue off
oll
owi
ng par
amet
ersi
n
METERS( m)only'
);

%Aski
ngforthei
nputpar
ameter
s
e=i
nput
('
\n\
t->It
sa2bundleconduct
or.Ent
ert
heBundl
espaci
ng:
');

y
1=i
nput
('
\n\
n->Horizont
al Di
stanceofseparat
ion(x):
');
y
2=i
nput
('
\n->Hor
izontalDist
anceofseparati
on(y):'
);
y
3=i
nput
('
\n->Hor
izontalDist
anceofseparati
on(z):'
);
y
4=i
nput
('
\n->Ver
ti
cal Di
stanceofseparat
ion(p):
');
y
5=i
nput
('
\n->Ver
ti
cal Di
stanceofseparat
ion(q):'
);

i
f(y
2>y1)
y
6=(
y2-
y1)
/2;
el
se
y
6=(
y1-
y2)
/2;
end

i
f(
y3>y2)
y7=(
y3-
y2)
/2;
el
se
y7=(
y2-
y3)
/2;

end
i
f(y
1>y3)
y
8=(
y1-
y3)
/2;
el
se
y
8=(
y3-
y1)
/2;
end

%Calculati
ngi ndi
v i
dual di
stancebet
weenev
eryconduct
or
z1=(
y 4^2+(y
6) ^2)
^ (
1/ 2)
;
z2=(
(y 4+y5)
^ 2+(y8)^2)^
(1/2);
z3=(
(y 4+y5)
^ 2+(y3-
y8) ^
2)^(1/2)
;
z4=(
(y 2-
y6)^2+(y4)^2)^(
1/2) ;
z5=(
y 7^2+(y
5) ^2)
^ (
1/ 2)
;
z6=(
(y 2-
y7)^2+(y4)^2)^(
1/2) ;

ckt
2=[
' a1 c2 '
'Cir
cuitArr
angement .
O--
--
--
--
--
--
-O '
'--
--
--
--
--
--
--
--
--
-- .| . . | . '
' .| . |. '
' b1 | . . | b2 '
' O--
--
---
--
--
--
--
--
--
O '
' .| . . | . '
' .| . |
. '
' c1|. .a2| '
' O--
--
--
--
--
-O '
]
;
di
sp(
ckt
2)

fpr
intf
('\
n\n*DI STANCEMEASUREMENTS: '
);
fpr
intf
('\
n\t|
---
--
--
--
--
--
--
---
---
--
--
--|
--
--
--
---
---
--
|'
);
fpr
intf
('\
n\t|1)D(a1b1,b1a1,b2c2,c2b2)|:%fm |'
,
z1);
fpr
intf
('\
n\t|2)D(a1c1,c1a1,a2c2,c2a2)|:%fm |'
,
z2);
fpr
intf
('\
n\t|3)D(a1a2,a2a1,c1c2,c2c1)|:%fm |'
,
z3);
fpr
intf
('\
n\t|4)D(a1b2,b2a1,b1c2,c2b1)|:%fm |'
,
z4);
fpr
intf
('\
n\t|5)D(c1b1,b1c1,b2a2,a2b2)|:%f m | '
,
z5);
fpr
intf
('\
n\t|6)D(a2b1,b1a2,b2c1,c1b2)|:%fm |'
,
z6);
fpr
intf
('\
n\t|7)D(a1c2,c2a1) |:%fm |
',
y1);
fpr
intf
('\
n\t|8)D(b1b2,b2b1) |:%fm |'
,
y2);
fpr
intf
('\
n\t|1)D(c1a2,a2c1) |:%fm |
',
y3);
fpr
intf
('\
n\t|
_______
_____________
__ __
___|
______
_____
___|
')
;
n1=(z1*z4*z4*z5)^
(1/4);
n2=(z1*z6*z6*z5)^
(1/4);
n3=(z2*z2*y1*y3)
^(1/4);
v=(
n1* n2*n3)^(
1/3);

fpri
ntf(
'\n* GMDCALCULATI ON:'
);
fpri
ntf(
'\n\t|---
----
---
--
---
---
--
--
--
--
--
--
--
--
---
---
--
--
---
|'
);
fpri
ntf(
'\n\t| 1)D( phaseAB) : %fm | '
,n1);
fpri
ntf(
'\n\t| 2)D( phaseBC) : %fm | '
,n2);
fpri
ntf(
'\n\t| 3)D( phaseAC) : %fm | ',
n3);
fpri
ntf(
'\n\t| Geomet ricMeanDi stance(GMD)=<%f >m | '
,
v);
fpri
ntf(
'\n\t|__ ____________
_____
___ _
__________
_ _
______
______|
'
);
r1=(GMR* e) ^(1/2) ;
r2=((
D/2) *e)^(1/ 2);
g1=(r1*z3)^(1/ 2);
g2=(r1*z3)^(1/ 2);
g3=(r1*y2)^(1/ 2);
h1=(r2*z3)^(1/ 2);
h2=(r2*z3)^(1/ 2);
h3=(r2*y2)^(1/ 2);
GMRL=( g1*g2* g3) ^(1/3);
GMRC=( h1* h2* h3)^(1/3);
fpri
ntf(
'\n* GMRCALCULATI ON:'
);
fpri
ntf(
'\n\t|
----
----
---
--
---
---
--
--
--
--
--
--
--
--
---
---
--
--
---
--
--
--
---
|'
);
fpri
ntf(
'\n\t|
Geomet ricMeanRadi usf orInductor[
GMRL] =[ %f]m | '
,
GMRL);
fpri
ntf(
'\n\t|
Geomet ricMeanRadi usf orCapacitor[
GMRC]=[ %f]m |',
GMRC);
fpri
ntf(
'\n\t|
_ _____ _
__ __
______
___________
_ _
_________
_____
_______
___
___|'
);

L=l
og( v/GMRL) *0.2;
fpr
intf(
'\n\
n\ t{
INDUCTANCE(L)
}=[%f
]mH/km',
L);
C=0.0556/(log(v/GMRC))
;
fpr
intf(
'\n\
t{CAPACI TANCE(
C)}=[
%f]礔/km'
,C);
end
switch(x1)
case2
f
pri
ntf
('
\n\n You hav
e chose opt
ion 1.
Ent
ert
he v
alue off
oll
owi
ng par
amet
ersi
n
METERS(m)only'
);

e=i
nput
('
\n\
t->.
It
sadoubl
ebundedconduct
or.Ent
ert
heBundl
espaci
ng:
');

y
1=i
nput
('
\n\
n->Horizont
al Di
stanceofseparat
ion(x):'
);
y
2=i
nput
('
\n->Hor
izontalDist
anceofseparati
on(y):'
);
y
3=i
nput
('
\n->Hor
izontalDist
anceofseparati
on ( z)
:')
;
y
4=i
nput
('
\n->Ver
ti
cal Di
stanceofseparat
ion(p):
');
y
5=i
nput
('
\n->Ver
ti
cal Di
stanceofseparat
ion(q):'
);

i
f(y
2>y1)
y
6=(
y2-
y1)
/2;
el
se
y
6=(
y1-
y2)
/2;
end

i
f(
y3>y2)
y7=(
y3-
y2)
/2;
el
se
y7=(
y2-
y3)
/2;

end
i
f(y
1>y3)
y
8=(
y1-
y3)
/2;
el
se
y
8=(
y3-
y1)
/2;
end

z1=(
y4^2+(y
6) ^2)
^ (
1/ 2)
;
z2=(
(y4+y5)
^ 2+(y8)^2)^
(1/2);
z3=(
(y4+y5)
^ 2+(y3-
y8) ^
2)^(1/2)
;
z4=(
(y2-
y6)^2+(y4)^2)^(
1/2) ;
z5=(
y7^2+(y
5) ^2)
^ (
1/ 2)
;
z6=(
(y2-
y7)^2+(y4)^2)^(
1/2) ;

ckt
2=[
' a1 a2 '
'Circui
tArrangement2 .
O----
--
--
--
--
-O '
'--
--
---
--
--
--
--
---
-- .| . . | . '
' .| . |. '
' b1 | . . | b2 '
' O--
---
--
--
--
--
--
--
--
O '
' .| . . | . '
' .| . |
. '
' c1|. .c2| '
' O--
--
--
--
--
-O '
]
;
disp(ckt
2);

f
pri
ntf
('
\n\
n*DI STANCEMEASUREMENTS: '
);
f
pri
ntf
('
\n\
t|
---
--
--
--
--
--
--
--
--
--
--
--
--|
--
--
--
---
--
--
-|
'
);
f
pri
ntf
('
\n\
t|1)D(a1b1,
b1a1,b2a2,a2b2)|:
%fm |'
,z1)
;
f
pri
ntf
('
\n\
t|2)D(a1c1,
c1a1,a2c2,
c2a2)|:%fm |'
,
z2);
fpr
intf
('\
n\t|3)D(a1c2,c2a1,
c1a2,a2c1)|
:%fm | '
,
z3) ;
fpr
intf
('\
n\t|4)D(a1b2,b2a1,
b1a2,a2b1)|:%fm |'
,z4);
fpr
intf
('\
n\t|5)D(c1b1,b1c1,
b2c2,c2b2)|:
%f m | ',
z5);
fpr
intf
('\
n\t|6)D(c2b1,b1c2,
b2c1,c1b2)|:
%fm | '
,
z6) ;
fpr
intf
('\
n\t|7)D(a1a2,a2a1) |
: %fm |'
,y1);
fpr
intf
('\
n\t|8)D(b1b2,b2b1) |:%fm |'
,y2);
fpr
intf
('\
n\t|1)D(c1c2,c2c1) |
:%fm |',y
3);
fpr
intf
('\
n\t|
_______
_________
____
__ _
____|
______
________|
')
;
n1=(z1*z1*z4*z4)^
(1/4);
n2=(z5*z4*z4*z5)^
(1/4);
n3=(z2*z2*z3*z3)^
(1/4);
v=(
n1* n2*n3)^(
1/3);

f
pri
ntf
('
\n*GMDCALCULATI ON:'
);
f
pri
ntf
('
\n\
t|-
--
---
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-|
')
;
f
pri
ntf
('
\n\
t|1)D(phaseAB): %fm | '
,
n1) ;
f
pri
ntf
('
\n\
t|2)D(phaseBC): %fm | '
,
n2) ;
f
pri
ntf
('
\n\
t|3)D(phaseAC): %fm | '
,n3);
f
pri
ntf
('
\n\
t|Geomet ri
cMeanDi st
ance(GMD)=<%f >m |',
v);
f
pri
ntf
('
\n\
t|___
______
_____
_____
_____
______
____
_____
___
___
_ _
|'
);
r
1=(GMR*e)^
(1/2);
r
2=((
D/2)*
e)^(
1/2);

g1=(r
1*y1)^(1/2);
g2=(r
1*y2)^(1/2);
g3=(r
1*y3)^(1/2);
h1=(r
2*y1)^(1/
2) ;
h2=(r
2*y2)^(1/
2) ;
h3=(r
2*y3)^(1/
2) ;
GMRL=( g1*g2*g3) ^
(1/3);
GMRC=( h1*h2* h3)^(
1/3);
fpr
int
f('
\n*GMRCALCULATI ON:'
);
fpr
int
f('
\n\t
|--
--
----
--
--
--
--
---
--
--
--
--
--
--
--
--
--
---
--
--
--
--
--
--
--
--
-|
');
fpr
int
f('
\n\t
|Geomet r
icMeanRadi usforInduct
or[GMRL] =[
%f]m | '
,
GMRL);
fpr
int
f('
\n\t
|Geomet r
icMeanRadi usforCapacit
or[GMRC]=[
%f]m |',
GMRC);
fpr
int
f('
\n\t
|___________
______
______
_______
_____
______
___
___
____
___
___|'
);

L=log(v/GMRL) *0.2;
fpri
ntf(
'\n\n\t{I
NDUCTANCE( L)
}=[%f]mH/km',
L);
C=0.0556/ (l
og(v/GMRC));
fpri
ntf(
'\n\t{CAPACITANCE(C)}=[
%f]礔/ km'
,C);
end
switch(x1)
otherwise
fprint
f('
\n\t
Enterpr
operi
nput
!!'
);
end

You might also like