CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   SampledSurface, can't find closed walk around surface (https://www.cfd-online.com/Forums/openfoam/63640-sampledsurface-cant-find-closed-walk-around-surface.html)

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:
1001
(
220
256
254
219
255
.....
.....

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
//NW

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......

Thanks
/NW

Ya_Squall2010 June 16, 2014 04:38

Hi, nikwin

Have you found the solution yet? Thanks.

shang March 17, 2018 14:39

Hi Niklas,

I know this thread is quite old. But I recently encountered similar warning message for my case on OpenFOAM-v1612+, but it didn't even show size mismatch! Did you solve this problem or how did you get round it?

Kind regards,
Yeru

lukasf September 23, 2020 09:46

any updates on this problem?


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