PageRenderTime 37ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/MultiPhysics/Poroelasticity/FiniteElasticityDarcy/IncompressibleElasticityDrivenDarcyIO3/output/vis_fluid_dyn.com

http://github.com/xyan075/examples
Unknown | 49 lines | 34 code | 15 blank | 0 comment | 0 complexity | 44d15e5df6d060bba4ed6ba956dc6c4f MD5 | raw file
 1#Read in the sequence of nodal positions.
 2for $i (1..2)
 3  {
 4	 $filename = sprintf("./output/TIME_STEP_%04d.exnode", $i);
 5#	 $filename = sprintf("./output/T_001_SUB_%04d.exnode", $i);
 6	 print "Reading $filename time $i\n";
 7	 gfx read node "$filename" time $i;
 8  }
 9
10#Read in the element description
11gfx read elem ./output/TIME_STEP_0001.exelem;
12gfx create window 1
13
14gfx cre spectrum flow
15gfx modify spectrum flow clear overwrite_colour;
16gfx modify spectrum flow linear reverse range 0 1 extend_above extend_below rainbow colour_range 0 1 component 1;
17
18gfx def field vector_field coord rectangular_cartesian component general.1 general.2 general.3
19
20gfx def field vec_mag mag field vector_field
21
22gfx cre spectrum mass_increase
23gfx modify spectrum mass_increase linear reverse range -0.0002 0.0002 extend_above extend_below rainbow colour_range 0 1 component 4;
24
25#gfx cre spectrum material_spec
26#gfx modify spectrum material_spec linear reverse range 0.25 0.35 extend_above extend_below rainbow colour_range 0 1 component material 1;
27
28gfx cre spectrum source_spectrum
29gfx modify spectrum source_spectrum linear reverse range 4.199 4.201 extend_above extend_below rainbow colour_range 0 1 component source 4;
30
31gfx modify g_element OpenCMISS node_points glyph arrow_solid general size "1.5*1.5*1.5" centre 0,0,0 select_on material default selected_material default_selected data vec_mag orientation vector_field scale_factors "1.0*1.0*1.0" spectrum flow
32
33gfx modify window 1 background colour 1 1 1
34
35gfx define faces egroup OpenCMISS
36gfx modify g_element OpenCMISS surfaces select_on material default selected_material default_selected data general spectrum mass_increase
37
38#gfx define faces egroup OpenCMISS
39#gfx modify g_element OpenCMISS surfaces select_on material default selected_material default_selected data material spectrum material
40
41#Set the timekeeper playing
42gfx timekeeper default play speed 5 skip;
43gfx create time_editor
44
45gfx edit scene
46gfx edit spectrum
47
48#gfx mod win 1 view near_clipping 6.5
49