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

How to make boundary patches in STL file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 29, 2008, 02:48
Default Hello: First, thank openfoa
  #1
Member
 
Ning Yang
Join Date: Mar 2009
Location: University Park, PA, USA
Posts: 85
Rep Power: 8
nzy102 is on a distinguished road
Hello:

First, thank openfoam team for the wondful tool snappyhexmesh. I am working on meshing a quite geometry now. I made the geometry from solidworks. Then converted the solidworks file to STL. The problem with solidworks is it exported the geometry as a whole surface. So I couldn't make patches in the stl file. As a workaround, I imported the stl file in Rhino and saved every surface (patch) as a stl file in ASCII format. Then I put all the stil files together (integrated stl file). When I ran snappyhexmesh, I got something like:

===============================================
Shell **** does not support testing for inside
Probably it is not closed
================================================

I went back to open the integrated stl file in several different softwares ( blender, rhino and solidworks) and it looked that the stl file is closed. Does anybody here has a similar problem?

Is there any other way to makes patches for STL files in general?

Thank you so much.
nzy102 is offline   Reply With Quote

Old   August 29, 2008, 04:48
Default To use inside/outside we requi
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
To use inside/outside we require every edge to have exactly two faces using it. Load in paraview, Filter->Feature Edges and switch on the 'non-manifold' edges. Disable all sharp angle ones (by setting angle to 180?).
mattijs is offline   Reply With Quote

Old   August 29, 2008, 13:53
Default Hi Mattijs: It gave me the
  #3
Member
 
Ning Yang
Join Date: Mar 2009
Location: University Park, PA, USA
Posts: 85
Rep Power: 8
nzy102 is on a distinguished road
Hi Mattijs:

It gave me the same error.

Ning
nzy102 is offline   Reply With Quote

Old   January 8, 2015, 08:56
Default Close stl file
  #4
New Member
 
Julie Correncon
Join Date: Oct 2014
Posts: 7
Rep Power: 2
CoSponge is on a distinguished road
Hi,

have you checked if every single solid has the exact syntax? I mean this one:

solid <name>
facet normal 0 1 0
outer loop
vertex -0.019754 -0.15 0.103129
vertex -0.02 -0.15 0.1
vertex -0.019754 -0.15 0.096871
endloop
endfacet
endsolid

Maybe you miss "endsolid" at the end while putting everything toghether. Let me know

Cheers

Julie
CoSponge 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
SnappyHexMesh howto assign boundary patches linnemann OpenFOAM Mesh Utilities 17 May 18, 2012 01:10
Conjugate solverupdate boundary conditions nonconformal patches r2d2 OpenFOAM Running, Solving & CFD 0 January 27, 2009 11:01
Cyclic boundary conditions for non conformed Patches turnow OpenFOAM Running, Solving & CFD 1 October 19, 2007 01:17
How to make a code to read cgns file? john Main CFD Forum 1 September 25, 2006 08:47
How to make data file for matlab from CFX? cfxbeginner CFX 4 October 19, 2002 07:56


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