You are on page 1of 3

Expt no: 5(a) Page No:

Date: 23.8.10 Reg No: 070106308052

DETERMINATION OF LINE CAPACITANCE USING MODIFIED GMD


METHOD

#include<iostream.h>
#include<conio.h>
#include<math.h>
class capacitance
{
public:
float k,r,v,h,d,i,j,g,f,fr;
void getdata();
void calculate();
};
void capacitance::getdata()
{
cout<<"Enter the radius";
cin>>r;
cout<<"\n Enter the voltage and frequency";
cin>>v>>fr;
cout<<"\n Enter the distance between the conductors";
cin>>h>>d>>j;
}
void capacitance::calculate()
{
k=8.85*pow(10,-12);
i=sqrt(pow((j/2),2)+pow(((d-h)/2),2));
f=sqrt(pow(j,2)+pow(h,2));
g=sqrt(pow((j/2),2)+pow((h+((d-h)/2)),2));
float cn,xn;
a=log(deq/ds);
cn=(4*3.14*k)/(log((powi,2)*pow(g,2)*j*h)/(pow(r,3)*pow(f,2)*d));
xn=1/(2*3.14*fr*cn);
cout<<"\n Capacitance="<<cn<<"uf/Km";
cout<<"\n Capacitive reactance="<<xn<<"ohm/Km";
i=((v/1.732)*1000)/(2*xn);
cout<<"\n Charging current="<<i<<"A/Km";
}
void main()
{
capacitance m;
Expt no: 5 (a) Page No:
Date: 23.8.10 Reg No: 070106308052

clrscr();
m.getdata();
m.calculate();
getch();
}
Expt no: 5 (a) Page No:
Date: 23.8.10 Reg No: 070106308052

OUTPUT:

Enter the radius 0.00865


Enter the voltage and frequency 110 50
Enter the distance between the conductor 6 8 8
Capacitance=6.026421e-12uf /km
capacitance reactance=5.284585e8ohm/km
Charging current=6.009024e-5A/km

You might also like