sampleDict & surfaces & zoneName
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 |
Quote:
|
Thanks, fixed in 1.6.x.
|
how to define a zone in order to surface average a small part of a plane
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 |
All times are GMT -4. The time now is 00:33. |