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/)
-   -   OpenFoam sampleDict surfaces: how to limit the number of points being sample ?d (https://www.cfd-online.com/Forums/openfoam-post-processing/230108-openfoam-sampledict-surfaces-how-limit-number-points-being-sample-d.html)

mkhm September 8, 2020 14:05

OpenFoam sampleDict surfaces: how to limit the number of points being sample ?d
 
Hi foamers,



I want to make a contour plot of a slice of my geometry for which the simulation is done in OpenFoam. So the best is to sample a surface. I succeed to do that but the amount of data being generated like that is very huge. I would like to know if there is a way to limit the number of data being sampled ?



Thanks in advance for your help,

Mary


P.S.: The contour plot has to be done in Matlab where huge amount of data cannot be treated.

olesen September 8, 2020 14:22

What about surfaceCoarsen first?

mkhm September 8, 2020 14:31

Thanks Mark for your reply. "surfaceCoarsen" is an utility, no ? How I can use it ? Could you please give an example ? Can it be used in the sampleDict ?

olesen September 8, 2020 14:34

Quote:

Originally Posted by mkhm (Post 782340)
Thanks Mark for your reply. "surfaceCoarsen" is an utility, no ? How I can use it ? Could you please give an example ? Can it be used in the sampleDict ?

Simply run it as a utility to create a second surface with a coarser resolution. Use this coarser surface for your sampling.

olesen September 9, 2020 08:03

Quote:

Originally Posted by olesen (Post 782341)
Simply run it as a utility to create a second surface with a coarser resolution. Use this coarser surface for your sampling.

Should also have mentioned, if you are using a coarser surface for the sampling, you may wish to specify a different "sampleScheme". By default it uses "cell", which is simply the nearest cells to the face centre. Using "cellPoint" may yield more representative results. This was added in the 1806 version.

https://www.openfoam.com/documentati...s.html#details


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