Example 261: Find Xi coords of source dataset within host mesh

This example finds the Xi coords of a set of 3D points (in face_source.ipdata) relative to a 4-element 18-node bicubic-linear host mesh. The Xi-coords are output in face.ipxi. To view the host mesh and source data, run the CMGUI comfile view.com


The comfile run by this example is as follows:

#Find Xi locations within 4 element bicubic-linear host mesh.
#
#Read host mesh 
fem de coor;r;host;example          #3D r.c. coords
fem de base;r;host;example          #bicubic-linear etc
fem de node;r;host;example          #18 nodes in host mesh        
fem de elem;r;host;example          #4 elements in host mesh
#
#Write host mesh to .exnode & .exelem files
fem ex node;host as host
fem ex elem;host as host
#
#Read source data 
fem de data;r;face_source;example 
fem ex data;face_source as data           
#
#Calculate face Xi coords within the host & output face.ipxi
fem de xi;c contain         #find Xi's of source data
fem de xi;w;face            #write data pt Xi's to face.ipxi 
fem quit

Files used by this example are:

Name                Modified     Size

example_261.com 10-Apr-2000 700 face.ipxi 10-Apr-2000 5.8k face_source.exdata 10-Apr-2000 4.0k face_source.ipdata 10-Apr-2000 3.5k fixipnode.sh 10-Apr-2000 538 host.exelem 10-Apr-2000 9.2k host.exnode 10-Apr-2000 5.9k host.ipbase 10-Apr-2000 6.0k host.ipcoor 10-Apr-2000 588 host.ipelem 10-Apr-2000 1.5k host.ipnode 10-Apr-2000 16k view.com 10-Apr-2000 273

Download the entire example:

Name                      Modified     Size

examples_2_26_261.tar.gz 19-Aug-2006 8.2k

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

Input last modified: Mon Apr 10 17:22:10 2000


CMISS Help / Examples / 2 / 26 / 261