CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Glyths plot with cell_data vectors

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2014, 13:04
Default Glyths plot with cell_data vectors
  #1
New Member
 
Join Date: Jul 2010
Posts: 14
Rep Power: 7
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, 15:54
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Ricardo,

Any chance you can provide a small example file?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 16, 2014, 16:57
Default
  #3
New Member
 
Join Date: Jul 2010
Posts: 14
Rep Power: 7
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 13:04. Reason: Added [CODE][/CODE]
RicardoGoncalves is offline   Reply With Quote

Old   May 17, 2014, 13:25
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 13:18
Default
  #5
New Member
 
Join Date: Jul 2010
Posts: 14
Rep Power: 7
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam warnings - related to swak4Foam Salam-H OpenFOAM Running, Solving & CFD 20 August 2, 2015 15:40
Glyph: how to avoid the plot of vectors perpendicular to boundaries? serena OpenFOAM Post-Processing 2 November 18, 2012 23:24
plot field velocity vectors in fieldview gaurav FieldView 0 October 7, 2009 10:51
2 velocity vectors ashish CFX 3 June 19, 2007 18:32
plot vectors perpendicular to curved surface azmir CD-adapco 3 October 19, 2004 01:48


All times are GMT -4. The time now is 04:48.