Report Form
Report Form
UNIVERSITY OF TECHNOLOGY
-------------***----------------
Physics
Matlab Project
Topic: Plot the potential surface and electric field strength vectors in the
Oxy plane
Group 07
Team members:
1. Nguyễn Minh Quân 2152920
2. Dương Trọng Phúc 2152237
3. Vũ Nguyên Quỳnh Như 2053309
Semester: HK211
Lecturer: Đỗ Ngọc Sơn & Nguyễn Trung Hậu
Submission date:
Plot the potential surface and electric field strength vectors
in the Oxy plane
1. Introduction
→
Electric field E , a vector quantity, is the force per unit charge exerted on a test charge at any point.The
electric field produced by a point charge is directed radially away from or toward the charge.
→
F 0 is Electric force on a test charge q0 due to other charges
q 0 is value of test charge
In SI units, in which the unit of force is 1 N and the unit of charge is 1 C, the unit of electric-field
magnitude is 1 newton per coulomb 1(N/C)
If we place a small test charge q0 at the field point P, at a distance r from the source point q, the
magnitude F0 of the force is given by Coulomb’s law:
1 |q q0|
F 0=
4 π ε0 r 2
The magnitude E of the electric field at P is
1 |q|
E= (magnitude of electric field of a point charge)
4 π ε0 r2
→
Using the unit vector r , we can write a vector equation that gives both the magnitude and direction of
→
the electric field E :
→
1 q→
E= r
4 π ε0 r3
→
while : E is Electric field due to a point charge
1
=k : electric constant ;( k = 9 x 109 N.m2/C2)
4 π ε0
The work done by electric force equal to the decrease of potential energy .
→ → q q0 q q0
dW =F . d S =k 2
ds . cos θ=k 2
dr
r r
rB
→ →
q q0 q q0 qq
⇒ W AB= ∫ F . d S =∫ k
r
2
dr =k
rA
−k 0
rB
A→B rA
q q0
U ( r )=k +C : Potential energy of system of 2 point charges
r
W AB =U A −U B =−△ U
r =∞ ,U =0 ⇒ C=0
Electric Potential at M due to a point charge q :
U (r ) q
V ( r )= =k +C
q0 r
q
V =k +C ; V ( ∞ ) ⇒ C=0
r
dq
Divide → dq →dV =k
r
dq
V ( M )= ∫ dV = ∫ k
r
( object ) ( object )
2. Theory
→ → → →
dW =F . d S =q0 E . d S =−dU
→ →
U dU
V= ⇒ dV = =−E . d S =−ES dS
q0 q0
−dV
E S=
ds
−dV −dV −dV
⇒ E x= ; E y= ; Ez=
dx dy dz
( )
→ →
∂V → ∂V → ∂V →
E =−grad V =− e + e + e
∂x x ∂ y y ∂z z
%@ Loop over all grid points and evaluate V(x,y) and E(x,y) on grid
Z(i, j)= 0;
Ex(i, j)= 0;
Ey(i, j)= 0;
end
end
end
5. Conclusion
The project has completed the plot of the potential surface and electric field strength vectors in the Oxy
plane problem using MATLAB symbolic calculation. With this tool we can solve more complex motion
situations that cannot be solved by the analytical method.
References:
[1] A. L. G. a. C. Penland, "MATLAB Projects for Scientists and Engineers," 1996. [Online].
Available: http://www.algarcia.org/fishbane/fishbane.html.
[2] R. A. F. Hugh D. Young, University Physics with Modern Physics, Pearson Education, 2016.
[3] R. R. J. W. David Halliday, Fundamentals of Physics Extended 10th edition, 2013.