Example a/seeded_streamlines: Generate seeded streamlines.

Generate seeded streamlines from a planar isosurface in a tetrahedral mesh.

Screenshot of example a/seeded_streamlines


The comfile run by this example is as follows:

gfx read nodes $example/CAVITY.exnode.gz;
gfx read elements $example/CAVITY.exelem.gz;

gfx define faces egroup set;

gfx define field test_vector constant 1.0 1.0 1.0;

gfx define field vector_magnitude magnitude field v_field;

#You can simply track a streamline seeded at a location in all elements or a single element as shown here.

gfx define field coordinates.z component coordinates.z;
gfx define field density constant 100;

# define a field returning locations in the mesh at equivalent coordinates
gfx define field find_element_xi find_mesh_location find_exact mesh mesh3d mesh_field coordinates source_field coordinates;


gfx modify g_element set general clear circle_discretization 6 default_coordinate coordinates element_discretization "1*1*1" native_discretization none;
gfx modify g_element set lines exterior select_on material default selected_material default_selected;

gfx modify g_element set iso_surfaces as seed_surface iso_scalar coordinates.z iso_values 0.515 use_elements select_on material default data density spectrum default selected_material default_selected render_wireframe;

gfx create egroup seeds;
gfx define graphics_filter seed_surface match_graphics_name seed_surface;
# old command prior to cmgui 3.0:
# gfx convert graphics coordinate coordinates render_surface_node_cloud region seeds scene seed_surface;
gfx convert graphics coordinate coordinates render_surface_node_cloud region seeds filter seed_surface surface_density 0 surface_density_scale_factor 1;

gfx modify g_element seeds node_points glyph sphere general size "0.01*0.01*0.01" centre 0,0,0 font default select_on material default selected_material default_selected;

gfx modify g_element set streamlines as streamlines coordinate coordinates seed_nodeset seeds.nodes seed_node_mesh_location_field find_element_xi xi 0.2,0.1,0.2 cylinder vector v_field length 500 width 0.01 magnitude_scalar select_on material gold selected_material default_selected;

gfx modify g_element set iso_surfaces as seed_surface invisible;

gfx modify spectrum default autorange;

Files used by this example are:

Name                    Modified     Size

seeded_streamlines.com 17-Mar-2014 2.0k CAVITY.exelem.gz 17-Mar-2014 54k CAVITY.exnode.gz 17-Mar-2014 44k COPYRIGHT 17-Mar-2014 504

Download the entire example:

Name                                  Modified     Size

examples_a_seeded_streamlines.tar.gz 09-Mar-2016 864k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmgui-wxFailureSun Mar 6 00:05:52 20161
last breakMon Aug 25 13:15:00 20142
cmgui-wx-debugFailureSun Mar 6 00:07:07 20161
last breakMon Aug 25 13:17:00 20143
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:19:05 20166
last breakMon Aug 25 13:06:00 201412
cmgui-wx-debug-valgrindFailureSun Mar 6 01:10:38 201648
last breakTue Feb 24 00:23:00 201554
x86_64-linux
cmgui-wxFailureSun Mar 6 00:01:33 20161
last breakFri Aug 15 00:37:00 20141
cmgui-wx-debugFailureSun Mar 6 00:01:33 20161
last breakFri Aug 15 00:37:00 20141
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:01:55 20163
last breakFri Aug 15 00:37:00 20144
cmgui-wx-debug-valgrindFailureSun Mar 6 00:05:51 201644
last breakSun Mar 6 00:05:00 201644
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:07:30 201647

Testing status by file:


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

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


CMISS Help / Examples / a / seeded_streamlines