SIMION® Industry standard charged particle optics simulation software.
About | Documentation | Community/Support | Downloads | Ordering

Info: Charge-Capacitance Calculation

From SIMION

The total charge inside a given volume can be computed from Gauss's Law (http://en.wikipedia.org/wiki/Gauss's_law) provided you know the electric field over the surface of that volume, which you can calculate with SIMION. So, the steps you need to perform are

  • (1) Create and refine a SIMION potential array (solving the fields).
  • (2) Compute the Gauss's Law integral over some region of the potential array to find total charge.

Computing the integral can be done in various ways. You might even utilize SIMION Data Recording. However, this task is best facilitated instead with a custom program. A custom Perl program (using the SL Libraries from the SIMION SL Toolkit) is available at http://www.sisweb.com/download/sl/totalcharge-20060629.zip), with the SL Libraries for Perl included for your convenience (Note: these files are all included in SIMION 8, so SIMION 8 users don't need to download this separately -- see the "gauss_law" example in SIMION 8.0.4 or above). This program will examine a SIMION potential array (PA) file and calculate the total charge in the specified 3D sphere or 3D box surface (3D or 2D cylindrical) or 2D circle or 2D box perimeter (2D planar).

As an example, we'll use the simple spherical capacitor system given here. According to theory, the charge on the inner sphere should be Q = (Delta V) * 4 pi epsilon_0 (R1^-1 - R2^-1)^-1, giving Q ~= 2.225300E-8 C, or the negative of that on the outer sphere.

For this spherical capacitor system, the totalcharge.pl program is configured as follows:

 # location of the SIMION potential array (PA) file.
 my $pa_name = 'sc3d.pa'; # or sc2d.pa
 my $lambda = 1; # gu/mm scaling factor used in the PA.
 
 # load potential array
 my $pa = SIMION::PA->new(file => $pa_name);  
 
 # define surface to integrate over
 my $sphere = &sphere(0,0,0, 100);  # center (xc,yc,zc) and radius (mm)
 
 # calculate total charge using Gauss's Law.
 # ... given PA, surface, grid density (gu/mm), and convergence limits
 &total_charge($pa, $sphere, $lambda, 0.1, 0.0001);

SIMION results are 2.249E-8 C (3D), 2.242E-8 C (2D), 2.2269E-8 C (2D, lambda=10 gu/mm).

Capacitance (http://en.wikipedia.org/wiki/Capacitance) is then just Q / |Delta V|.

Any comments on this web page? (will be sent to SIS)
[Optional] Your name: email: phone/fax:
(c) 2003-2006 Scientific Instrument Services, Inc. (SIS). Contact SIS.