1) Use the formulas for electric dipole 3-35 and 3-37 to draw the values of V, E
ID: 1716653 • Letter: 1
Question
1) Use the formulas for electric dipole 3-35 and 3-37 to draw the values of V, ER and E? vs. ? using MATLAB. Q=2 nC, d=10 Cm and R= 100 m.
2) Now instead of two charge points of q and –q use two rods locate at (d/2, 0) with line charge of ?L and (-d/2, 0) with line charge of-?L respectively parallel to Z axis. Use similar method to find V and E formulas at r?d.
3) With ?L=10 nC/m, d=4 Cm and r=50 m. use MATLAB and the result in 2 to draw the Voltage and field Vs. ?.
p aR / = area, 2 (V), ere p=qd is the electric dipole monnent (SI unit: C. ate" sign () has been dropped for simplicity.) The E field can be obtained from -VV In spheri ve v av R 00Explanation / Answer
%This program will graph out the electric field lines between charges at %(-1,0) and (1,0) with magnitudes of (q) and (-q) %-------------------------------------------------------------------------- %Plots out the electric field lines between the charges [X,Y]=meshgrid(-50:.2:50,-50:.2:50); E=1.8.^(-1.5*sqrt(X.^2+Y.^2)).*cos(0.5*Y).*sin(X); %Electric field line equation [DX,DY]=gradient(E,.2,.2); quiver(X,Y,DX,DY) hold on %Holds the previous set of code %-------------------------------------------------------------------------- %Plots out equipotential surfaces of both charges [X,Y]=meshgrid(-50:.1:50,-50:.1:50); E=1.8.^(-1.5*sqrt(X.^2+Y.^2)).*cos(0.5*Y).*sin(X); %Equation for equipotential surfaces contour(X,Y,E,10) %Where the magic of this wonder comes from baby hold on %Holds the previous set of code %-------------------------------------------------------------------------- %plots the points of both charges x1=1; y1=0; %Negative charge location x2=-1; y2=0; %Positive charge location plot(x1,y1,'b:o') %plot of negative charge plot(x2,y2,'r:o') %plot of positive charge %-------------------------------------------------------------------------- %Gridlines, title and window view grid on %Puts a gridline on the graph axis([-2 2 -2 2]) %Sets the window to a 2X2 view title('The plot of electric field lines and equipotential surfaces of q and (-q)')
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.