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

[General] Glyths plot with cell_data vectors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2014, 14:04
Default Glyths plot with cell_data vectors
  #1
New Member
 
Join Date: Jul 2010
Posts: 19
Rep Power: 16
RicardoGoncalves is on a distinguished road
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
RicardoGoncalves is offline   Reply With Quote

Old   May 16, 2014, 16:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Ricardo,

Any chance you can provide a small example file?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 16, 2014, 17:57
Default
  #3
New Member
 
Join Date: Jul 2010
Posts: 19
Rep Power: 16
RicardoGoncalves is on a distinguished road
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]
RicardoGoncalves is offline   Reply With Quote

Old   May 17, 2014, 14:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
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:
  1. Triangle strips sometimes aren't very good for post-processing. You might need to apply an auxiliary filter, such as "Triangulate" or "Extract Surface", in order for it to be processable with some other filters.
  2. Glyphs by default work with point data on the vertexes of the mesh. If you need to have a vector representation on the centers of the faces of the mesh, you need to first use the filter "Cell Centers", which should create the points for the centers of the cells, along with the data for those cells. In this case, the cells are the mesh faces.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 19, 2014, 14:18
Default
  #5
New Member
 
Join Date: Jul 2010
Posts: 19
Rep Power: 16
RicardoGoncalves is on a distinguished road
Thanks Bruno, makes sense. I sorted it out by applying the Cell Center filter.
R
RicardoGoncalves is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 15:59.