[pooma-dev] Re: [PATCH] Make PIC2d compile

Julian C. Cummings cummings at linkline.com
Sat Jul 17 19:05:14 UTC 2004


As I mentioned, it's an electrostatics code.  Just some charged particles
bouncing around in their own self-generated electric potential.  You scatter
the particle charge density onto a field, solve Poisson's equation to
compute the electric potential, and then advance the particle positions and
velocities in time using the resulting electric field.

It's a bit hard to verify a code like this other than by comparing the
particle positions and velocities at some time t with those obtained from a
baseline code that you *know* is correct.  I don't know if I ever created
such a baseline code for this example.  However, you can also verify the
particle scatter and gather by writing more simple examples and just
checking the results by hand.  That is what I did when I originally worked
on this.

Regards, Julian C.


> -----Original Message-----
> From: Jeffrey D. Oldham [mailto:oldham at codesourcery.com] 
> Sent: Thursday, July 15, 2004 4:04 PM
> To: Richard Guenther
> Cc: pooma-dev at pooma.codesourcery.com
> Subject: [pooma-dev] Re: [PATCH] Make PIC2d compile
> 
> 
> Richard Guenther wrote:
> 
> > The following makes PIC2d compile.  It doesn't segfault, but the
> > output is black magic to me.
> >
> > Ok?
> >
> > Richard.
> >
> >
> > 2004Jul15  Richard Guenther <richard.guenther at uni-tuebingen.de>
> >
> >     * examples/Particles/PIC2d/PIC2d.cpp: move to new Field/Mesh
> >     representation.
> 
> Yes, it's good to compile.  Neither you nor I know what this 
> code does.  
> Perhaps Julian Cummings does.
> 
> -- 
> Jeffrey D. Oldham
> oldham at codesourcery.com
> 
> 




More information about the pooma-dev mailing list