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_backup_seeded_streamlines.tar.gz 12-Aug-2014 864k
Status | Tested | Real time (s) | |
i686-linux | |||
cmgui-wx | Success | Sun Mar 6 00:21:39 2016 | 7 |
cmgui-wx-debug | Success | Sun Mar 6 00:26:43 2016 | 12 |
cmgui-wx-debug-memorycheck | Success | Sun Mar 6 01:31:05 2016 | 115 |
cmgui-wx-debug-valgrind | Success | Sun Mar 6 02:13:00 2016 | 354 |
x86_64-linux | |||
cmgui-wx | Success | Thu Jan 7 00:01:49 2016 | 3 |
cmgui-wx-debug | Success | Thu Jan 7 00:02:05 2016 | 7 |
cmgui-wx-debug-memorycheck | Success | Thu Jan 7 00:07:50 2016 | 56 |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 00:13:45 2016 | 306 |
last break | Sun Mar 6 00:08:00 2016 | 306 | |
last success | Wed Jun 3 01:23:00 2015 | 302 | |
cmgui-wx-gcc-cad-debug-valgrind | Success | Thu Jan 7 00:16:05 2016 | 317 |
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. | |
Failure | cmgui-wx-debug-valgrind: | diff test: differences with generic answer; Test output. |
Html last generated: Sun Mar 6 05:51:00 2016
Input last modified: Fri Apr 20 16:01:15 2012