CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Simple plane sample not working (http://www.cfd-online.com/Forums/openfoam-post-processing/76160-simple-plane-sample-not-working.html)

marupio May 16, 2010 16:31

Simple plane sample not working
 
I don't get it. When I use the "basePoint" / "normal" to specify a plane, it fails silently whenever the Y-coordinate of "normal" is zero. That is, it runs, reports all the times, and completes, but there are no files in the surfaces/[time]/ directories. Here's my sampleDict:

setFormat raw;
surfaceFormat raw;

interpolationScheme cellPointFace;

fields
(
U
);

sets
(
);

surfaces
(
newPlane
{
type plane;
basePoint (5 2.5 5);
normalVector (0 0 1);
interpolate true;
triangulate true;
}
);

This produces no output. If I change the normalVector to:

normalVector (0 0.00001 1);

it succeeds.

Does anyone have any idea what is going on here?

(OpenFOAM 1.5-dev)

olesen May 17, 2010 02:48

Quote:

Originally Posted by marupio (Post 259004)
I don't get it. When I use the "basePoint" / "normal" to specify a plane, it fails silently whenever the Y-coordinate of "normal" is zero.

...
This produces no output. If I change the normalVector to:
normalVector (0 0.00001 1);
it succeeds.
Does anyone have any idea what is going on here?
(OpenFOAM 1.5-dev)

The 1.6.x version has some code to handle cases where the cuttingPlane aligned fairly closely to a cell face (where the normal cell cutting algorithm would otherwise fail horribly) -- this is what the zeroish and positive local variables are about.
I don't know if the sourceforge svn version has this, do you experience the same problem in 1.6.x?

marupio May 18, 2010 13:23

That's the problem! Thanks Mark. I tried it in 1.6 and it works fine. So when I'm using 1.5-dev I'll just misalign the plane ever so slightly.

-Dave


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