CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

What types of stl files are needed in snappyhexmesh?

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

Like Tree1Likes
  • 1 Post By dybuk

Reply
 
LinkBack Thread Tools Display Modes
Old   February 18, 2015, 11:17
Red face What types of stl files are needed in snappyhexmesh?
  #1
New Member
 
Paul Handy
Join Date: Sep 2014
Location: Idaho, USA
Posts: 8
Rep Power: 2
phandy is on a distinguished road
I'm trying to figure out how to take models from my cad suite (autodesk inventor), and use snappyhexmesh (or any other native openfoam mesher) for pre-processing.

Now, it was my understanding that for flows with an inlet and outlet, that I would need separate stl files as those surfaces. However, Inventor doesn't explicitly allow the exporting of surfaces to *.stl. Do I need to have just the inlet/outlet/wall surfaces to export, or can I make volumes?

If I need to have surfaces only, it looks like I'll need to export the surfaces as STEP, and use a different program to generate STL files for use with snappyhexmesh, which isn't an especially enticing option.

Also, do I need the whole volume of the flow channel as its own STL for snappyhexmesh? And how do I check if my stl is watertight?

Any help here is very appreciated.

Edit: from this page SnappyHexMesh with local refinement of ONE STLfile, it appears that if I can export a single solid stl with separate regions, then perhaps I can do this without exporting surfaces to stl. Am I right?

Last edited by phandy; February 18, 2015 at 11:47. Reason: did some googling.
phandy is offline   Reply With Quote

Old   February 19, 2015, 06:36
Default
  #2
New Member
 
W.T
Join Date: Oct 2012
Posts: 6
Rep Power: 4
dybuk is on a distinguished road
Yes, you are right

In geometry definition:

Code:
surface_with_regions.stl
    {
        type triSurfaceMesh;
        name  surface_with_regions;
        regions
        {
			region_1	{name  region_1;}
			region_2    {name   region_2;}
                        

	}
And in refinementSurfaces

Code:
surface_with_regions
   {
        level (1 2); //global refinement settings for surface
        regions
        {
        region_1
        {
            level (5 6);        // local refinement
            patchInfo
            {
                type wall;
            }
        }
        region_2
        {
            level (5 7);        // local refinement
            patchInfo
            {
                type patch;
            }
          }
          
    }
phandy likes this.
dybuk is offline   Reply With Quote

Reply

Tags
inlet and outlet, snappyhexmesh 3d, stl file, surface & solid bodies

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
IGES to STL snappyhexmesh johnGo OpenFOAM Native Meshers: snappyHexMesh and Others 5 May 28, 2014 13:45
Merging STL Files EphemeralMemory ANSYS Meshing & Geometry 0 May 10, 2011 11:02
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
Help! two files needed. Paul FLUENT 0 April 12, 2004 09:22


All times are GMT -4. The time now is 04:37.