Question: ( 5 0 % ) Please solve using Python. Poisson's equation in electrostatics governs the electric potential in the presence of a charge density (
Please solve using Python. Poisson's equation in electrostatics governs the electric potential in the presence of a charge density and is given by the following:
where is the permittivity of empty space. Consider the figure below. We have two square charges of charge density and located from the edges. Write a Python program to solve this equation on an meter square box, where all four of the boundaries are kept at Note that this is a Boundary Value Problem PDE and the drawing below isn't drawn to scale. Setup your D grid with a spacing of between each point, set and continue the iteration until your solution for the electric potential changes by less than You can use either the relaxation method, the overrelaxation method or the GaussSeidel 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
