CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

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

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

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2020, 15:05
Default OpenFoam sampleDict surfaces: how to limit the number of points being sample ?d
  #1
Member
 
K
Join Date: Jul 2017
Posts: 97
Rep Power: 8
mkhm is on a distinguished road
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.
mkhm is offline   Reply With Quote

Old   September 8, 2020, 15:22
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
What about surfaceCoarsen first?
petros likes this.
olesen is offline   Reply With Quote

Old   September 8, 2020, 15:31
Default
  #3
Member
 
K
Join Date: Jul 2017
Posts: 97
Rep Power: 8
mkhm is on a distinguished road
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 ?
mkhm is offline   Reply With Quote

Old   September 8, 2020, 15:34
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by mkhm View Post
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 is offline   Reply With Quote

Old   September 9, 2020, 09:03
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by olesen View Post
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
olesen is offline   Reply With Quote

Reply

Tags
contour, openfoam 4.x, sampledsurface

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 08:48
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14
AMI interDyMFoam for mixer danny123 OpenFOAM Running, Solving & CFD 4 June 19, 2013 05:49
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


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