[vtkusers] Combining three velocity components

Gerrick Bivins gbivins at objectreservoir.com
Mon Aug 3 11:10:01 EDT 2009


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/b3e61793/attachment.htm>


More information about the vtkusers mailing list