Example 123: Defining a 3D spherical polar mesh


The comfile run by this example is as follows:

#Example_123  Defining a 3D spherical polar mesh

fem                            #set the FEM environment
fem define coordinates;r;3dspmesh;example  #defines 3D cylindrical polar 
#                              !  coordinates, r^3 interpolation
fem define nodes;r;;example        #defines 4 nodes for a 3D spherical shell
fem define bases;r;;example        #defines 1)trilinear & 2) bilinear bases
fem define element;r;;example      #defines 1 element
fem define window;p on xz      #define window with range -2 to 2 in
#                              !  xz view
fem define window;p on xy      #define window with range -2 to 2 in
#                              !  xy view
fem define window;p on yz      #define window with range -2 to 2 in
#                              !  yz view
fem draw axes                  #
fem draw nodes                 #drawn on all three windows
fem draw lines                 #

Files used by this example are:

Name             Modified     Size

example_123.com 10-Apr-2000 907 3dspmesh.ipbase 10-Apr-2000 2.5k 3dspmesh.ipcoor 10-Apr-2000 680 3dspmesh.ipelem 10-Apr-2000 439 3dspmesh.ipnode 10-Apr-2000 1.2k 3dspmesh.ipwind 10-Apr-2000 293

Download the entire example:

Name                      Modified     Size

examples_1_12_123.tar.gz 18-Aug-2006 2.3k

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

Input last modified: Mon Apr 10 17:20:13 2000


CMISS Help / Examples / 1 / 12 / 123