Example 232: Fitting a Temperature Field to 2 Meshes

Fits a scalar temperature field to 2 disjoint elements. The data is orthoganally projected onto the two elements. The field is the function x^2 + y^2 defined by the first element. The same field is replicated on the second element.

This example can also be visualised: This shows the fitted field on each of the surfaces. The gold spheres represent the data points. The comfile is draw.com

Fitted Fields


The comfile run by this example is as follows:


fem def coor 3,1
fem def base;r;bilinear;example


fem def node;r;square;example
fem def elem;r;square;example

fem def field;r;square;example
fem def elem;r;square;example field

fem def data;r;temp;example field
fem def xi;c closest
fem def xi;w;temp_data
fem export data;temp_data as temp_data error


fem def fit;r;square;example
fem fit field

fem export node;square as square
fem export elem;square as square



Additional testing commands:


fem li node


Files used by this example are:

Name              Modified     Size

example_232.com 10-Apr-2000 419 bilinear.ipbase 10-Apr-2000 3.4k draw.com 24-Aug-2000 1.0k square.exelem 10-Apr-2000 2.5k square.exnode 10-Apr-2000 1.3k square.ipelem 10-Apr-2000 755 square.ipelfd 10-Apr-2000 359 square.ipfiel 10-Apr-2000 940 square.ipfit 13-Apr-2007 1.6k square.ipnode 10-Apr-2000 1.7k temp.exelem 10-Apr-2000 936 temp.exnode 10-Apr-2000 295 temp.ipdata 10-Apr-2000 476 temp_data.exdata 10-Apr-2000 1.5k temp_data.ipxi 10-Apr-2000 732 test_output.com 10-Apr-2000 14

Download the entire example:

Name                      Modified     Size

examples_2_23_232.tar.gz 14-Apr-2007 29k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:39 20160
cm-debugSuccessSat Mar 5 00:01:57 20161
mips-irix
cmSuccessSun Aug 19 01:24:10 20073
cm-debugSuccessWed Aug 15 01:20:04 20075
cm-debug-clear-mallocSuccessSat Aug 18 01:22:21 20079
cm-debug-clear-malloc7SuccessMon Aug 20 01:20:49 20078
cm64SuccessSun Aug 19 01:22:46 20073
cm64-debugSuccessTue Aug 21 01:19:03 20075
cm64-debug-clear-mallocSuccessThu Apr 1 10:11:59 20042
rs6000-aix
cmSuccessWed Mar 4 01:06:53 20091
cm-debugSuccessMon Mar 2 01:06:06 20091
cm64SuccessWed Mar 4 01:06:53 20091
cm64-debugSuccessTue Mar 3 01:11:36 20090
x86_64-linux
cmSuccessSun Mar 6 00:01:01 20161
cm-debugSuccessSat Mar 5 00:01:12 20161

Testing status by file:


Graphical output from this problem is given here.


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

Input last modified: Fri Apr 13 10:31:18 2007


CMISS Help / Examples / 2 / 23 / 232