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 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;
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
Name Modified Size
examples_a_seeded_streamlines.tar.gz 09-Mar-2016 864k
Status | Tested | Real time (s) | |
i686-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:05:52 2016 | 1 |
last break | Mon Aug 25 13:15:00 2014 | 2 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:07:07 2016 | 1 |
last break | Mon Aug 25 13:17:00 2014 | 3 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:19:05 2016 | 6 |
last break | Mon Aug 25 13:06:00 2014 | 12 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 01:10:38 2016 | 48 |
last break | Tue Feb 24 00:23:00 2015 | 54 | |
x86_64-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:01:33 2016 | 1 |
last break | Fri Aug 15 00:37:00 2014 | 1 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:01:33 2016 | 1 |
last break | Fri Aug 15 00:37:00 2014 | 1 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:01:55 2016 | 3 |
last break | Fri Aug 15 00:37:00 2014 | 4 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 00:05:51 2016 | 44 |
last break | Sun Mar 6 00:05:00 2016 | 44 | |
cmgui-wx-gcc-cad-debug-valgrind | Success | Thu Jan 7 00:07:30 2016 | 47 |
i686-linux | |||
Failure | cmgui-wx: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-memorycheck: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-valgrind: | diff test: differences with generic answer; Test output. | |
x86_64-linux | |||
Failure | cmgui-wx: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-memorycheck: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-valgrind: | diff test: differences with generic answer; Test output. |
Html last generated: Wed Mar 9 16:02:35 2016
Input last modified: Wed Mar 9 15:49:43 2016