# simionx.FieldAnalysis - Integration over Fields¶

FieldAnalysis - Functions for analyzing fields (e.g. computing total charge via Gauss’s Law or total energy).

Note

This page is abridged from the full SIMION 8.1.1 "Supplemental Documentation" (Help file). The following additional sections can be found in the full version of this page accessible via the "Help > Supplemental Documentation" menu in SIMION 8.1.1:- SYNOPSIS

## DESCRIPTION¶

The module can be used to (1) calculate the total charge inside volume by a Gauss’s Law integration of the electric field or (2) calculate the total energy stored in an electric or magnetic field by integrating over the field (this energy can also be related to stored charge in a capacitor).

The field can be defined by a function `f(x,y,z)`

returning the the
field components (ex,ey,ez) at the given point `(x,y,z)`

or by a
SIMION potential array (PA) object. Positions are typically in units
of grid units or mm, and fields are in V/gu (or Gauss for magnetic
fields).

Many of these field calculations involve an integration over a surface or volume. This integration is performed via a relatively simple but suitable quasirandom Monte-Carlo style integration that proceeds until a desired convergence is reached. The integration routines are implemented separately in the simionx.Integration - Numerical integration routines module.

For an example of the use of this module, see the SIMION Example: gauss_law.

Note

This page is abridged from the full SIMION 8.1.1 "Supplemental Documentation" (Help file). The following additional sections can be found in the full version of this page accessible via the "Help > Supplemental Documentation" menu in SIMION 8.1.1:- INTERFACE

## SOURCE¶

(c) 2006-2013 Scientific Instrument Services, Inc. Licensed under the terms of SIMION 8.0/8.1. www.simion.com. D.Manura-2007.

version: 20130321