CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: snappyHexMesh and Others (https://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/)
-   -   locationInMesh Error (https://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/71136-locationinmesh-error.html)

fijinx December 16, 2009 14:42

locationInMesh Error
 
I am very new to openFoam and am just trying to get it running at this point. However, I keep getting the error:


Refinement phase
----------------



Point (-0.018 -0.018 -0.018) is not inside the mesh or on a face or edge.
Bounding box of the mesh:(-0.254 -0.762 -0.762) (1.778 0.762 0.762)

From function refinementParameters::findCells(const polyMesh&) const
in file autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C at line 104.

FOAM exiting

. No matter if I choose a point inside the stl or outside (still within the bounding box) I get the same error. Any help is appreciated.

here is my setup http://s800.photobucket.com/albums/yy283/fijinx/ which clearly shows the surface within the bounding box.

http://i800.photobucket.com/albums/y...g?t=1260988883

madad2005 December 16, 2009 14:49

Have a look here:

http://www.cfd-online.com/Forums/ope...-mesh-but.html

I had the same issue and I finally resolved it by manipulating the order of my initial bounding box. Can't help you much more than that, I'm afraid.

fijinx December 16, 2009 15:34

Worked great, thank you!

abhinavmohan June 20, 2017 14:30

same problem
 
2 Attachment(s)
convertToMeters 1;

vertices
(
(48 660 -2015) //0
(2000 660 -2015) //1
(2000 3000 -2015) //2
(48 3000 -2015) //3
(48 660 4000) //4
(2000 660 4000) //5
(2000 3000 4000) //6
(48 3000 4000) //7
);

blocks
(
hex (0 1 2 3 4 5 6 7) (20 8 8) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
frontAndBack
{
type patch;
faces
(
(1 2 6 5)
(0 4 7 3)
);
}
inlet
{
type patch;
faces
(
(4 5 6 7)
);
}
outlet
{
type patch;
faces
(
(0 3 2 1)
);
}
lowerWall
{
type wall;
faces
(
(0 1 5 4)
);
}
upperWall
{
type patch;
faces
(
(3 7 6 2)
);
}
);




Attachment 56822

Attachment 56823

same problem can`t figure this out.

even though my STL file is in the box


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