|
[Sponsors] |
May 16, 2014, 14:04 |
Glyths plot with cell_data vectors
|
#1 |
New Member
Join Date: Jul 2010
Posts: 19
Rep Power: 16 |
Hi
I'm writing a code that outputs three vectors components at the centre of each triangular cell. The .vtk file opens fine and the visualization of the magnitude of the vectors look fine. However, when I try to visualize the vectors themselves (glyth), all of the are shown as if they were point-data, and are patently wrong (they are horizontal vectors, rather than vectors with three finite components). Any help would be highly welcome. R |
|
May 16, 2014, 17:57 |
|
#3 |
New Member
Join Date: Jul 2010
Posts: 19
Rep Power: 16 |
Yes, thanks:
Code:
# vtk DataFile Version 3.0 model outputs ASCII DATASET POLYDATA POINTS 1465 double 500397.490000 103751.070000 0.000000 ... TRIANGLE_STRIPS 2818 11272 3 1380 1381 756 3 707 704 755 3 1380 ... CELL_DATA 11272 scalars cellvar double LOOKUP_TABLE default 0.193064 -1.840271 0.016829 0.012930 0.016424 0.052549 0.018979 0.020069 0.020000 ... VECTORS vect double 0.51000 0.320000 0.000000 -1.104062 -1.543125 0.000000 0.005260 -0.003182 0.000000 ... Last edited by wyldckat; May 17, 2014 at 14:04. Reason: Added [CODE][/CODE] |
|
May 17, 2014, 14:25 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ricardo,
Actually, I was referring to a small example file that could be used for doing some tests. Anyway, a sample of the file you have does give some additional information that came in handy to figure out some details:
Bruno |
|
May 19, 2014, 14:18 |
|
#5 |
New Member
Join Date: Jul 2010
Posts: 19
Rep Power: 16 |
Thanks Bruno, makes sense. I sorted it out by applying the Cell Center filter.
R |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glyph: how to avoid the plot of vectors perpendicular to boundaries? | serena | OpenFOAM Post-Processing | 6 | October 22, 2019 05:37 |
3D contour plot from matlab vectors | diggee | Tecplot | 1 | June 5, 2017 13:19 |
[swak4Foam] Foam warnings - related to swak4Foam | Salam-H | OpenFOAM Community Contributions | 20 | August 2, 2015 16:40 |
plot field velocity vectors in fieldview | gaurav | FieldView | 0 | October 7, 2009 11:51 |
plot vectors perpendicular to curved surface | azmir | Siemens | 3 | October 19, 2004 02:48 |