Example c5: Solving for potential in 3 centric spheres with an eccentric dipole

Solving for potential due to an eccentric dipole inside multiple spheres.


The comfile run by this example is as follows:

#Example_c5  Solving for potential in 3 centric spheres due to an eccentric dipole

             #This example tests the analytic solution to an eccentric
             #dipole inside 3 concentric sphere with the solution computed
             #by CMISS.  Note that the potential can be solved for up 
             #to an arbitrary additive constant.

fem                            #Sets the environment to FEM.
fem define parameters;r;sphere;example

fem define coordinates;r;sphere;example #defines 3D rectangular.
fem define bases;r;;example        #Define 3 bicubic Hermite BEM basis.
fem define mesh;r;;example         #3 concentric spheres- 8*8 discretisation
fem define equation;r;;example region all  #Standard Laplace equation.
fem define material;r;;example region all  #No material definitions.
fem define source;r;;example       #Define an eccentric dipole
fem define analytic;r;;example region all
fem define coupling;r;;example	     #define the type of coupling
fem define initial;g region all      #generate the initial conditions
fem define solve;r;;example coupled region all  #Define coupled solution parameters.
fem solve coupled                    #Solve coupled problem
fem check solution             #Compare analytic and computational
#                              !  solutions.

Additional testing commands:

fem list node solution reg all

Files used by this example are:

Name               Modified     Size

example_c5.com 29-Jun-2000 1.3k sphere.ipbase 10-Apr-2000 4.5k sphere.ipcoor 10-Apr-2000 572 sphere.ipcoup 21-Aug-2002 437 sphere.ipcoup.old 10-Apr-2000 386 sphere.ipmesh 10-Apr-2000 1.5k sphere.ippara 21-Feb-2003 5.9k sphere.ippara_old 10-Apr-2000 4.4k sphere.ipsour 10-Apr-2000 295 sphere.iranal 10-Apr-2000 1.9k sphere.irequa 26-May-2003 3.1k sphere.irmate 10-Apr-2000 2.6k sphere.irsolv 13-Apr-2007 1.4k test_output.com 17-Dec-2002 31

Download the entire example:

Name                  Modified     Size

examples_c_c5.tar.gz 14-Apr-2007 13k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:05:14 20168
cm-debugSuccessSat Mar 5 00:34:02 201622
mips-irix
cmSuccessSun Aug 19 02:46:57 200770
cm-debugSuccessWed Aug 15 03:03:07 2007245
cm-debug-clear-mallocSuccessSat Aug 18 03:19:08 2007251
cm-debug-clear-malloc7SuccessMon Aug 20 03:17:06 2007250
cm64SuccessSun Aug 19 02:50:29 200773
cm64-debugSuccessTue Aug 21 04:03:40 2007267
cm64-debug-clear-mallocSuccessThu Apr 1 11:30:54 2004114
rs6000-aix
cmSuccessWed Mar 4 01:13:33 20099
cm-debugSuccessMon Mar 2 01:25:21 200968
cm64SuccessWed Mar 4 01:13:45 200910
cm64-debugSuccessTue Mar 3 01:31:14 200970
x86_64-linux
cmSuccessSun Mar 6 00:01:20 20165
cm-debugSuccessSat Mar 5 00:03:36 201613

Testing status by file:


Html last generated: Sun Mar 6 05:51:18 2016

Input last modified: Fri Apr 13 10:40:42 2007


CMISS Help / Examples / c / c5