Example a/renumber_mesh: Renumbering a mesh.

Screenshot of example a/renumber_mesh


The comfile run by this example is as follows:

# Example a/renumber_mesh:  Renumber a mesh using the xi directions to sort nodes and elements

# Read in some geometry to hold our texture and define coordinates.
gfx read node $example/medrect.exnode;
gfx read element $example/medrect.exelem;

# Define an xi texture field starting at an element in the mesh
gfx define field xi_texture integration coordinate xi seed 1;

# I want to vary by xi2 first and then xi1 so I swap the order of the components
gfx define field sort_field composite xi_texture.2 xi_texture.1;

# Sort the nodes and elements based on this field
gfx change_identifier sort_by sort_field node_offset 1 element_offset 1 line_offset 1 face_offset 1;


gfx modify g_element medrect general clear circle_discretization 6 default_coordinate coordinates element_discretization "4*4*4" native_discretization none;
gfx modify g_element medrect lines select_on material black selected_material default_selected;
gfx modify g_element medrect surfaces select_on material default data cmiss_number spectrum default selected_material default_selected render_shaded;
gfx modify g_element medrect node_points glyph sphere general size "1*1*1" centre 0,0,0 font default select_on material default data cmiss_number spectrum default selected_material default_selected;

gfx mod spectrum default auto;

gfx write node medrect_renumbered.exnode group medrect;
gfx write element medrect_renumbered.exelem group medrect;

Files used by this example are:

Name               Modified     Size

renumber_mesh.com 17-Mar-2014 1.4k COPYRIGHT 17-Mar-2014 504 medrect.exelem 30-Mar-2015 118k medrect.exnode 17-Mar-2014 64k

Download the entire example:

Name                             Modified     Size

examples_a_renumber_mesh.tar.gz 09-Mar-2016 245k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmgui-wxFailureSun Mar 6 00:05:51 20160
last breakTue Mar 31 00:10:00 20153
cmgui-wx-debugFailureSun Mar 6 00:05:51 20161
last breakTue Mar 31 00:10:00 20152
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:05:51 20160
last breakTue Mar 31 00:09:00 20151
cmgui-wx-debug-valgrindFailureSun Mar 6 00:27:52 201614
last breakSun Mar 6 00:27:00 201614
x86_64-linux
cmgui-wxFailureSun Mar 6 00:01:33 20160
last breakThu Apr 2 00:18:00 20150
cmgui-wx-debugFailureSun Mar 6 00:01:33 20160
last breakThu Apr 2 00:18:00 20150
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:01:33 20160
last breakThu Apr 2 00:18:00 20150
cmgui-wx-debug-valgrindFailureSun Mar 6 00:03:35 201612
last breakSun Mar 6 00:03:00 201612
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:03:01 201610

Testing status by file:


Html last generated: Wed Mar 9 16:02:33 2016

Input last modified: Wed Mar 9 15:49:37 2016


CMISS Help / Examples / a / renumber_mesh