CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   SampleDict (https://www.cfd-online.com/Forums/openfoam-bugs/62293-sampledict.html)

musahossein April 14, 2009 22:20

Does anyone have a sampleDict file configured to read pressure from the sloping surfaces in a 2D tank problem that they wouldnt mind sharing with me? section 6.5 in the users manual is not clear on how to indentify a surface for sampling using sampleDict

mattijs April 15, 2009 03:00

There is an example sampleDict in the source tree: $FOAM_UTILITIES/postProcessing/sampling/sample/. You might want to look at the 'constantPlane' or 'interpolatedPlane' which sample on a plane. In 1.5.x. these will only work reliably on convex cells. And please move this discussion of the bug forum.

brugiere_olivier June 16, 2009 03:48

postprocessing for an Hill
 
Hi all,

I want to make some statiscs curves on an hill http://openfoamwiki.net/index.php/Si...Periodic_Hills on the curved wall.
My problem is that I don't know how I can make a curve which is on my curved wall. I was all ready using the sample utility but I don't find the solution.

Thank's

Olivier

mattijs June 16, 2009 04:12

I would sample the curved patch first (you are interested in boundary data I hope), export it to vtk ('surfaceFormat vtk') and clip the surface with a plane.

brugiere_olivier June 16, 2009 04:54

In fact I want to make a graph with gnuplot or xmgrace. So I want use some utilities like sample or postChannel to make some list of data and to plot it after.

With your command I can make this Mattijs ?

mattijs June 17, 2009 03:38

see the example sampleDict in $FOAM_UTILITIES/postProcessing/sampling/sample on how to extract patch data (as a surface) and export it to vtk.

brugiere_olivier June 17, 2009 08:09

Thank's for your answer mattijs.
In fact the solution is in sampleSurface.

mohsenkh599 May 26, 2010 05:00

help
 
hi
I am using O.F. 1.6 and when I use the sample utility no sets directory is created as I expect. for exaple I have run a case in tutorials (tutorials/stressAnalysis/solidDisplacementFoam/plateHole) and after running this case I type the "sample" in the terminal and I got this message:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : sample
Date : May 26 2010
Time : 13:28:56
Host : mohsen-laptop
PID : 4495
Case : /home/mohsen/OpenFOAM/mohsen-1.6/run/tutorials/stressAnalysis/solidDisplacementFoam/plateHole
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Time = 0

Time = 20

Time = 40

Time = 60

Time = 80

Time = 100

End


but no extra folder was created in the case directory


All times are GMT -4. The time now is 17:27.