CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Evenly distributed vector plot (https://www.cfd-online.com/Forums/openfoam-post-processing/159588-evenly-distributed-vector-plot.html)

canopus September 18, 2015 12:14

Evenly distributed vector plot
 
1 Attachment(s)
I have a structure mesh on which I want to plot vectors.
I use slice and glyph but I get vectors in random fashion.
What I want is something like in the picture


I have read about Resample With DataSet but in this case it will be a tedious task.

Is there a easy way out?

alexeym September 18, 2015 13:11

1 Attachment(s)
Hi,

By default Glyph filter uses Random mode for selecting points. You can:

- increase number of points (to the total number of cells in you mesh)
- turn off masking, so Glyph uses all mesh points

Screenshot with settings for Paraview 4.3.1 is attached to the message. For other versions it should be similar.

canopus September 19, 2015 11:53

Many thanks for answer with the image!

It seems that the option
Code:

mask stride
is not present in Paraview 4.1.0 which comes bundled with OF.

I downloaded the paraview version 4.3.1.
But I can not load the velocity field maybe as a coded velocity profile in 0/U is used instead of numeric values.
It works fine Paraview 4.1.0 bundled with OpenFOAM.

Code:

ERROR: In /home/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6467 vtkOpenFOAMReaderPrivate (0x3900fd0): Error reading line 30 of x/y/z/0/U: Unsupported directive {
Is it possible to solve this or lets say force paraview skip 0?
Manually renaming 0 is last option I prefer.

Thanks & regards

alexeym September 20, 2015 05:25

1 Attachment(s)
Well, here is screenshot from 4.1.0. You can either
  • Increase maximum number of points (set it equal to the number of cells in your mesh)
  • Switch off masking (Mask points checkbox)

cyw June 30, 2017 05:16

about random mode
 
Hi, can you tell me how to distribute the vector as I want? Thank you!

Quote:

Originally Posted by alexeym (Post 564796)
Well, here is screenshot from 4.1.0. You can either
  • Increase maximum number of points (set it equal to the number of cells in your mesh)
  • Switch off masking (Mask points checkbox)



All times are GMT -4. The time now is 08:46.