Changeset 5591


Ignore:
Timestamp:
May 21, 2015 4:10:02 AM (6 years ago)
Author:
ldelgass
Message:

Fixes for flow examples

Location:
trunk/examples/flow
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/flow/demo1/demo1.tcl

    r5581 r5591  
    11
    22# Example of using a unirect3d mesh in a vector field
     3# This is inlucded for testing purposes, since unirect3d outputs are deprecated
    34source data-demo1.tcl
    45
  • trunk/examples/flow/demo2/demo2.tcl

    r3484 r5591  
    11
    2 # Example of using unirect2d mesh in a vector field.
    3 source data-unirect2d.tcl
     2# Example of using unirect2d mesh with a vector field.
     3# This is included only for testing purposes, since unirect2d meshes are
     4# deprecated.
     5if 0 {
     6    # extents=2 is deprecated, since VTK needs 3D vectors, even for 2D meshes
     7    # Enabling this block should cause an error
     8    source data-unirect2d.tcl
     9    set extents 2
     10} else {
     11    source data-2dflow.tcl
     12    set extents 3
     13}
    414
    515package require Rappture
     
    717set driver [Rappture::library [lindex $argv 0]]
    818
    9 set elements {
     19set elements [subst {
    1020    output.field.about.label "Flow 2d half"
    1121    output.field.component.flow.axis z
     
    2737    output.field.component.style  "-nonuniformcolors {0.0 steelblue4 0.000001 blue 0.01 green  0.1 grey 1.0 white} -markers {1% 2% 3% 5% 8% 10% 20% 50% 80%} -opacity 1"
    2838    output.field.camera.position {
    29         qw 1 qx 0 qy 0 qz 0 pan-x 0 pan-y 0 zoom 1.0
     39        -qw 1 -qx 0 -qy 0 -qz 0 -xpan 0 -ypan 0 -zoom 1.0
    3040    }
    31     output.field.component.extents 2
     41    output.field.component.extents $extents
    3242    output.field.component.mesh unirect2d
    3343    unirect2d.xaxis.min -0.5
     
    3848    unirect2d.yaxis.numpoints  109
    3949    unirect2d.components 2
    40 }
     50}]
    4151
    4252puts stdout "Setting attributes for demo1"
  • trunk/examples/flow/demo3/demo3.tcl

    r1464 r5591  
    11
    22# Example of using dx file in a vector field.
     3# This is included for testing purposes, since DX file data is deprecated
    34source data-dx.tcl
    45
  • trunk/examples/flow/flowtest.tcl

    r5581 r5591  
    8686    $f2.component.style  "-color rainbow -levels 6"
    8787    $f2.camera.position {
    88         qw 1 qx 0 qy 0 qz 0 pan-x 0 pan-y 0 zoom 1.0
     88        -qw 1 -qx 0 -qy 0 -qz 0 -xpan 0 -ypan 0 -zoom 1.0
    8989    }
    9090    $f2.component.elemtype vectors
Note: See TracChangeset for help on using the changeset viewer.