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

[snappyHexMesh] eMesh file meaning in SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 2 Post By Eloise
  • 1 Post By elvis
  • 2 Post By Artur
  • 1 Post By Artur
  • 2 Post By l_r_mcglashan
  • 1 Post By Artur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2013, 03:08
Default eMesh file meaning in SnappyHexMesh
  #1
New Member
 
woodwick's Avatar
 
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13
woodwick is on a distinguished road
I was running the motorBike tutorial and I noticed that in the directory:
/tutorials/incompressible/simpleFoam/motorBike/constant/triSurface
there is a file: motorBike.eMesh
What is the role and content of an eMesh file?
I understood (correct me if I'am wrong) that the motorBike.obj.gz gives the STL geometry, the triangular surface mesh that Snappy uses to put and cut his hexa elements around. But eMesh what does it do? What is its content? I am not even able to open it with gedit
woodwick is offline   Reply With Quote

Old   June 13, 2013, 04:15
Default
  #2
New Member
 
woodwick's Avatar
 
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13
woodwick is on a distinguished road
additional observation:
opening snappyHexMeshDict you can find :

Code:
    // Explicit feature edge refinement
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    // Specifies a level for any cell intersected by its edges.
    // This is a featureEdgeMesh, read from constant/triSurface for now.
    features
    (
        {
            file "motorBike.eMesh";
            level 0;
        }
    );
so explicit feature edge refinement...
does it mean eMesh = edgeMesh , that is: motorBike.eMesh is the file containing the list of edges of the geometry? maybe coming from surfaceFeatureExtract? mumble mumble
woodwick is offline   Reply With Quote

Old   June 13, 2013, 04:36
Default
  #3
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 14
Eloise is on a distinguished road
Hi,

you are right It is the file that contains the feature edges of your geometry and that is created by the surfaceFeatureExtract utility. In the snappyHexMeshDict, you specify the level of refinement needed on those edges.

Regards,
Eloïse
woodwick and Liangyuan like this.
Eloise is offline   Reply With Quote

Old   July 2, 2013, 13:32
Default
  #4
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

i tried to visulize which values would make sense via slider
http://www.cfd-online.com/Forums/ope...reextract.html
woodwick likes this.
elvis is offline   Reply With Quote

Old   July 10, 2013, 05:53
Default
  #5
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
You can also visualise it in paraview by using:

Code:
 surfaceFeatureExtract
 surfaceFeatureConvert constant/triSurface/file_name.eMesh other_file_name.obj
and then simply opening it paraview.
s.m and libindaniel2000 like this.
Artur is offline   Reply With Quote

Old   August 19, 2013, 10:24
Default includedAngle ?
  #6
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
You can also visualise it in paraview by using:

Code:
 surfaceFeatureExtract
 surfaceFeatureConvert constant/triSurface/file_name.eMesh other_file_name.obj
and then simply opening it paraview.
Dear Artur,
when we want convert the *.stl file to *.eMesh one, we execute
"surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/foil2D.stl airfoil"
my question is about "includedAngle 150" ?
what is it? and what is the difference between the *eMesh file that is gained from "includedAngle 150" and the one that is gained by "includedAngle 180" ?

Thank you very much
s.m is offline   Reply With Quote

Old   August 19, 2013, 10:32
Default
  #7
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Depends on the version you run, I think from 2.0 or something like that it is governed by a dictionary instead of being passed options from the command line.

Include angle tells the function what angle between the faces has to be in order to constitute an edge, so 0 would mean there are no edges at all and 180 would be that a flat surface is an edge as far as I understand it.
Artur is offline   Reply With Quote

Old   August 19, 2013, 10:46
Default
  #8
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
i excute the surfaceFeatureExtract with includedAngle 180 & includeAngle 150 & includedAngle 50
here is the results.
Attached Images
File Type: jpg includedangel180.jpg (22.8 KB, 403 views)
File Type: jpg includedangel150.jpg (16.1 KB, 351 views)
File Type: jpg includedangle-50.png;.jpg (9.6 KB, 319 views)
s.m is offline   Reply With Quote

Old   August 19, 2013, 11:12
Default
  #9
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Yup, that's what I get for airfoil sections as well. You can see that in the first case it picks up pretty much every edge of the .stl triangles and the smaller the include angle gets the more defined the edge has to be in order to be picked up by the algorithm.
s.m likes this.
Artur is offline   Reply With Quote

Old   August 19, 2013, 12:56
Default
  #10
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
Yup, that's what I get for airfoil sections as well. You can see that in the first case it picks up pretty much every edge of the .stl triangles and the smaller the include angle gets the more defined the edge has to be in order to be picked up by the algorithm.
As i understand the includedAngle 180 is better for this case,because it involve more edge that the other includedAngle e.g 150
do i get it right?
s.m is offline   Reply With Quote

Old   August 19, 2013, 13:06
Default
  #11
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
I think there is no definite answer to your question. It's not certain that including all the possible features will yield a "good" mesh in the end.

Looking at your screenshots I'd probably go with the intermediate value because it represents the trailing edge and the section profiles at either end well but will not mess around with your mesh anywhere else. However, this is just my personal opinion and may not be correct.
Artur is offline   Reply With Quote

Old   August 19, 2013, 13:09
Default
  #12
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
I think there is no definite answer to your question. It's not certain that including all the possible features will yield a "good" mesh in the end.

Looking at your screenshots I'd probably go with the intermediate value because it represents the trailing edge and the section profiles at either end well but will not mess around with your mesh anywhere else. However, this is just my personal opinion and may not be correct.
"intermediate value" mean includedAngle 150?
s.m is offline   Reply With Quote

Old   August 19, 2013, 13:32
Default
  #13
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
FYI, you can also use the "FeatureEdge" filter in paraview to help you choose an appropriate includedAngle.
toolpost and s.m like this.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   August 20, 2013, 05:01
Default
  #14
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Quote:
Originally Posted by l_r_mcglashan View Post
FYI, you can also use the "FeatureEdge" filter in paraview to help you choose an appropriate includedAngle.
Good to know that, thanks for sharing!

@ s.m. : Yes, by intermediate I mean the middle one from the 3 you've shown, i.e. 150.
s.m likes this.
Artur is offline   Reply With Quote

Old   August 20, 2013, 07:35
Default
  #15
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
FYI, you can also use the "FeatureEdge" filter in paraview to help you choose an appropriate includedAngle.
Dear Laurence,Thank you for your suggestion

i don't know how to use this filter, and how should we know the proper includedAngle by using it.
could you please explain it more,
Thank you again.
s.m is offline   Reply With Quote

Old   May 12, 2016, 02:07
Default
  #16
New Member
 
LD
Join Date: May 2016
Location: Savannah, GA
Posts: 7
Rep Power: 10
libindaniel2000 is on a distinguished road
What is your opinion on obtaining a leading edge once surfaceFeatureExtract is used. Using an angle of 150, I can get the root and tip of the wing and the trailing edge of the wing, but not the leading edge. Should this be a concern?
libindaniel2000 is offline   Reply With Quote

Old   May 12, 2016, 04:42
Default
  #17
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Depends on whether you can get a good enough mesh resolution at the LE without feature refinement. This is probably best controlled using resolveFeatureAngle if you are using graded refinement on the body (i.e. refinement levels between 3 and 5, say). Otherwise, you can divide your wing geometry into two before exporting stl, that way surfaceFeatureExtract will pick up the LE as a separate feature line.

A
Artur is offline   Reply With Quote

Reply

Tags
emesh, snappyhexmesh


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
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 18:25
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


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