<HTML>
<HEAD>
<TITLE>Re: [vtkusers] Combining three velocity components</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Adam,<BR>
<BR>
Have you tried something like this:<BR>
//1. Define array variable mappings for the calculator<BR>
velcalc.AddScalarVariable(“xComponent”,”x”,0)<BR>
velcalc.AddScalarVariable(“yComponent”,”x”,1)<BR>
velcalc.AddScalarVariable(“zComponent”,”x”,2)<BR>
<BR>
//2. Define the function for calculating the vector<BR>
velcalc.SetFunction(“xComponent*iHat + yComponent*jHat + zComponent*kHat”);<BR>
<BR>
//3. Name result array<BR>
velcalc.SetResultArrayName(“Vector”);<BR>
<BR>
<BR>
<BR>
On 8/3/09 9:51 AM, "Adam Wiktor" <<a href="awiktor@emory.edu">awiktor@emory.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>velcalc.AddVectorArrayName(_____________)<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>