Example a_backup/renumber_mesh: Renumbering a mesh.

Screenshot of example a_backup/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 20-Apr-2012 1.4k COPYRIGHT 19-Apr-2012 504 medrect.exelem 20-Apr-2012 118k medrect.exnode 20-Apr-2012 64k

Download the entire example:

Name                                    Modified     Size

examples_a_backup_renumber_mesh.tar.gz 12-Aug-2014 245k

Testing status by version:

StatusTestedReal time (s)
cmgui-wxSuccessSun Mar 6 00:06:37 20160
cmgui-wx-debugSuccessSun Mar 6 00:06:38 20161
cmgui-wx-debug-memorycheckSuccessSun Mar 6 00:06:39 20160
cmgui-wx-debug-valgrindSuccessSun Mar 6 00:30:42 201614
cmgui-wxSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debugSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debug-memorycheckSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debug-valgrindFailureSun Mar 6 00:03:47 201612
last breakSun Mar 6 00:03:00 201612
last successWed Jun 3 00:13:00 201513
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:04:07 201612

Testing status by file:

Html last generated: Sun Mar 6 05:51:00 2016

Input last modified: Fri Apr 20 16:01:09 2012

CMISS Help / Examples / a_backup / renumber_mesh