<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>
&nbsp;&nbsp;velcalc.AddScalarVariable(&#8220;xComponent&#8221;,&#8221;x&#8221;,0)<BR>
&nbsp;&nbsp;velcalc.AddScalarVariable(&#8220;yComponent&#8221;,&#8221;x&#8221;,1)<BR>
&nbsp;&nbsp;velcalc.AddScalarVariable(&#8220;zComponent&#8221;,&#8221;x&#8221;,2)<BR>
<BR>
//2. Define the function for calculating the vector<BR>
&nbsp;&nbsp;&nbsp;velcalc.SetFunction(&#8220;xComponent*iHat + yComponent*jHat + zComponent*kHat&#8221;);<BR>
<BR>
//3. Name result array<BR>
&nbsp;&nbsp;&nbsp;velcalc.SetResultArrayName(&#8220;Vector&#8221;);<BR>
<BR>
<BR>
<BR>
On 8/3/09 9:51 AM, &quot;Adam Wiktor&quot; &lt;<a href="awiktor@emory.edu">awiktor@emory.edu</a>&gt; 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>