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

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

 December 19, 2011, 18:22 Paraview - 2d vector glyphs colored by vector direction & magnitude #1 Member   ak Join Date: May 2011 Posts: 70 Rep Power: 9 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

 December 19, 2011, 19:34 #2 Senior Member     Marco A. Turcios Join Date: Mar 2009 Location: Vancouver, BC, Canada Posts: 726 Rep Power: 22 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.

March 11, 2017, 14:51
Plotting velocity vectors
#3
New Member

Join Date: Jun 2014
Posts: 11
Rep Power: 5
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.

Manikanth
Attached Images
 vec.JPG (17.5 KB, 74 views)

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post lentschi OpenFOAM Installation 1 March 9, 2011 03:32 vex OpenFOAM Installation 15 January 30, 2011 08:11 fusij OpenFOAM Installation 2 January 1, 2011 21:44 smart OpenFOAM Installation 13 November 16, 2009 22:41 jjhall OpenFOAM Installation 3 April 17, 2008 12:59

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