Example 25: Fit field data and draws a contour plot in 2D.

This is a two dimensional example which fits field data and draws a contour plot of the field.


The comfile run by this example is as follows:

fem define node;r;contour;example   #6 nodes
fem define base;r;;example          #bilinear basis
fem define element;r;;example       #2 elements
fem define field;r;;example         #1 field position
fem define element;r;;example field #bilinear basis for field
fem define data;r;;example field    #12 data points
fem define xi;c internal            #calculate Xi positions for data
fem define fit;r;;example field     #no smoothing & no constraints
fem define window                   #create 2d graphics window
fem draw line                       #
fem fit                             #fit the 6 nodal field values
fem draw field                      #draw colour plot of field
fem draw contour field              #default contours
fem

Additional testing commands:

FEM list data error
FEM list nodes

Files used by this example are:

Name             Modified     Size

example_25.com 10-Apr-2000 737 contour.com 10-Apr-2000 915 contour.ipbase 10-Apr-2000 1.1k contour.ipdata 10-Apr-2000 1.6k contour.ipelem 10-Apr-2000 593 contour.ipelfd 10-Apr-2000 368 contour.ipfiel 10-Apr-2000 771 contour.ipfit 13-Apr-2007 1.6k contour.ipnode 10-Apr-2000 1.1k simple2hard.txt 10-Apr-2000 241 test_output.com 10-Apr-2000 35

Download the entire example:

Name                  Modified     Size

examples_2_25.tar.gz 27-Aug-2010 4.5k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:41 20160
cm-debugSuccessSat Mar 5 00:01:58 20160
mips-irix
cmSuccessSun Aug 19 01:22:00 20073
cm-debugSuccessWed Aug 15 01:20:37 20074
cm-debug-clear-mallocSuccessSat Aug 18 01:23:21 20078
cm-debug-clear-malloc7SuccessMon Aug 20 01:21:08 20078
cm64SuccessSun Aug 19 01:25:17 20072
cm64-debugSuccessTue Aug 21 01:18:49 20075
cm64-debug-clear-mallocSuccessThu Apr 1 10:12:16 20043
rs6000-aix
cmSuccessWed Mar 4 01:06:54 20091
cm-debugSuccessMon Mar 2 01:06:15 20091
cm64SuccessWed Mar 4 01:06:54 20091
cm64-debugSuccessTue Mar 3 01:11:37 20090
x86_64-linux
cmSuccessSun Mar 6 00:01:01 20160
cm-debugSuccessSat Mar 5 00:01:12 20160

Testing status by file:


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

Input last modified: Thu Aug 26 13:18:37 2010


CMISS Help / Examples / 2 / 25