CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   my stl surface is seen as just a line (http://www.cfd-online.com/Forums/openfoam-meshing/70437-my-stl-surface-seen-just-line.html)

rcastilla November 24, 2009 13:27

my stl surface is seen as just a line
 
Hi,

I have created with salome a STL simple file for a rectangular elbow:

---------------------------------------------------------------------------------
solid elbow
facet normal -1.000000e+00 -0.000000e+00 -0.000000e+00
outer loop
vertex 0.000000e+00 6.000000e+00 1.500000e+00
vertex 0.000000e+00 6.000000e+00 -1.500000e+00
vertex 0.000000e+00 0.000000e+00 -1.500000e+00
endloop
endfacet
facet normal -1.000000e+00 -0.000000e+00 0.000000e+00
outer loop
vertex 0.000000e+00 6.000000e+00 1.500000e+00
vertex 0.000000e+00 0.000000e+00 -1.500000e+00
vertex 0.000000e+00 0.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 6.000000e+00 0.000000e+00 1.500000e+00
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 9.000000e+00 0.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 0.000000e+00 0.000000e+00 -1.500000e+00
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 4.500000e+00 0.000000e+00 0.000000e+00
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 0.000000e+00 0.000000e+00 1.500000e+00
vertex 0.000000e+00 0.000000e+00 -1.500000e+00
vertex 4.500000e+00 0.000000e+00 0.000000e+00
endloop
endfacet
facet normal -0.000000e+00 -1.000000e+00 -0.000000e+00
outer loop
vertex 6.000000e+00 0.000000e+00 1.500000e+00
vertex 0.000000e+00 0.000000e+00 1.500000e+00
vertex 4.500000e+00 0.000000e+00 0.000000e+00
endloop
endfacet
facet normal -0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 6.000000e+00 0.000000e+00 1.500000e+00
vertex 4.500000e+00 0.000000e+00 0.000000e+00
endloop
endfacet
facet normal -0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 1.500000e+00
vertex 0.000000e+00 0.000000e+00 1.500000e+00
vertex 6.000000e+00 0.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 1.500000e+00
vertex 0.000000e+00 6.000000e+00 1.500000e+00
vertex 0.000000e+00 0.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 6.000000e+00 1.500000e+00
vertex 9.000000e+00 6.000000e+00 -1.500000e+00
vertex 6.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
outer loop
vertex 4.500000e+00 6.000000e+00 0.000000e+00
vertex 9.000000e+00 6.000000e+00 -1.500000e+00
vertex 0.000000e+00 6.000000e+00 -1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 -0.000000e+00
outer loop
vertex 4.500000e+00 6.000000e+00 0.000000e+00
vertex 0.000000e+00 6.000000e+00 -1.500000e+00
vertex 0.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 -0.000000e+00
outer loop
vertex 4.500000e+00 6.000000e+00 0.000000e+00
vertex 0.000000e+00 6.000000e+00 1.500000e+00
vertex 6.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal -0.000000e+00 1.000000e+00 0.000000e+00
outer loop
vertex 4.500000e+00 6.000000e+00 0.000000e+00
vertex 6.000000e+00 6.000000e+00 1.500000e+00
vertex 9.000000e+00 6.000000e+00 -1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 -1.000000e+00
outer loop
vertex 0.000000e+00 0.000000e+00 -1.500000e+00
vertex 0.000000e+00 6.000000e+00 -1.500000e+00
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 -1.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 0.000000e+00 6.000000e+00 -1.500000e+00
vertex 9.000000e+00 6.000000e+00 -1.500000e+00
endloop
endfacet
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 9.000000e+00 6.000000e+00 -1.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 1.000000e+00 -0.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 1.500000e+00
vertex 9.000000e+00 0.000000e+00 -1.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 6.000000e+00 0.000000e+00 1.500000e+00
vertex 9.000000e+00 0.000000e+00 1.500000e+00
vertex 6.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
outer loop
vertex 6.000000e+00 0.000000e+00 7.500000e+00
vertex 9.000000e+00 0.000000e+00 1.500000e+00
vertex 9.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 1.500000e+00
vertex 6.000000e+00 0.000000e+00 1.500000e+00
vertex 6.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
facet normal -1.000000e+00 -0.000000e+00 -0.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 7.500000e+00
vertex 6.000000e+00 6.000000e+00 1.500000e+00
vertex 6.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 7.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
vertex 6.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 6.000000e+00 7.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
vertex 6.000000e+00 6.000000e+00 7.500000e+00
endloop
endfacet
facet normal 1.000000e+00 -0.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 7.500000e+00
vertex 9.000000e+00 0.000000e+00 1.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
endloop
endfacet
facet normal 1.000000e+00 -0.000000e+00 0.000000e+00
outer loop
vertex 9.000000e+00 0.000000e+00 7.500000e+00
vertex 9.000000e+00 6.000000e+00 1.500000e+00
vertex 9.000000e+00 6.000000e+00 7.500000e+00
endloop
endfacet
facet normal -0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 6.000000e+00 6.000000e+00 7.500000e+00
vertex 6.000000e+00 0.000000e+00 7.500000e+00
vertex 9.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 9.000000e+00 6.000000e+00 7.500000e+00
vertex 6.000000e+00 6.000000e+00 7.500000e+00
vertex 9.000000e+00 0.000000e+00 7.500000e+00
endloop
endfacet
endsolid elbow
-------------------------------------------------------------------------

The problem is that paraview sees this STL as just a line in the x-direction. Also when I want to mesh it with snappyHexMesh, I am not able to put the internal point inside the mesh, I guess that because the same problem.

Maybe has anybody encountered this strange behaviour before and can help me?

Thank you.

Robert

rcastilla November 24, 2009 14:02

news: if I export it as binary STL, problem with paraview dissapears, but with the one with snappyHexMesh still remains:

Point (3.25 3.25 0.25) is not inside the mesh or on a face or edge.
Bounding box of the mesh:(0 0 -1.5) (9 6 7.5)

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

Some idea?

Thanks again

Robert

amgode January 6, 2010 02:30

Hi,

The STL file seems to be fine.......There does not seem to a problem.......

This is some part of the snappyHexMeshDict I used.......

-----------
-----------
geometry
{
elbow.stl
{
type triSurfaceMesh;
name elbow;
}
};

........
........
refinementSurfaces
{
elbow
{
// Surface-wise min and max refinement level
level (3 3);
}
}

.......
........
refinementRegions
{
elbow
{
mode distance;
levels ((0.1 3) (0.5 2) (1 1));
}
}

locationInMesh (4.0 2.0 2.0);

---------------
--------------
--------------
debug 0;
mergeTolerance 1E-4;


But since the geometry is not closed, there will be mesh in the region between blockMesh and the elbow........If its not required you need to use a closed geometry.


Regards,

Amol


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