[vtkusers] Combining three velocity components
    Adam Wiktor 
    awiktor at emory.edu
       
    Mon Aug  3 11:26:22 EDT 2009
    
    
  
Thanks Gerrick, Wes, and Dominik. It works perfectly!
- Adam
On Mon, Aug 3, 2009 at 11:10 AM, Gerrick Bivins <gbivins at objectreservoir.com
> wrote:
>  Adam,
>
> Have you tried something like this:
> //1. Define array variable mappings for the calculator
>   velcalc.AddScalarVariable(“xComponent”,”x”,0)
>   velcalc.AddScalarVariable(“yComponent”,”x”,1)
>   velcalc.AddScalarVariable(“zComponent”,”x”,2)
>
> //2. Define the function for calculating the vector
>    velcalc.SetFunction(“xComponent*iHat + yComponent*jHat +
> zComponent*kHat”);
>
> //3. Name result array
>    velcalc.SetResultArrayName(“Vector”);
>
>
>
> On 8/3/09 9:51 AM, "Adam Wiktor" <awiktor at emory.edu> wrote:
>
> velcalc.AddVectorArrayName(_____________)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090803/10d25774/attachment.htm>
    
    
More information about the vtkusers
mailing list