CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[CAD formats] my stl surface is seen as just a line

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2009, 13:27
Default my stl surface is seen as just a line
  #1
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17
rcastilla is on a distinguished road
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 is offline   Reply With Quote

Old   November 24, 2009, 14:02
Default
  #2
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17
rcastilla is on a distinguished road
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 mesh0 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
rcastilla is offline   Reply With Quote

Old   January 6, 2010, 02:30
Default
  #3
New Member
 
amgode's Avatar
 
Amol
Join Date: Jul 2009
Location: Limerick, Ireland
Posts: 24
Blog Entries: 2
Rep Power: 17
amgode is on a distinguished road
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
amgode is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 9, 2019 00:50
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) Henrik_E OpenFOAM Installation 3 September 29, 2016 17:16
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


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