|
[Sponsors] |
Paraview - 2d vector glyphs colored by vector direction & magnitude |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2011, 18:22 |
Paraview - 2d vector glyphs colored by vector direction & magnitude
|
#1 |
Member
ak
Join Date: May 2011
Posts: 64
Rep Power: 15 |
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: 740
Rep Power: 28 |
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 |
|
March 11, 2017, 14:51 |
Plotting velocity vectors
|
#3 |
New Member
Join Date: Jun 2014
Posts: 11
Rep Power: 12 |
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 |
|
|
|
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 |