Example 131: Generating a 2D mesh of squares

This example uses the define mesh command to create a 2D mesh of squares.


The comfile run by this example is as follows:

#Example_131  Generating a 2D mesh of squares
 
fem
fem define bases;r;squaremesh;example   #defines a bilinear basis function
fem define mesh;r;squaremesh;example    #define a regular mesh with even
#                                   !  spacing and two elements in each
#                                   !  direction.
fem define window;c                 #open a graphics window to fit the
#                                   !  mesh.
fem draw nodes                      #draw the node numbers in their
#                                   !  positions on the mesh.
fem draw elements                   #draw the element numbers.
fem draw lines                      #draw the element lines.

Additional testing commands:

FEM list node
FEM list element

Files used by this example are:

Name               Modified     Size

example_131.com 10-Apr-2000 692 squaremesh.ipbase 10-Apr-2000 1.1k squaremesh.ipmesh 10-Apr-2000 849 test_output.com 10-Apr-2000 31

Download the entire example:

Name                      Modified     Size

examples_1_13_131.tar.gz 18-Aug-2006 3.2k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:30 20161
cm-debugFailureSun Mar 6 00:04:55 20161
last breakFri Apr 15 00:15:00 20111
last successThu Apr 7 00:07:00 20110
mips-irix
cmSuccessSun Aug 19 01:23:49 20072
cm-debugSuccessWed Aug 15 01:20:09 20074
cm-debug-clear-mallocSuccessSat Aug 18 01:22:39 20077
cm-debug-clear-malloc7SuccessMon Aug 20 01:20:04 20077
cm64SuccessSun Aug 19 01:21:46 20078
cm64-debugSuccessTue Aug 21 01:21:02 20075
cm64-debug-clear-mallocSuccessThu Apr 1 10:09:55 20042
rs6000-aix
cmSuccessWed Mar 4 01:06:44 20091
cm-debugSuccessMon Mar 2 01:06:03 20092
cm64SuccessWed Mar 4 01:06:44 20091
cm64-debugSuccessTue Mar 3 01:11:33 20090
x86_64-linux
cmSuccessSun Mar 6 00:01:00 20160
cm-debugSuccessSat Mar 5 00:01:11 20161

Testing status by file:


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

Input last modified: Wed Oct 2 10:34:13 2002


CMISS Help / Examples / 1 / 13 / 131