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

my stl surface is seen as just a line

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 24, 2009, 13:27
Default my stl surface is seen as just a line
  #1
Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 80
Rep Power: 8
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
Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 80
Rep Power: 8
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: Pune, INDIA
Posts: 23
Blog Entries: 2
Rep Power: 8
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 August 5, 2015 02:09
boundaries with gmshToFoam‏ ouafa Open Source Meshers: Gmsh, Netgen, CGNS, ... 7 May 21, 2010 12:43
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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