PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/42TestingPoints/SinglePhysics/LinearProblems/DynamicProblems/Stokes/2D/QUAD/QuadraticVelocityLinearPressure/LEVEL_1/output/visualise.com

http://github.com/xyan075/examples
Unknown | 42 lines | 33 code | 9 blank | 0 comment | 0 complexity | d2e24bff9c451843ec1f96e9bb08a762 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 5 15 extend_above extend_below rainbow colour_range 0 1 component 4;
21
22gfx modify g_element OpenCMISS node_points glyph arrow_solid general size "1.0*1.0*1.0" centre 0,0,0 select_on material default selected_material default_selected data vector_field orientation vector_field scale_factors "1.0*1.0*1.0" 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 modify window 1 image scene default light_model default;
36gfx modify window 1 image add_light default;
37gfx modify window 1 layout 2d ortho_axes z -y eye_spacing 0.25 width 512 height 512;
38gfx modify window 1 set current_pane 1;
39gfx modify window 1 background colour 1 1 1 texture none;
40gfx modify window 1 view parallel eye_point 5 5 28.8485 interest_point 5 5 0 up_vector -0 1 -0 view_angle 40 near_clipping_plane 0.288485 far_clipping_plane 103.095 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;
41gfx modify window 1 overlay scene none;
42gfx 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;