Finite element solving of Laplace's equation doesn't converge

crum
Messages
2
Reaction score
0

Homework Statement


I'm trying to solve Laplace's equation numerically in 3d for a charged sphere in a big box. I'm using Comsol, which solves using the finite elements method. I used neumann BC on the surface of the sphere, and flux=0 BC on the box in which I have the sphere. The result does not converge.

Homework Equations


Laplace's equation \[\nabla^2 \phi=0\]

The Attempt at a Solution


I've tried using derichlet BC instead of neumann, and a fixed potential at the box (instead of flux=0), but the result still doesn't converge. Convergance errors usually appears when the mesh is not fine enough or I'm missing a boundary condition, but I don't see how using neumann at the surface and flux=0 at the box wouldn't be enough boundary conditions. I have used the same BCs using the Poisson-Boltzman eq and it worked fine there.
 
Physics news on Phys.org
Is it being solved iteratively?
 
Chestermiller said:
Is it being solved iteratively?
Yes, that's how COMSOL works.

@crum: can you give more details about how you are setting up the problem in COMSOL?
 
DrClaude said:
Yes, that's how COMSOL works.

@crum: can you give more details about how you are setting up the problem in COMSOL?
I make a small sphere inside of a big simulation box (100times the size of the sphere). I set the laplace to hold inside of the simulation box and inside the sphere. I set neumann conditions on the surface of the sphere, and flux=0 BC on the edge of the box. I don't know what other info i could give you.

I tried making a small-scale 1d model and it still didn't work, so I'm guessing it has to do with some more basic error. I set Laplace's equation to hold on an interval, with neumann BC on one side of the interval, and flux=0 BC on the other side. The result still didn't converge.
 
crum said:
I set neumann conditions on the surface of the sphere, and flux=0 BC on the edge of the box. I don't know what other info i could give you.
When you say you set Neumann conditions on the surface of the sphere, are you implying that you have non-homogenous Neumann conditions? If so, this would imply a non-zero flux into (or out of) your volume and no sources inside the volume. Thus, your boundary conditions would be incompatible with your differential equation.
 
Hello everyone, I’m considering a point charge q that oscillates harmonically about the origin along the z-axis, e.g. $$z_{q}(t)= A\sin(wt)$$ In a strongly simplified / quasi-instantaneous approximation I ignore retardation and take the electric field at the position ##r=(x,y,z)## simply to be the “Coulomb field at the charge’s instantaneous position”: $$E(r,t)=\frac{q}{4\pi\varepsilon_{0}}\frac{r-r_{q}(t)}{||r-r_{q}(t)||^{3}}$$ with $$r_{q}(t)=(0,0,z_{q}(t))$$ (I’m aware this isn’t...
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
Back
Top