Question: ( 5 0 % ) Please solve using Python. Poisson's equation in electrostatics governs the electric potential in the presence of a charge density (

(50%) Please solve using Python. Poisson's equation in electrostatics governs the electric potential in the presence of a charge density (x,y) and is given by the following:
grad2=-(x,y)lon0
where lon0 is the permittivity of empty space. Consider the figure below. We have two square charges x20cm) of charge density +1cm2 and -1cm2 located 20cm from the edges. Write a Python program to solve this equation on an 1x1 meter square box, where all four of the boundaries are kept at =0. Note that this is a Boundary Value Problem PDE and the drawing below isn't drawn to scale. Setup your 2D grid with a spacing of a=1cm between each point, set lon0=1, and continue the iteration until your solution for the electric potential changes by less than 10-4V. You can use either the relaxation method, the overrelaxation method or the Gauss-Seidel method to solve this system. Note: This calculation might take your computer a couple of minutes depending on which method you choose and on your computer specs.
( 5 0 % ) Please solve using Python. Poisson's

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!