PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/42TestingPoints/SinglePhysics/NonlinearProblems/DynamicProblems/NavierStokes/2D/TRI/CubicVelocityQuadraticPressure/LEVEL_2/output/visualise.com

http://github.com/xyan075/examples
Unknown | 71 lines | 61 code | 10 blank | 0 comment | 0 complexity | 6b2497f7199f808d8ce8722139e15726 MD5 | raw file
 1#Read in the sequence of nodal positions.
 2for $i (1..3)
 3  {
 4	 $filename = sprintf("./output/TIME_STEP_%04d.exnode", $i);
 5	 print "Reading $filename time $i\n";
 6	 gfx read node "$filename" time $i;
 7  }
 8
 9#Read in the element description
10gfx read elem ./output/TIME_STEP_0001.exelem;
11gfx create window 1
12
13gfx cre spectrum flow
14gfx modify spectrum flow clear overwrite_colour;
15gfx modify spectrum flow linear reverse range 1 1.25 extend_above extend_below rainbow colour_range 0 1 component 2;
16
17gfx def field vector_field coord rectangular_cartesian component general.1 general.2
18
19gfx cre spectrum pressure
20gfx modify spectrum pressure linear reverse range -1 1 extend_above extend_below rainbow colour_range 0 1 component 3;
21
22gfx modify g_element OpenCMISS node_points glyph arrow_solid general size "0.1*0.1*0.1" centre 0,0,0 select_on material default selected_material default_selected data vector_field orientation vector_field scale_factors "0.1*0.1*0.1" spectrum flow
23
24gfx modify window 1 background colour 1 1 1
25
26gfx define faces egroup OpenCMISS
27gfx modify g_element OpenCMISS surfaces select_on material default selected_material default_selected data general spectrum pressure
28
29#Set the timekeeper playing
30gfx timekeeper default play speed 1 skip;
31gfx create time_editor
32
33gfx edit scene
34gfx edit spectrum
35gfx define field p_field coordinate_system rectangular_cartesian composite general.3;
36gfx define field vector_field coordinate_system rectangular_cartesian composite general.1 general.2;
37gfx define field mag_field coordinate_system rectangular_cartesian magnitude field vector_field;
38gfx modify spectrum default clear overwrite_colour;
39gfx modify spectrum default linear reverse range -1.52137 0.282306 extend_above extend_below rainbow colour_range 0 1 component 1;
40gfx modify spectrum flow clear overwrite_colour;
41gfx modify spectrum flow linear reverse range 1 1.25 extend_above extend_below rainbow colour_range 0 1 component 2;
42gfx modify spectrum pressure clear overwrite_colour;
43gfx modify spectrum pressure linear reverse range 0 1 extend_above extend_below rainbow colour_range 0 1 component 1;
44gfx modify spectrum pressure linear reverse range -1 1 extend_above extend_below rainbow colour_range 0 1 component 3;
45gfx create material black normal_mode ambient 0 0 0 diffuse 0 0 0 emission 0 0 0 specular 0.3 0.3 0.3 alpha 1 shininess 0.2;
46gfx create material blue normal_mode ambient 0 0 0.5 diffuse 0 0 1 emission 0 0 0 specular 0.2 0.2 0.2 alpha 1 shininess 0.2;
47gfx create material bone normal_mode ambient 0.7 0.7 0.6 diffuse 0.9 0.9 0.7 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
48gfx create material default normal_mode ambient 1 1 1 diffuse 1 1 1 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
49gfx create material default_selected normal_mode ambient 1 0.2 0 diffuse 1 0.2 0 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
50gfx create material gold normal_mode ambient 1 0.4 0 diffuse 1 0.7 0 emission 0 0 0 specular 0.5 0.5 0.5 alpha 1 shininess 0.3;
51gfx create material gray50 normal_mode ambient 0.5 0.5 0.5 diffuse 0.5 0.5 0.5 emission 0.5 0.5 0.5 specular 0.5 0.5 0.5 alpha 1 shininess 0.2;
52gfx create material green normal_mode ambient 0 0.5 0 diffuse 0 1 0 emission 0 0 0 specular 0.2 0.2 0.2 alpha 1 shininess 0.1;
53gfx create material muscle normal_mode ambient 0.4 0.14 0.11 diffuse 0.5 0.12 0.1 emission 0 0 0 specular 0.3 0.5 0.5 alpha 1 shininess 0.2;
54gfx create material red normal_mode ambient 0.5 0 0 diffuse 1 0 0 emission 0 0 0 specular 0.2 0.2 0.2 alpha 1 shininess 0.2;
55gfx create material silver normal_mode ambient 0.4 0.4 0.4 diffuse 0.7 0.7 0.7 emission 0 0 0 specular 0.5 0.5 0.5 alpha 1 shininess 0.3;
56gfx create material tissue normal_mode ambient 0.9 0.7 0.5 diffuse 0.9 0.7 0.5 emission 0 0 0 specular 0.2 0.2 0.3 alpha 1 shininess 0.2;
57gfx create material transparent_gray50 normal_mode ambient 0.5 0.5 0.5 diffuse 0.5 0.5 0.5 emission 0.5 0.5 0.5 specular 0.5 0.5 0.5 alpha 0 shininess 0.2;
58gfx create material white normal_mode ambient 1 1 1 diffuse 1 1 1 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
59gfx modify g_element OpenCMISS general clear circle_discretization 6 default_coordinate coordinates element_discretization "4*4*4" native_discretization none;
60gfx modify g_element OpenCMISS lines select_on material default selected_material default_selected;
61gfx modify g_element OpenCMISS node_points glyph arrow_solid general size "1*1*1" centre 0,0,0 font default orientation vector_field scale_factors "1*1*1" select_on material default data mag_field spectrum default selected_material default_selected;
62gfx modify g_element OpenCMISS surfaces select_on material default data p_field spectrum default selected_material default_selected render_shaded;
63gfx modify window 1 image scene default light_model default;
64gfx modify window 1 image add_light default;
65gfx modify window 1 layout simple ortho_axes z -y eye_spacing 0.25 width 512 height 512;
66gfx modify window 1 set current_pane 1;
67gfx modify window 1 background colour 1 1 1 texture none;
68gfx modify window 1 view parallel eye_point -5.14426 -26.338 22.9826 interest_point 0 0 0 up_vector 0.282893 0.598662 0.749384 view_angle 40 near_clipping_plane 0.353321 far_clipping_plane 126.265 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;
69gfx modify window 1 overlay scene none;
70gfx modify window 1 set transform_tool current_pane 1 std_view_angle 40 normal_lines no_antialias depth_of_field 0.0 fast_transparency blend_normal;
71