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

[snappyHexMesh] What types of stl files are needed in snappyhexmesh?

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

Like Tree2Likes
  • 2 Post By dybuk

Reply
 
LinkBack Thread Tools Search this Thread 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: 21
Rep Power: 11
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 http://www.cfd-online.com/Forums/ope...e-stlfile.html, 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
Member
 
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 13
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;
            }
          }
          
    }
vbnhfylbh and phandy like this.
dybuk is offline   Reply With Quote

Reply

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

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blender: generate stl files student666 OpenFOAM Pre-Processing 0 June 6, 2017 03:45
Generating a proper STL mesh for snappyHexMesh riccardomaione OpenFOAM Pre-Processing 2 August 25, 2015 03:17
[snappyHexMesh] STL exported from CATIA and snappyHexMesh ma- OpenFOAM Meshing & Mesh Conversion 3 April 9, 2012 15:06
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 21:51


All times are GMT -4. The time now is 09:01.