|December 19, 2011, 18:22||
Paraview - 2d vector glyphs colored by vector direction & magnitude
Join Date: May 2011
Posts: 71Rep Power: 6
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?
|December 19, 2011, 19:34||
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727Rep Power: 20
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
|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|