CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

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

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

Like Tree1Likes
  • 1 Post By mturcios777

LinkBack Thread Tools Display Modes
Old   December 19, 2011, 18:22
Default Paraview - 2d vector glyphs colored by vector direction & magnitude
Join Date: May 2011
Posts: 70
Rep Power: 9
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,
newOFuser is offline   Reply With Quote

Old   December 19, 2011, 19:34
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 726
Rep Power: 22
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
New Member
Join Date: Jun 2014
Posts: 11
Rep Power: 5
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
Attached Images
File Type: jpg vec.JPG (17.5 KB, 74 views)
skmaperu is offline   Reply With Quote


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
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 12:59

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