AW: [Paraview] Combine vect
Amy Henderson
amy.henderson at kitware.com
Thu, 13 May 2004 14:58:19 -0400
S=F6ren,
I'm copying this to the paraview mailing list so others can benefit from=20
the answers.
- Amy
>Date: Thu, 13 May 2004 14:56:25 -0400
>To: S=F6ren Freudiger <freud at cab.bau.tu-bs.de>, "'Amy Henderson'"=20
><amy.henderson at kitware.com>
>From: Amy Henderson <amy.henderson at kitware.com>
>Subject: Re: AW: [Paraview] Combine vect
>
>At 02:52 PM 5/13/2004, S=F6ren Freudiger wrote:
>>Hello again...
>>Thanks for that very quick answer.
>>But this does ot seem to work...
>>I only got absolutly straight streamlines by doing this.
>>
>>iHat * x1-vel + jHat * x3-vel + kHat * x3-vel
>>
>>If I write
>>
>>(iHat * x1-vel) + (jHat * x3-vel) + (kHat * x3-vel)
>>
>>I'll get totaly differnet results...
>
>If you want the components of your vector to be x1-vel, x2-vel, and=20
>x3-vel, then your equation should be:
>iHat * (x1-vel) + jHat * (x2-vel) + kHat * (x3-vel)
>
>The standard mathematical order of operations applies. In your=20
>expressions, things in parentheses are computed first, followed by=20
>multiplication, followed by addition and subtraction.
>
>- Amy
>
>>--
>>Dipl.-Ing. Soeren Freudiger
>>Institut fuer ComputerAnwendungen im Bauingenieurwesen
>>TU Braunschweig, Pockelsstr. 3, D-38106 Braunschweig
>>Tel.: +49 531/391-7595, Mobil: +49 176/210 17 444
>>email: freud at cab.bau.tu-bs.de
>>http://www.cab.bau.tu-bs.de/
>>-----Urspr=FCngliche Nachricht-----
>>Von: Amy Henderson [mailto:amy.henderson at kitware.com]
>>Gesendet: Donnerstag, 13. Mai 2004 19:28
>>An: S=F6ren Freudiger; paraview at paraview.org
>>Betreff: Re: [Paraview] Combine vect
>>
>>Hi S=F6ren,
>>
>>Yes, it is possible. Run the Calculator filter on your data. iHat, jHat,=
and
>>kHat are unit vectors in each of the i, j, and k directions, so your
>>expression you want to enter would look like:
>>iHat * scalars1 + jHat * scalars2 + kHat * scalars3 (Substitute the 3=
scalar
>>arrays you want to use for X, Y, and Z in your vector for scalars1,
>>scalars2, and scalars3, respectively.) The array specified in the "Result
>>Array Name" entry will contain your new vector array.
>>
>>- Amy
>>
>>At 01:07 PM 5/13/2004, S=F6ren Freudiger wrote:
>> >Hello
>> >Is it possible to combine scalars to a vector?
>> >I only have got scalars and want to visualise streamlines...
>> >Best regards,
>> >
>> >--
>> >Dipl.-Ing. Soeren Freudiger
>> >Institut fuer ComputerAnwendungen im Bauingenieurwesen TU Braunschweig,
>> >Pockelsstr. 3, D-38106 Braunschweig
>> >Tel.: +49 531/391-7595, Mobil: +49 176/210 17 444
>> >email: freud at cab.bau.tu-bs.de
>> >http://www.cab.bau.tu-bs.de/
>> >
>> >_______________________________________________
>> >ParaView mailing list
>> >ParaView at paraview.org
>> >http://www.paraview.org/mailman/listinfo/paraview