|
[Sponsors] |
[General] How to create an additional vector with {Field 4, Field 5, Field 6} |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 11, 2015, 07:57 |
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: 12 |
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 |
|
August 15, 2015, 19:05 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 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 |
|
|
|
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 |