Example 351: Eccentric dipole in multiple concentric spheres using FEM/BEM.

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:

The comfile run by this example is as follows:

#There is no example.com for this example.  Read the
#description in the example page.  ALso see the examples in the c directory

Files used by this example are:

Name                 Modified     Size

example_351.com 10-Apr-2000 129 anal_check.com 28-Jun-2000 921 check_analytic.com 28-Jun-2000 645 find_min_max.awk 10-Apr-2000 580 generate_comfile 10-Apr-2000 16k generate_comfile.c 10-Apr-2000 8.0k get_arguments.awk 10-Apr-2000 615 get_data.sh 10-Apr-2000 1.0k get_rms.awk 10-Apr-2000 201 get_rms.sh 10-Apr-2000 358 node_name.txt 10-Apr-2000 25 simple2hard.txt 10-Apr-2000 374 split_name 10-Apr-2000 16k split_name.c 10-Apr-2000 4.5k view.sh 10-Apr-2000 852 view_template_1.com 28-Jun-2000 655 view_template_2.com 28-Jun-2000 1.2k view_template_3.com 28-Jun-2000 1.8k

Download the entire example:

Name                      Modified     Size

examples_3_35_351.tar.gz 19-Aug-2006 15k

Html last generated: Sun Mar 6 05:50:19 2016

Input last modified: Wed Jun 28 14:07:33 2000

CMISS Help / Examples / 3 / 35 / 351