I'm running snappyHexMesh to create a mesh around a body I have and I get the following error:
--> FOAM Warning :
From function treeBoundBox::treeBoundBox(const UList<point>&, const UList<label>&)
in file octree/treeBoundBox.C at line 157
cannot find bounding box for zero-sized pointFieldreturning zero
I'm having a hard time figuring out where this problem is coming from. Everything was working great with a similar geometry, but now with a new stl file, I'm getting this error. Any ideas on where I should be looking? The error comes up while determining initial surface intersections. Looking through the stl file and the block mesh, there shouldn't be any problems finding an intersection.
Any help is greatly appreciated.
I doubt you have some bad tri's in stl surface. find out the bad tri's
I had the similar problem although not the same error message during "surface intersection" check.
alternatively , clean the stl file using OpenFoam tools, e.g surfaceClean,
look at this as well, http://www.varlog.com/index.html
if your case is small then post it.
Thanks for the help Bruce. Unfortunately I couldn't get surfaceClean to work, does it only work on binary stl files? Mine is in ASCII. It consistently tells me that it found 0 triangles and 0 vertices and I've tried varying the min length from 1e27 to 1e-27.
Does your stl file is empty? surfaceClean works on ASCII file of couse.
We can not help you as long as you provide no information. upload a test stl file or test case.
You might try surfaceSmooth and surfaceCheck as well?
Thanks for the help. So actually the problem was mine. The title of the file was a very long winded one with lots of punctuation. When I shortened it I wasn't paying attention and deleted the "solid" that preceded it on the first line. Once that was restored all my problems went away.
Another problem I had was that it kept telling me my LocationInMesh vector was not inside the mesh or on a face. I could clearly see that it wasn't but found out that I had my vertices ordered incorrectly so when running blockMesh, it was turned inside out.
Anyway, if anyone comes across this later, hope this helps.
|All times are GMT -4. The time now is 13:48.|