CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] How to create an additional vector with {Field 4, Field 5, Field 6} (https://www.cfd-online.com/Forums/paraview/157920-how-create-additional-vector-field-4-field-5-field-6-a.html)

Bombacar August 11, 2015 06:57

How to create an additional vector with {Field 4, Field 5, Field 6}
 
I really try to know: How to create an additional vector (different from position) with {Field 4, Field 5, Field 6}? I mean, how can I create a vector from 3 csv file's specific float columns .

In order to do that: First I read my csv file. After I applied the filter TableToPoints (with Point Data field association) and define X,Y,Z point coordinates as {Field 0, Field 1, Field 2}, and finally I tried to apply the Calculator filter
Code:

(Field 4)*iHat+(Field 5)*jHat+(Field 6)*kHat
but without success.

wyldckat August 15, 2015 18:05

Greetings Bombacar,

I tried this just now with ParaView 3.12, 4.1.0 and 4.3.1 and it worked just fine with all three versions. I used a CSV file with the following content:
Code:

0.0, 0.0, 0.0, 1.0, 2.0, 3.0
1.0, 0.0, 0.0, 1.0, 2.0, 3.0
2.0, 0.0, 0.0, 1.0, 2.0, 3.0
3.0, 0.0, 0.0, 1.0, 2.0, 3.0
4.0, 0.0, 0.0, 1.0, 2.0, 3.0
5.0, 0.0, 0.0, 1.0, 2.0, 3.0

Therefore I didn't have the 6th field column, but it worked fine with the columns 3, 4 and 5.

Perhaps you're not looking at the data correctly?
Where are you trying to see the resulting vectors?
Because you have the data as points only, therefore you need to apply the "Glyph" filter for having a 3D vector representation.

Best regards,
Bruno


All times are GMT -4. The time now is 10:18.