|
[Sponsors] |
[snappyHexMesh] eMesh file meaning in SnappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 13, 2013, 03:08 |
eMesh file meaning in SnappyHexMesh
|
#1 |
New Member
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13 |
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 |
|
June 13, 2013, 04:15 |
|
#2 |
New Member
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13 |
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; } ); 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 |
|
June 13, 2013, 04:36 |
|
#3 |
Senior Member
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 14 |
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 |
|
July 2, 2013, 13:32 |
|
#4 |
Senior Member
|
Hi,
i tried to visulize which values would make sense via slider http://www.cfd-online.com/Forums/ope...reextract.html |
|
July 10, 2013, 05:53 |
|
#5 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
You can also visualise it in paraview by using:
Code:
surfaceFeatureExtract surfaceFeatureConvert constant/triSurface/file_name.eMesh other_file_name.obj |
|
August 19, 2013, 10:24 |
includedAngle ?
|
#6 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
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 |
||
August 19, 2013, 10:32 |
|
#7 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
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. |
|
August 19, 2013, 10:46 |
|
#8 |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
i excute the surfaceFeatureExtract with includedAngle 180 & includeAngle 150 & includedAngle 50
here is the results. |
|
August 19, 2013, 11:12 |
|
#9 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
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.
|
|
August 19, 2013, 12:56 |
|
#10 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
do i get it right? |
||
August 19, 2013, 13:06 |
|
#11 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
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. |
|
August 19, 2013, 13:09 |
|
#12 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
|
||
August 20, 2013, 05:01 |
|
#14 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
||
August 20, 2013, 07:35 |
|
#15 | |
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15 |
Quote:
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. |
||
May 12, 2016, 02:07 |
|
#16 |
New Member
LD
Join Date: May 2016
Location: Savannah, GA
Posts: 7
Rep Power: 10 |
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?
|
|
May 12, 2016, 04:42 |
|
#17 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
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 |
|
Tags |
emesh, snappyhexmesh |
|
|
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 |