This example allows different types of solutions to Poisson's equation in concentric spherical domains with single dipole sources to be solved using either FEM or BEM, and compared to the analytic solution. See also the c directory (EEG modelling).

There is no example.com, instead everything is done from the command line. The parameters of the solution are as follows:

To create the comfile that will run the particular example, execute the command ${CMISS_ROOT}/examples/3/35/generate_comfile num_spheres [type radius conductivity] refine_equatorial refine_polar dipole_radius dipole_axis dipole_direction. Run the example by executing the command cm check_analytic.

Parameter Notes:

The output of running the comfile will be a CMISS output file with a unique name (derived from the parameters). From this output file various error measures may be extracted. The directory tips gives some examples of ways to use the data with gnuplot.

To view the results of the solution in CMGUI, run the shell file ${CMISS_ROOT}/examples/3/35/view.sh num_spheres.

For example, to test a single bem sphere of radius 1.0, conductivity 1.0, refinement of 4x4 and a centric, x oriented dipole, use the following commands: