|
[Sponsors] |
June 9, 2010, 17:51 |
sampleDict & surfaces & zoneName
|
#1 |
Member
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17 |
The file that follows,
OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/sampling/sample/sampleDict, constantPlane { type plane; // always triangulated basePoint (0.0501 0.0501 0.005); normalVector (0.1 0.1 1); //- Optional: restrict to a particular zone // zoneName zone1; } contains a mispelling according to OpenFOAM/OpenFOAM-1.6.x/src/sampling/sampledSurface/sampledPlane/ ... dict.readIfPresent("zone", zoneName_); ... I think that //- Optional: restrict to a particular zone // zoneName zone1; should read like this: //- Optional: restrict to a particular zone // zone zone1; Cheers up |
|
June 10, 2010, 02:53 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
||
June 10, 2010, 02:58 |
|
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Thanks, fixed in 1.6.x.
|
|
February 27, 2015, 05:46 |
how to define a zone in order to surface average a small part of a plane
|
#4 |
New Member
Chrissy Stanford
Join Date: Oct 2013
Location: South Africa
Posts: 11
Rep Power: 12 |
Hello
I'm trying to calculate the surfaced averaged velocity through a small hole in my geometry. At the moment I'm defining the surface planes as follows in my controlDict file: functions { #include "topoSetDict" threemmH { type faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl timeStep; log true; valueOutput true; source sampledSurface; surfaceFormat vtk; sampledSurfaceDict { type plane; // always triangulated basePoint (0.007 0.007 0.3995); normalVector (0 0 1); zone zone1; } operation areaAverage; fields ( U ); } }; I'm Defining zone1 as follows in the topoSetDict file: { name zone1; type cellSet; action new; source cylinderToCell; sourceInfo { p1 (0.007 0.007 0.3995); // start point on cylinder axis p2 (0.007 0.007 0.3975); // end point on cylinder axis radius 0.0015; } } But for some reason openFoam seems to ignore the zone and surface average the velocity over the entire plane. Could anyone be of assistance in this regard? What am I doing wrong? Regards, Chrissy |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SampleDict error | AirS | OpenFOAM Post-Processing | 5 | January 19, 2017 23:29 |
Importing or Creating 2D Flat Surfaces into CFX | Sam | CFX | 5 | March 30, 2013 11:11 |
sampleDict & surfaces & zoneName | pbohorquez | OpenFOAM Post-Processing | 2 | February 27, 2013 14:08 |
Faceted surfaces in ICEM | Chriss | Main CFD Forum | 1 | May 6, 2008 15:18 |
Surfaces | Mark | FLUENT | 2 | February 9, 2004 10:41 |