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


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 cmiss_mesh_3d 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_graphic_name seed_surface; gfx define scene seed_surface filter seed_surface; gfx convert graphics coordinate coordinates render_surface_node_cloud region seeds scene seed_surface; 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.cmiss_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;
Name Modified Size
seeded_streamlines.com 20-Apr-2012 1.9k CAVITY.exelem.gz 20-Apr-2012 54k CAVITY.exnode.gz 20-Apr-2012 44k COPYRIGHT 19-Apr-2012 504
Name Modified Size
examples_a_seeded_streamlines.tar.gz 20-Apr-2012 431k
| Status | Tested | Real time (s) | |
| i686-linux | |||
| cmgui-wx | Success | Wed May 16 00:42:56 2012 | 34 |
| cmgui-wx-debug | Success | Wed May 16 00:53:37 2012 | 51 |
| cmgui-wx-debug-memorycheck | Success | Mon May 14 03:28:48 2012 | 666 |
| cmgui-wx-debug-valgrind | Success | Fri May 11 04:01:18 2012 | 2105 |
| x86_64-linux | |||
| cmgui-wx | Success | Wed May 16 00:10:01 2012 | 5 |
| cmgui-wx-debug | Success | Wed May 16 00:11:39 2012 | 8 |
| cmgui-wx-debug-memorycheck | Success | Wed May 16 00:45:44 2012 | 91 |
| cmgui-wx-debug-valgrind | Success | Wed May 16 01:18:10 2012 | 348 |
| cmgui-wx-gcc-cad-debug-valgrind | Success | Wed May 16 01:17:48 2012 | 326 |
| i686-linux | |||
| Success | cmgui-wx: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug-memorycheck: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug-valgrind: | diff test: no differences with generic answer. | |
| x86_64-linux | |||
| Success | cmgui-wx: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug-memorycheck: | diff test: no differences with generic answer. | |
| Success | cmgui-wx-debug-valgrind: | diff test: no differences with generic answer. |
Html last generated: Wed May 16 05:58:10 2012
Input last modified: Fri Apr 20 16:01:15 2012