PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/42TestingPoints/SinglePhysics/LinearProblems/StaticProblems/Stokes/3D/HEX/CubicVelocityQuadraticPressure/LEVEL_2/output/visualise.com

http://github.com/xyan075/examples
Unknown | 57 lines | 49 code | 8 blank | 0 comment | 0 complexity | 8c9b4d3f5d719ba1dc82b754f7857733 MD5 | raw file
 1gfx read node './output/STATICSOLUTION.exnode'
 2gfx read elem './output/STATICSOLUTION.exelem'
 3gfx create window 1
 4
 5gfx cre spectrum flow
 6gfx modify spectrum flow clear overwrite_colour;
 7gfx modify spectrum flow linear reverse range 1 1.25 extend_above extend_below rainbow colour_range 0 1 component 2;
 8
 9gfx def field vector_field coord rectangular_cartesian component general.1 general.2 general.3
10
11gfx cre spectrum pressure
12gfx modify spectrum pressure linear reverse range 5 15 extend_above extend_below rainbow colour_range 0 1 component 4;
13
14gfx 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
15
16gfx modify window 1 background colour 1 1 1
17
18gfx define faces egroup OpenCMISS
19gfx modify g_element OpenCMISS surfaces select_on material default selected_material default_selected data general spectrum pressure
20
21
22gfx define field p_field coordinate_system rectangular_cartesian composite general.4;
23gfx define field vector_field coordinate_system rectangular_cartesian composite general.1 general.2 general.3;
24gfx define field mag_field coordinate_system rectangular_cartesian magnitude field vector_field;
25gfx modify spectrum default clear overwrite_colour;
26gfx modify spectrum default linear reverse range 0 1 extend_above extend_below rainbow colour_range 0 1 component 1;
27gfx modify spectrum flow clear overwrite_colour;
28gfx modify spectrum flow linear reverse range 1 1.25 extend_above extend_below rainbow colour_range 0 1 component 2;
29gfx modify spectrum pressure clear overwrite_colour;
30gfx modify spectrum pressure linear reverse range 0 1 extend_above extend_below rainbow colour_range 0 1 component 1;
31gfx modify spectrum pressure linear reverse range 5 15 extend_above extend_below rainbow colour_range 0 1 component 4;
32gfx 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;
33gfx 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;
34gfx 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;
35gfx 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;
36gfx 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;
37gfx 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;
38gfx 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;
39gfx 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;
40gfx 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;
41gfx 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;
42gfx 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;
43gfx 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;
44gfx 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;
45gfx 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;
46gfx modify g_element OpenCMISS general clear circle_discretization 6 default_coordinate coordinates element_discretization "4*4*4" native_discretization none;
47gfx modify g_element OpenCMISS lines select_on material default selected_material default_selected;
48gfx modify g_element OpenCMISS node_points glyph arrow_solid general size "0.1*0.1*0.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;
49gfx modify g_element OpenCMISS surfaces select_on material default data p_field spectrum default selected_material default_selected render_shaded;
50gfx modify window 1 image scene default light_model default;
51gfx modify window 1 image add_light default;
52gfx modify window 1 layout simple ortho_axes z -y eye_spacing 0.25 width 512 height 512;
53gfx modify window 1 set current_pane 1;
54gfx modify window 1 background colour 1 1 1 texture none;
55gfx modify window 1 view parallel eye_point 0 -35.3321 0 interest_point 0 0 0 up_vector 0 0 1 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;
56gfx modify window 1 overlay scene none;
57gfx 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;