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

[Gmsh] STL on Gmsh + Mesh on Snappy

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2016, 12:56
Default STL on Gmsh + Mesh on Snappy
  #1
Member
 
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10
adrieno is on a distinguished road
Hi all,

As I said in the title, I'am trying to make a geometry (a simple cube) on Gmsh then to mesh around this cube in a bigger box with snappy. I've seen that it is possible but I couldn't make it for the moment...

My problem comes from my geometry in ( .stl ). Snappy run very well and mesh all my domain (as my geometry didn't exist).

And actually my geometry didn't exist.... my .stl in empty (I linked it, just remove the .txt).

I think that comes from the fact that when I save it, the .stl extension seems to concerned only the mesh, not the geometry (I've posted a photo) whereas I didn't create any mesh...

Should I create a mesh inside my cube with Gmsh which will not been use after because snappy will mesh outside the cube in order just to "shape the geometry" ?

Thank you for any help,

Adrien
Attached Images
File Type: png formatstl.PNG (51.0 KB, 18 views)
Attached Files
File Type: txt cube.geo.txt (1.0 KB, 8 views)
File Type: txt cube.stl.txt (49 Bytes, 9 views)
adrieno is offline   Reply With Quote

Old   May 20, 2016, 09:11
Default
  #2
Member
 
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10
adrieno is on a distinguished road
Hi again,
I've define a mesh with Gmsh (just a single hexahedral cell to make my cube) before saving my file in .stl. Now, when I'm importing this geometry it seems to work fine, snappy is meshing all around my cube.

BUT, there is a but... As you can see in the picture, snappy doesn't fit perfectly the cube... what is it due to ?
  • Is it still a geometry problem (from my .stl file, because I wasn't suppose to make it like that) ,
  • or is it something about my snappyHexMeshDict that I have to adjust now ?
Have a nice day
Attached Images
File Type: jpg cubeSnappy1.jpg (104.0 KB, 22 views)
File Type: jpg cubeSnappy2.jpg (199.0 KB, 19 views)
File Type: jpg cubeSnappy3.jpg (128.0 KB, 17 views)
adrieno is offline   Reply With Quote

Old   May 20, 2016, 09:31
Default
  #3
Member
 
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10
adrieno is on a distinguished road
Hi all,
My problem was coming from my snappyHexMeshDict:

replacing
Code:
cube.stl
        {
            // Surface-wise min and max refinement level
level (3 4);
        }
by
Code:
cube.stl
        {
            // Surface-wise min and max refinement level
level (4 4);
        }
Well, that's the end for this topic I think...
Have a nice day, and good luck for your project
adrieno is offline   Reply With Quote

Old   May 20, 2016, 13:22
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

If you want to capture the edges of the cube, you could also increase the feature refinement. Take note that you would need to have an eMesh for this before you run snappy. The eMesh file can be obtained from the surfaceFeatureExtract command.

Cheers,
Antimony
adrieno likes this.
Antimony 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[snappyHexMesh] 'cracks' in Mesh on surface using STL Fschi OpenFOAM Meshing & Mesh Conversion 5 January 19, 2017 13:24
[ICEM] STL file! How is it useful? bidi ANSYS Meshing & Geometry 0 December 26, 2016 22:33
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 15:54.