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

eMesh file meaning in SnappyHexMesh

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

Like Tree6Likes
  • 1 Post By Eloise
  • 1 Post By elvis
  • 1 Post By Artur
  • 1 Post By Artur
  • 1 Post By l_r_mcglashan
  • 1 Post By Artur

Reply
 
LinkBack Thread Tools Display Modes
Old   June 13, 2013, 02:08
Default eMesh file meaning in SnappyHexMesh
  #1
New Member
 
woodwick's Avatar
 
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 4
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, 03:15
Default
  #2
New Member
 
woodwick's Avatar
 
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 4
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, 03:36
Default
  #3
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 104
Rep Power: 5
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 likes this.
Eloise is offline   Reply With Quote

Old   July 2, 2013, 12:32
Default
  #4
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

i tried to visulize which values would make sense via slider
GUI for surfaceFeatureExtract
woodwick likes this.
elvis is offline   Reply With Quote

Old   July 10, 2013, 04:53
Default
  #5
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 227
Rep Power: 6
Artur is on a distinguished road
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 likes this.
Artur is offline   Reply With Quote

Old   August 19, 2013, 09:24
Default includedAngle ?
  #6
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 6
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, 09:32
Default
  #7
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 227
Rep Power: 6
Artur is on a distinguished road
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, 09:46
Default
  #8
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 6
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, 53 views)
File Type: jpg includedangel150.jpg (16.1 KB, 51 views)
File Type: jpg includedangle-50.png;.jpg (9.6 KB, 48 views)
s.m is offline   Reply With Quote

Old   August 19, 2013, 10:12
Default
  #9
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 227
Rep Power: 6
Artur is on a distinguished road
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, 11:56
Default
  #10
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 6
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, 12:06
Default
  #11
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 227
Rep Power: 6
Artur is on a distinguished road
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, 12:09
Default
  #12
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 6
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, 12:32
Default
  #13
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
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.
s.m likes this.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   August 20, 2013, 04:01
Default
  #14
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 227
Rep Power: 6
Artur 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.
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, 06:35
Default
  #15
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 6
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

Reply

Tags
emesh, snappyhexmesh

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
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 24 August 23, 2015 22:41
wmake compiling new solver mksca OpenFOAM Programming & Development 13 August 18, 2014 22:26
2.0.x on Mac OSX niklas OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 74 March 28, 2012 16:46
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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