Example c4: Solving for potential in 3 centric spheres with a centric dipole

Solving for potential due to a dipole inside multiple spheres.


The comfile run by this example is as follows:

#Example_c4  Solving for potential in 3 centric spheres due to a centrid dipole

             #This example tests the analytic solution to an centric
             #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- 4*4 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 centric 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_c4.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 293 sphere.iranal 10-Apr-2000 1.8k sphere.irequa 26-May-2003 3.1k sphere.irmate 10-Apr-2000 2.6k sphere.irsolv 13-Apr-2007 1.4k sphere_4.ipmesh 10-Apr-2000 1.8k test_output.com 17-Dec-2002 31

Download the entire example:

Name                  Modified     Size

examples_c_c4.tar.gz 14-Apr-2007 9.1k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:30 20161
cm-debugSuccessSat Mar 5 00:05:55 20162
mips-irix
cmSuccessSun Aug 19 01:34:48 20078
cm-debugSuccessWed Aug 15 01:38:03 200732
cm-debug-clear-mallocSuccessSat Aug 18 01:49:23 200738
cm-debug-clear-malloc7SuccessMon Aug 20 01:44:42 200738
cm64SuccessSun Aug 19 01:36:45 20078
cm64-debugSuccessTue Aug 21 01:38:42 200735
cm64-debug-clear-mallocSuccessThu Apr 1 11:29:18 200423
rs6000-aix
cmSuccessWed Mar 4 01:08:16 20091
cm-debugSuccessMon Mar 2 01:09:05 20097
cm64SuccessWed Mar 4 01:08:44 20091
cm64-debugSuccessTue Mar 3 01:14:58 20098
x86_64-linux
cmSuccessSun Mar 6 00:01:06 20160
cm-debugSuccessSat Mar 5 00:01:44 20161

Testing status by file:


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

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


CMISS Help / Examples / c / c4