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

Paraview - 2d vector glyphs colored by vector direction & magnitude

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2011, 18:22
Default Paraview - 2d vector glyphs colored by vector direction & magnitude
  #1
Member
 
ak
Join Date: May 2011
Posts: 64
Rep Power: 15
newOFuser is on a distinguished road
Hi All

I have a plot of 2D vector glyphs for the velocity on a slice along the axis of a cylindrical chamber. I want to color the glyphs in such a way that the velocity vectors in the -ve direction (in the recirculation zone) are colored blue (with the shade deepening as the magnitude increases), and the velocity vectors pointing in the +ve direction are colored red.

Can this be done in paraview? Or can we only color the glyphs based on velocity magnitude?

Many thanks,
AK
newOFuser is offline   Reply With Quote

Old   December 19, 2011, 19:34
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
You can color glyphs using any variable you want. After some quick experimenting with filters, it seems like you might be able to get the result you want by:

1. Creating a glyph field from velocity
2. Applying a Calculator filter that returns the axial component of the velocity (use a dot product)
3. Apply a threshold filter that selects only positive values of component field
4. This should give you only the velocity glyphs that have a positive axial component. Change the colorbar to RBG and move the color extremes to suit your needs.

The downside to this approach is that you can only get one component (negative or positive) with this approach per dataset. If you want to show both positive and negative, components you will need to load a duplicate dataset and perform the same operations with the threshold changed to capture the opposite axial direction (or just create a second calculator attach the filters, I haven't tried this). Good luck
toolpost likes this.
mturcios777 is offline   Reply With Quote

Old   March 11, 2017, 14:51
Default Plotting velocity vectors
  #3
New Member
 
Join Date: Jun 2014
Posts: 11
Rep Power: 12
skmaperu is on a distinguished road
Hallo Everyone,

Can some one suggest how can i get this(picture attached) kind of velocity vector plot in paraview?

i have tried glyph. the vectors were not well organised and equally spaced.

Thanks in advance
Manikanth
Attached Images
File Type: jpg vec.JPG (17.5 KB, 176 views)
skmaperu 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
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
Paraview not found fusij OpenFOAM Installation 2 January 1, 2011 21:44
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 13:59


All times are GMT -4. The time now is 16:19.