Question: Discretizing a charge distribution ( 4 points ) Let's say that instead of a point charge, we now have a charge distribution. We can approximate
Discretizing a charge distribution points
Let's say that instead of a point charge, we now have a charge distribution. We can approximate this as a collection of point charges within a volume, which is called discretization. For initial simplicity, let us consider an origin centered cube, total charge C whose volume lies within We will discretize this cube in a few steps:
Discretize the volume of the insulator with npmeshgrid. Let's call the output cubesamples. You can do this in one or two steps. Make sure to also define xcubepoints, ycubepoints and zcubepoints.
Reshape cubesamples for use with calculateefieldfromcharges: define pointsincube and make sure that this has shape numpointsincube
Given numpointsincube, divide the total charge Q into the number of points sampling the cube. Use this to define dqcube the discretized charges This is a rough approximation.
Dcubesamplepoints is defined to span only the extent of the cube, and let's sample points across again. Use cubesamplepoints as your arguments in npmeshgrid. Name the outputs of npmeshgrid, xcubepoints, ycubepoints, and zcubepoints, and combine them into a single array as we've done before, cubesamples. points
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
