A dipole consists of two charges qı= +6 nC and q2=-41=-6 nC centered at the origin. Separation between charges is 2 mm.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A dipole consists of two charges qı= +6 nC and q2=-41=-6 nC centered at the origin. Separation between charges is 2 mm.

Post by answerhappygod »

A Dipole Consists Of Two Charges Qi 6 Nc And Q2 41 6 Nc Centered At The Origin Separation Between Charges Is 2 Mm 1
A Dipole Consists Of Two Charges Qi 6 Nc And Q2 41 6 Nc Centered At The Origin Separation Between Charges Is 2 Mm 1 (520.5 KiB) Viewed 10 times
A Dipole Consists Of Two Charges Qi 6 Nc And Q2 41 6 Nc Centered At The Origin Separation Between Charges Is 2 Mm 2
A Dipole Consists Of Two Charges Qi 6 Nc And Q2 41 6 Nc Centered At The Origin Separation Between Charges Is 2 Mm 2 (67.08 KiB) Viewed 10 times
A dipole consists of two charges qı= +6 nC and q2=-41=-6 nC centered at the origin. Separation between charges is 2 mm. The charge q, is located on the +x axis, the charge qz is located on the -x axis. You will find the electric field of the dipole at different positions using both, the exact and the approximated formulas. You will present the electric field found by both formulas at all given locations. Notes: Make sure that you pay attention on correct spelling, capital or small letter cases. Use scientific notation like (5e10) and make sure that you don't use space when completing the code lines. Ex.-no space:F=mu*Fn; space: F = mu * Fn. • Start your code with importing visual component of python: • Define the constants; the charge q, the electric constant(9x109 Nm²/C2), and the separation of the charges. In addition define a scale factor (1.1*10-11) to be able to visualize electric field. • Create two spheres at the appropriate locations to represent the two charges. • Take the radius of the spheres: radius = 3e-4 • Use the symbolic name qplus for the charge qı and qminus for the charge 2. • Choose two different colors for the spheres (red and blue). • Calculate the electric field of the dipole; Edipole and Eapprox at every position between amin=-5 mm and amax=5 mm in steps of 1 mm. To do this, we first initialize a while loop with initial value (-4.5 mm), step value (1 mm) and the while loop with a condition that a should be less then 5 mm. • For each point within the loop, set the position of the observation location to vector obs to be (0,2,0) m. Remember to indent. • Set the relative position from each charge to the observation location. Name these positions (plus and Iminus- • Calculate the electric field E dipole of the dipole at the position and print its value. • Calculate the electric field E plus due to qplus at this positions. • Calculate the electric field E minus due to (minus at this positions: • Find E dipole by adding E plus and E minus. Make sure to use the symbolic name Edipole for this. • Calculate the electric field E approx of the dipole at the positions. The direction of the field, given here as (-1,0,0), is from positive to negative charge for the perpendicular axis of the dipole. • Create a yellow arrow to represent the electric field of the dipole E dipole. Set the shaft-width as 0.2 of the radius of the charge. • Create a green arrow to represent the electric field of the dipole E approx. Set the shaft-width as 0.1 of the radius E of the charge. • Update 'a' for the next point in the loop by adding the line: a=a+da • Print the values of both fields.

from visual import * sf cte=9e9 ql= S- qplus=sphere(pos-vector(s/2,0,0),radius=3e-4,color=color.blue) qminus=sphere(pos=vector ,0,0),radius color=color.red) a= dar while a<5e-3: Eplus=cte*ql*norm(obs-qplus.pos)/abs(obs-qplus.pos)**2 Eminus=-cte*ql*norm(obs-qminus.pos)/abs(obs-qminus.pos)**2 • +Eminus Eapprox=cte*ql*s/abs(obs)**3*vector(-1,0,0) arrow(pos=obs,shaftwidth=2e-4,axis=sf*Edipole,colorcolor.yellow) arrow(pos=obs,shaftwidth=le-4,axis-sf*Eapprox,color=color.green) a=a+da print Edipole,Eapprox
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply