Example e2: 2D slice simulations

2D torso slice simulation.


The comfile run by this example is as follows:

# Example e2  
# ----------
#


fem def node;r;torsoslice;example            #Defines nodes for a 2D slice 
#                                            # through a torso and heart.
fem def window;c
fem def base;r;;example                      #Defines a cubic Hermite BEM basis
#                                            # function.
fem def elem;r;;example                      #Defines 17 elements.
fem draw nodes                               #Draws the nodes around the torso 
#                                            # and heart.
fem draw elements                            #Draws the elements.  Note that the
#                                            # elements lie around the boundary of
#                                            # the slice, not running 'through' it
#                                            # as they would with a FEM mesh.
fem draw lines                               #We can now see the outline of the 
#                                            # 2D slice.


#
#----------------------------#
# Setup equations
#----------------------------#
#
fem def equa;r;;example                      #Defines Laplace equation to be solved.
fem def mate;r;;example
fem def init;r;;example                      #The boundary conditions are defined 
#                                            # as x^2-y^2 on the heart, and no 
#                                            # flux on the body.

Additional testing commands:

fem def solv;r;;example
fem solve
#fem write matrix matrices GK,GQ,YP          #Writes out matrices if needed 
#                                            # (kind of big, so only do this if
#                                            # you really need to).
fem def tran;r;;example                      #Sets up a transfer matrix for forward 
#                                            # and inverse solutions.
fem evaluate transfer SVD
fem def inve;r;;example
fem evaluate inverse;torsoslice SVD
fem apply inverse

Files used by this example are:

Name               Modified     Size

example_e2.com 20-Nov-2001 1.4k test_output.com 20-Nov-2001 518 torsoslice.ipbase 10-Apr-2000 1.2k torsoslice.ipelem 10-Apr-2000 4.3k torsoslice.ipequa 26-May-2003 1.3k torsoslice.ipinit 10-Apr-2000 3.4k torsoslice.ipinve 06-Dec-2001 570 torsoslice.ipmate 10-Apr-2000 81 torsoslice.ipnode 10-Apr-2000 4.8k torsoslice.ipsolv 13-Apr-2007 1.5k torsoslice.iptrsf 01-Nov-2001 798

Download the entire example:

Name                  Modified     Size

examples_e_e2.tar.gz 14-Apr-2007 6.6k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:33 20160
cm-debugSuccessSat Mar 5 00:04:26 20160
mips-irix
cmSuccessSun Aug 19 01:26:30 20073
cm-debugSuccessWed Aug 15 01:22:55 20076
cm-debug-clear-mallocSuccessSat Aug 18 01:28:51 200710
cm-debug-clear-malloc7SuccessMon Aug 20 01:25:25 200710
cm64SuccessSun Aug 19 01:28:42 20073
cm64-debugSuccessTue Aug 21 01:20:20 20076
cm64-debug-clear-mallocSuccessThu Apr 1 11:55:24 20048
rs6000-aix
cmSuccessWed Mar 4 01:07:52 20090
cm-debugSuccessMon Mar 2 01:06:27 20091
cm64SuccessWed Mar 4 01:07:52 20091
cm64-debugSuccessTue Mar 3 01:11:47 20091
x86_64-linux
cmSuccessSun Mar 6 00:01:06 20160
cm-debugSuccessSat Mar 5 00:01:37 20160

Testing status by file:


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

Input last modified: Fri Apr 13 10:41:44 2007


CMISS Help / Examples / e / e2