|
[Sponsors] |
April 14, 2009, 23:20 |
|
#21 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
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
|
|
April 15, 2009, 04:00 |
|
#22 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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.
|
|
June 16, 2009, 04:48 |
postprocessing for an Hill
|
#23 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
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 |
|
June 16, 2009, 05:12 |
|
#24 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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.
|
|
June 16, 2009, 05:54 |
|
#25 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
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 ? |
|
June 17, 2009, 04:38 |
|
#26 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
see the example sampleDict in $FOAM_UTILITIES/postProcessing/sampling/sample on how to extract patch data (as a surface) and export it to vtk.
|
|
June 17, 2009, 09:09 |
|
#27 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
Thank's for your answer mattijs.
In fact the solution is in sampleSurface. |
|
May 26, 2010, 06:00 |
help
|
#28 |
Member
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 16 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SampleDict patch export surface size amp orientation | axel | OpenFOAM Post-Processing | 1 | September 29, 2008 14:42 |