[Getdp] Von Neumann misconception?

John_V jvillar.john at gmail.com
Tue Aug 9 23:07:07 CEST 2011


As for seeing what is wrong: me neither.

I don't think Gauss' theorem poses any difficulty with fixing both charge
and flux, since as you note the theorem applies only to closed surfaces. I
am only attempting to fix the flux at one end-cap of my cylinder. An
externally applied field (what my Eimposed is meant to simulate) causes flux
to flow in through one endcap and out the other. It makes no net
contribution to the total flux, which is therefore still free to be whatever
it needs to be to satisfy Gauss.

If I knew what additional details might serve, Lars, I would supply them.
You have been generous with your time already.

In case anyone else might be willing to give the matter consideration, I am
attaching a graph of the potential along the axis of my cylinder. This is
the "observation" I mentioned in the previous email, which led me to wonder
whether my formulation were actually requiring the flux to equal Eimposed +
(flux from charges) instead of only Eimposed as I had at first thought.

There are two curves in the attached graph, a blue one and a red one. The
horizontal axis is z. z=0 is my bottom endcap, with V=0 by Dirichlet
constraint. z=10000 is the top endcap, with Neumann constraint dictated by
the formulation previously given. All of the source terms are in z<=500,
which is a dielectric medium. z>500 is vacuum. The blue curve corresponds to
those charges mainly limited to z=500 nm and rectangular 1400 nm x 1400 nm
area, centered on (x,y)=(0,0), i.e., the axis. The red curve is the same
except that the rectangular area is a factor of 10 larger, 1400 nm x 1400
nm.

At z=10000, the slope of the blue curve is very close to 2 x 10^6 V/m, which
is the value I used for Eimposed. The red curve's slope at z=10000, as you
can plainly see, is much smaller (less than Eimposed/3 in fact), despite
that I used the *identical *formulation.

Getting Eimposed/3 instead of Eimposed is not consistent with answer A, that
the formulation constrained the field there to be the supplied value (unless
there was some other mistake in my input files).

On the other hand, it *is *consistent with answer B, that the formulation
constrained the flux there to be the combined flux from Eimposed + charges.
(The field contributed by the charges is expected to be nearly constant for
z/s << 1 and fall as 1/z^3 once z/s >> 1, where s is the size of the
rectangle. The blue curve corresponds to s = 1400 and the red one to s =
14000 (note extra 0). z=10000 is in the far-field region for the blue curve,
which is therefore expected to have negligible field, but not for the red
curve.) Thus, if flux from charges adds to Eimposed, we would hardly notice
in the case of the blue curve but it would be quite significant for the red
one. The graph is consistent with this.

So from this I have *guessed *answer B. Still, guessing (or experimentally
deducing) the function of a program is not the most reliable procedure.
Surely someone (one of the developers maybe) *knows *whether this is what it
is supposed to do. If that knowledgeable someone--who would speak the truth
and not just what I want to hear--would say, "But of course you $%^&! That's
how it's *supposed *to behave," I would be very happy. [?]

John


On Tue, Aug 9, 2011 at 2:32 AM, Lars Rindorf <lrf at teknologisk.dk> wrote:

>  Hi John****
>
> ** **
>
> The short answer is that from you brief description I cannot see what is
> wrong. ****
>
> ** **
>
> According to Gauss’ theorem the flux through a closed surface equals the
> sources inside the surface. So I guess you cannot fix both charge and flux
> in your problem.****
>
> ** **
>
> KR Lars****
>
> ** **
>
> *Fra:* John_V [mailto:jvillar.john at gmail.com]
> *Sendt:* 6. august 2011 20:12
> *Til:* Lars Rindorf
> *Cc:* getdp at geuz.org
> *Emne:* Re: [Getdp] Von Neumann misconception?****
>
> ** **
>
> Thanks Lars. If I understand you, you're telling me that my answer A was
> the right one. (Eimposed was a very simple function in my case. It was
> constant.) But in my solution, the field at UpperEndCap is much different
> from Eimposed. Why is that?
>
> I am suspecting the real answer is B. This suspicion is, however, based
> only on observation. I don't know whether this makes sense in terms of how
> the program is supposed to operate. Domain_Ele does not exclude UpperEndCap.
> That is, the nodes on UpperEndCap (a surface) are also nodes of Domain_Ele,
> which is the entire mesh. Does that offer a way to explain why the field is
> not what I expected?
>
> John****
>
> On Thu, Aug 4, 2011 at 2:23 AM, Lars Rindorf <lrf at teknologisk.dk> wrote:**
> **
>
> Hi John****
>
>  ****
>
> The Neumann (von Neumann is a different mathematician) boundary condition
> fixes the ‘influx’ grad(V) normal to the boundary, and it arises when
> grad(V) = -E is known and can be replaced by a function, such as Eimposed. A
> dirichlet boundary condition, e.g. V=0, fixes the magnitude.****
>
>  ****
>
> Be aware that in the formulation the ‘Eimposed’ is the normal component of
> the incoming field/flux and it is thus a scalar not a vector.****
>
>  ****
>
> KR Lars****
>
>  ****
>
> *Fra:* getdp-bounces at ace20.montefiore.ulg.ac.be [mailto:
> getdp-bounces at ace20.montefiore.ulg.ac.be] *På vegne af *John_V
> *Sendt:* 3. august 2011 14:21
> *Til:* getdp at geuz.org
> *Emne:* [Getdp] Von Neumann misconception?****
>
>  ****
>
> Consider an electrostatic problem in a cylindrical volume, bottom end cap
> (surface) constrained to V=0, source terms in some volume elements, and top
> end cap with a von Neumann constraint implemented as shown in the
> formulation below. Does the 3rd Galerkin term (the von Neumann term)****
>
> a) Require that the electric field through the upper end cap be equal to
> Eimposed?
> b) Require that the electric field through the upper end cap be equal to
> the sum: field produced by charges in SourceDomain + Eimposed?
> c) Something else?****
>
>
> Formulation {
>   { Name Electrostatics_v; Type FemEquation;
>     Quantity {
>       { Name v; Type Local; NameOfSpace Hgrad_v_Ele; }
>     }
>     Equation {
>       Galerkin { [ epsr[] * Dof{d v} , {d v} ]; In Domain_Ele;
>                  Jacobian Vol; Integration GradGrad; }
>       Galerkin { [ -q[]*chargeUnit/eps0/ElementVol[] , {v} ]; In
> SourceDomain;
>                  Jacobian Vol; Integration GradGrad; }
>       Galerkin { [ Eimposed , {v} ]; In UpperEndCap;
>                  Jacobian Sur; Integration GradGrad; }
>     }
>   }
> }
>
> The mesh is a cylindrical volume oriented along z. Domain_Ele refers to all
> volume elements of my mesh. SourceDomain is a set of volume elements in
> which there are charges. (These are near the lower end cap of the
> cylindrical mesh.) The 3rd term was meant to impose my von Neumann
> condition. When I wrote it I thought I was doing (a) above, but the result
> suggests otherwise.
>
> John****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/getdp/attachments/20110809/62ddf21c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.gif
Type: image/gif
Size: 96 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20110809/62ddf21c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: potential.gif
Type: image/gif
Size: 5915 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20110809/62ddf21c/attachment-0001.gif>