Example 263: Find Xi coords of region 2 nodes within region 1 host mesh

This example uses the Xi coords of a set of 3D points (in face.ipxi - created by example 261) together with their target locations (in face_target.ipdata) to fit the nodes of a 4-element 18-node bicubic-linear host mesh. Distortion of the host mesh serves to match To view the host mesh and source data and target data, run the CMGUI comfile view.com

The comfile run by this example is as follows:

fem de coor;r;test
fem de regi;r;test               #reads in 2 regions
fem de base;r;test               #trilinear and bilinear basis functions

# Read in the host and slave meshes
fem de node;r;host reg 1
fem de elem;r;host reg 1
fem de node;r;slave reg 2
fem de elem;r;slave reg 2

# Export the host and slave meshes to cmgui
fem export node;host as host reg 1
fem export elem;host as host reg 1
fem export node;slave as slave reg 2
fem export elem;slave as slave reg 2

fem de wind
fem dr line reg all
fem dr node reg all

# Calculate the xi positions of the slave in the host mesh
fem de xi;c nodes contain of 2 in 1
fem li xi node
fem def xi;w;slave node reg 2

#fem q

Files used by this example are:

Name             Modified     Size

example_263.com 10-Apr-2000 694 draw.com 09-Feb-2005 197 host.exelem 10-Apr-2000 3.5k host.exnode 10-Apr-2000 994 host.ipelem 10-Apr-2000 393 host.ipnode 10-Apr-2000 1.8k junk.ipregi 10-Apr-2000 93 slave.exelem 10-Apr-2000 1.7k slave.exnode 10-Apr-2000 607 slave.ipelem 10-Apr-2000 394 slave.ipnode 10-Apr-2000 1.1k slave.ipxi 10-Apr-2000 244 test.ipbase 10-Apr-2000 2.4k test.ipcoor 10-Apr-2000 570 test.ipregi 10-Apr-2000 93

Download the entire example:

Name                      Modified     Size

examples_2_26_263.tar.gz 19-Aug-2006 3.8k

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

Input last modified: Wed Feb 9 17:43:42 2005

CMISS Help / Examples / 2 / 26 / 263