CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   SampledSurface, can't find closed walk around surface (

nikwin April 15, 2009 02:30

SampledSurface, can't find closed walk around surface
Dear All,

Trying to define a plane to obtain samples in the specified plane with the following lines of code,

plane xPl(xP[cellI],n[cellI]);
sampledPlane smpPl("smpPl", mesh, xPl,word::null,false);

But, I'm getting the following error message,

--> FOAM Warning :
From function Foam::cuttingPlane::walkCell
in file cuttingPlane/cuttingPlane.C at line 205
Did not find closed walk along surface of cell 148775 starting from edge 345139 in 1001 iterations.
Collected cutPoints so far:

size mismatch: field (674) != surface (673)

From function sampledSurface::checkFieldSize(const Field<Type>&) const
in file /scratch/nwinkler/ProgramFiles/OF1-5/OpenFOAM-1.5-dev/src/sampling/lnInclude/sampledSurfaceTemplates.C at line 42.

FOAM exiting

Is there a solution to get rid of the surface field mismatch?

All the best

nikwin October 1, 2009 04:06

The field and surface size mismatch still bothers me from time to time. Is there anyone that could at least explain why this is happening, please.

If there is a solution to get rid of this......


Ya_Squall2010 June 16, 2014 04:38

Hi, nikwin

Have you found the solution yet? Thanks.

All times are GMT -4. The time now is 20:14.