Can someone verify a computational result for me?

  • Thread starter Thread starter cowmoo32
  • Start date Start date
  • Tags Tags
    Computational
AI Thread Summary
In a computational physics class, two students are comparing results from different code implementations for calculating the electrostatic potential of a finite charged wire segment, yielding vastly different values. One student calculates a potential of approximately 0.0995, while the other gets 10,596, indicating a significant discrepancy. The charge density along the wire is defined as λ=λ0cos(πx/2L), and there is a discussion about the antisymmetry of the charge distribution affecting the potential. The students have not yet covered this topic in their introductory E&M class, making it difficult to verify their results analytically. The conversation highlights the challenges in computational physics when discrepancies arise in expected outcomes.
cowmoo32
Messages
121
Reaction score
0
This is for a computational physics class, but isn't a homework question, per se. My friend and I have two different sets of code trying to achieve the same thing and we're getting vastly different answers, orders of magnitude apart. We haven't covered this sort of problem in our intro E&M class yet so we aren't able to confirm a result by hand.

Using a λ0 value of 1e-6 and L = 0.5m I'm getting V = ~0.0995 and he's getting 10,596.

Write a Python code that computes the electrostatic potential of a finite segment of charged wire of length 2L, at a height H=L above the center of the wire. The charge density along the wire varies as λ=λ0cos\frac{Pi*x}{2L}
http://moodle.wolfware.ncsu.edu/file.php/33699/Lesson12/wire.png
 
Physics news on Phys.org
Isn't that charge distribution antisymmetric, so the charge density at the point L-x along the wire is the negative of the charge density at the point L+x? Since the distance of these points to the point at a distance L in the middle of the wire is the same, the the contributions to the potential of these points cancels.
 
-delete- I did it wrong.
 
Last edited:
Consider an extremely long and perfectly calibrated scale. A car with a mass of 1000 kg is placed on it, and the scale registers this weight accurately. Now, suppose the car begins to move, reaching very high speeds. Neglecting air resistance and rolling friction, if the car attains, for example, a velocity of 500 km/h, will the scale still indicate a weight corresponding to 1000 kg, or will the measured value decrease as a result of the motion? In a second scenario, imagine a person with a...
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Dear all, in an encounter of an infamous claim by Gerlich and Tscheuschner that the Greenhouse effect is inconsistent with the 2nd law of thermodynamics I came to a simple thought experiment which I wanted to share with you to check my understanding and brush up my knowledge. The thought experiment I tried to calculate through is as follows. I have a sphere (1) with radius ##r##, acting like a black body at a temperature of exactly ##T_1 = 500 K##. With Stefan-Boltzmann you can calculate...
Back
Top