Project vl1
Project vl1
Project Requirements
1. Project requirement:
Students are required to use MATLAB to visualize the electric field energy
density based on the electric potential distribution on a given plane.
2. Conditions:
• Students need basic knowledge of programming in MATLAB.
• Research MATLAB commands related to symbolic computation and
graphics.
3. Tasks:
• Input the electric potential function depending on variables x and y.
• Create a grid matrix on the Oxy plane with O as the origin.
• Calculate the electric field energy density at each node on the grid.
• Plot 3D graphs showing the distribution of the electric potential and the
electric field energy density (z-axis) at points on the plane (x, y-axes).
(V/m or N/C)
-The electric field generated by a system of point charges: It is the vector sum of the electric
field intensities created by all the charges in the system:
-The electric field created by a charged object: Divide the object into small elemental charges
dq. The electric field generated by the charge dq is:
2. Electric Potential
-The electric potential of an electric field is a scalar field associated with the electric field.
Specifically, the gradient of the electric potential is a vector that points in the opposite
direction and has the same magnitude as the electric field. In the International System of
Units (SI), electric potential is measured in volts (abbreviated as V).
-The electric potential created by a point charge: Each point charge q generates an electric
field around it, with the electric potential V determined by the formula:
- The total electric potential created by a system of point charges is the sum of the electric
potentials from each charge:
❑ ❑
q
V =∫ ❑ dV =∫ ❑ k
❑ ❑ r
- An equipotential surface is the set of all points where the electric potential is constant:
V (x , y , z )=C
- The relationship between electric field strength and electric potential is expressed as:
- Consider two equipotential surfaces V , and V +dV , with dV > 0 The work done by the
electric field force in moving a point charge q 0 from point M to point N is :
dA=W t (M )−W t (N )❑ =¿ (1)
Since work equals the reduction in potential energy, it is also given by the product of and the
potential difference:
Because dV > 0, therefore <0 meaning the angle between and is obtuse.
- The vector at point M is perpendicular to the equipotential surface V, and thus, points
in the direction of the line MN. ( fig1.38 )
−dV
= E s ds=−dV or E s=
ds
−∂ V ∂V ∂V
E x . dx + EY . dy+ Ez . dz= dx− dy−
∂x ∂y ∂z
Therefore:
2. 5*x^3-3*y^2+7
3. 0.5*x^2+3*y^3