CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

SampleDict

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 14, 2009, 22:20
Default
  #21
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 10
musahossein is on a distinguished road
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
musahossein is offline   Reply With Quote

Old   April 15, 2009, 03:00
Default
  #22
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   June 16, 2009, 03:48
Default postprocessing for an Hill
  #23
Member
 
Brugiere Olivier
Join Date: Mar 2009
Posts: 31
Rep Power: 9
brugiere_olivier is on a distinguished road
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
brugiere_olivier is offline   Reply With Quote

Old   June 16, 2009, 04:12
Default
  #24
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   June 16, 2009, 04:54
Default
  #25
Member
 
Brugiere Olivier
Join Date: Mar 2009
Posts: 31
Rep Power: 9
brugiere_olivier is on a distinguished road
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 ?
brugiere_olivier is offline   Reply With Quote

Old   June 17, 2009, 03:38
Default
  #26
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
see the example sampleDict in $FOAM_UTILITIES/postProcessing/sampling/sample on how to extract patch data (as a surface) and export it to vtk.
mattijs is offline   Reply With Quote

Old   June 17, 2009, 08:09
Default
  #27
Member
 
Brugiere Olivier
Join Date: Mar 2009
Posts: 31
Rep Power: 9
brugiere_olivier is on a distinguished road
Thank's for your answer mattijs.
In fact the solution is in sampleSurface.
brugiere_olivier is offline   Reply With Quote

Old   May 26, 2010, 05:00
Default help
  #28
Member
 
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 7
mohsenkh599 is an unknown quantity at this point
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
mohsenkh599 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SampleDict patch export surface size amp orientation axel OpenFOAM Post-Processing 1 September 29, 2008 13:42


All times are GMT -4. The time now is 15:38.