CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] How to create an additional vector with {Field 4, Field 5, Field 6}

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2015, 07:57
Default How to create an additional vector with {Field 4, Field 5, Field 6}
  #1
New Member
 
Bruno Guerrero
Join Date: Aug 2014
Posts: 4
Rep Power: 11
Bombacar is on a distinguished road
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.
Bombacar is offline   Reply With Quote

Old   August 15, 2015, 19:05
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
How to create points and field files? sega OpenFOAM Post-Processing 19 July 22, 2009 04:16
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
How to create a vector field out of scalar fields anja OpenFOAM Pre-Processing 7 May 31, 2006 12:56
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 23:05.