|
[Sponsors] |
June 9, 2010, 08:38 |
sampleDict & surfaces & zoneName
|
#1 |
Member
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17 |
Hi
I am facing some difficulties to export the values of some computed variables in a subregion of the whole computational domain. Since the mesh was created outside of OpenFOAM and converted to blockMesh, I have defined a set of cells by means of cellSet and, subsequently, a zone containing those cells was properly defined by using setsToZones. Indeed, the solution in that zone can be visualized with success with paraFoam. In the attached you can see the boundary of the original domain and the solution in the desired zone. However, when I try to use the "sample" utility to get the solution in a plane that lies in that zone, that application avoids the restriction imposed by the command line //- Optional: restrict to a particular zone zoneName burbuja; where "burbuja" is the name of the zone shown in the attachment. The sueface was defined as follows: // Surface sampling definition: choice of // plane : values on plane defined by point, normal. // patch : values on patch. // // 1] planes are triangulated by default // 2] patches are not triangulated by default surfaces ( constantPlane { type plane; basePoint (0.0001 0.005 0); normalVector (0 0 1); //- Optional: restrict to a particular zone zoneName burbuja; // Optional: whether to leave as faces or triangulate (=default) triangulate false; } ); Any hint? |
|
June 9, 2010, 18:34 |
|
#2 |
Member
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17 |
OK. After surfing the following file,
OpenFOAM/OpenFOAM-1.5-dev/src/sampling/sampledSurface/plane/sampledPlane.C I have found that the line //- Optional: restrict to a particular zone zoneName burbuja; should read //- Optional: restrict to a particular zone zone burbuja; and then it works for me. The same applies to other OF distros. |
|
February 27, 2013, 15:08 |
sampling surface
|
#3 | ||
Member
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 13 |
Dear
I am trying to use sampleDict to extratct Temperature values for each cell in the domain. And I am having only one region of fluid domain containing 5000 cells. When I define the plane in the following manner Quote:
Please help me out how to specify the plane so that I can get exact number of values. Following is a sample file which I get after running sample and it depicts the doubleing of values. Quote:
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SampleDict error | AirS | OpenFOAM Post-Processing | 5 | January 20, 2017 00:29 |
Importing or Creating 2D Flat Surfaces into CFX | Sam | CFX | 5 | March 30, 2013 12:11 |
[snappyHexMesh] snappyHexMesh not refining surfaces | Hydro1004 | OpenFOAM Meshing & Mesh Conversion | 3 | August 29, 2012 12:56 |
Faceted surfaces in ICEM | Chriss | Main CFD Forum | 1 | May 6, 2008 16:18 |
Surfaces | Mark | FLUENT | 2 | February 9, 2004 11:41 |