summaryrefslogtreecommitdiff
path: root/854/CH7/EX7.1/Example7_1.sce
blob: ce89f5a7588c69e044d1dbf699a24582969bc20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//clear//
//Caption: Derivation of capacitance of a parallel plate capacitor
//Example7.1
//page 177
clc;
x = sym('x');
d = sym('d');
Vo = sym('Vo');
e = sym('e');
ax = sym('ax');
A = sym('A');
B = sym('B');
S = sym('S');
V = integ(A,x)+B;
V = limit(V,A,Vo/d);
V = limit(V,B,0);
disp(V,'Potential in Volts V =')
E = -diff(V,x)*ax;
disp(E,'Electric Field in V/m E =')
D = e*E;
DN = D/ax;
disp(D,'Electric Flux Density in C/square metre D =')
Q = -DN*S;
disp(Q,'Charge in Coulombs Q =')
C = Q/Vo;
disp(C,'Capacitance of parallel plate capacitor C =')
//Result
//Potential in Volts V =   Vo*x/d   
//Electric Field in V/m E =   -ax*Vo/d   
//Electric Flux Density in C/square metre D =  -ax*e*Vo/d   
//Charge in Coulombs Q =   e*Vo*S/d   
//Capacitance of parallel plate capacitor C =  e*S/d