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

[snappyHexMesh] Meshing an airfoil (3D - OF 2.2.0)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Artur
  • 1 Post By miro2000
  • 1 Post By Artur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2013, 09:47
Default Meshing an airfoil (3D - OF 2.2.0)
  #1
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
A.Wendy is on a distinguished road
Hi everybody,

currently I am trying to get a nice mesh of two rotor blades in an three-dimensional mesh.
But the mesh I get is not satisfying. The trailing edge is everything else then sharp and on the top and the bottom of the profile I get some "buckles".
I need a spherical mesh so my procedure is the following.

1. blockMesh
2. snappyHexmesh to get a spherical Mesh and refine the region around the airfoil
3. Meshing the airfoil with snappyHexMesh

You can find the case in the following url: http://ubuntuone.com/2Q0ITgnwbAr7zfvGonRAUe


I use for meshing OpenFOAM 2.2.0


I also have a different question. Is it possible to get on each patch (m1... - m9, p1... - p9...) different thicknesses of the first boundary layer?
I need them for getting good values for y+.

Best wishes

Andreas
Attached Images
File Type: jpg Screenshot from 2013-04-16 15_42_48.jpg (66.6 KB, 184 views)
File Type: jpg Screenshot from 2013-04-16 15_43_13.jpg (79.4 KB, 149 views)
File Type: jpg Screenshot from 2013-04-16 15_43_25.jpg (61.0 KB, 134 views)
A.Wendy is offline   Reply With Quote

Old   April 18, 2013, 05:24
Default
  #2
New Member
 
Timo Kulju
Join Date: Aug 2009
Posts: 22
Rep Power: 16
tikulju is on a distinguished road
For the edges, try using surfaceFeatureExtract-utility (see $FOAM_TUTORIALS/mesh/snappyHexMesh/flange/ ). In my experience, for good mesh the blockMesh should be formed with perfect cubes. But I'm not 100% sure about that... For the layers, I think the number of layer levels can be defined per patch.

Best,

- Timo
tikulju is offline   Reply With Quote

Old   July 9, 2013, 05:25
Default
  #3
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
Hi,

I've been having similar issues as you when meshing a marine propeller.

I've discovered that with a "nice" .stl file with a smooth, continuous edge the surfaceFeatureExtract utility will not capture it unless you set (in the dict file):

minElem 1;

(In most tutorial cases I've seen it's set to a value between 5 or 10 by default) You can then see what edges have been extracted by running:

surfaceFeatureConvert constant/triSurface/your_file.eMesh your_file.obj

and then simply viewing it in paraview and comparing against the original .stl or the mesh.

Hope this helps.

Cheers,

Artur

P.S. I've been trying to find a way of having different layer mesh settings too but haven't found anything yet except for having different no. layers as pointed out by Timo. Let me know if you find out more about this please.
atg likes this.
Artur is offline   Reply With Quote

Old   July 13, 2013, 07:08
Default
  #4
Member
 
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13
miro2000 is on a distinguished road
Hi there,

you should run surfaceFeatureExtract. Then you can check what it did by:

Code:
surfaceFeatureConvert constant/triSurface/your_file_name.eMesh your_file_name.obj
paraview your_file_name.obj
change the angle in surfaceFeatureExtract dictionary and see what happens.

then you can reduce ResolveFeatureAngle in snappyHexMeshDict.

you can also use implicit feature snap. (disable the explicit)

I hope it helps. It should work. I'm also meshing a wing in snappy, but can't add boundary layer, everything else works fine.
miro2000 is offline   Reply With Quote

Old   August 19, 2013, 09:12
Default
  #5
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Quote:
Originally Posted by miro2000 View Post
Hi there,

you should run surfaceFeatureExtract. Then you can check what it did by:

Code:
surfaceFeatureConvert constant/triSurface/your_file_name.eMesh your_file_name.obj
paraview your_file_name.obj
change the angle in surfaceFeatureExtract dictionary and see what happens.

then you can reduce ResolveFeatureAngle in snappyHexMeshDict.

you can also use implicit feature snap. (disable the explicit)

I hope it helps. It should work. I'm also meshing a wing in snappy, but can't add boundary layer, everything else works fine.
Dear Miro,
what is the difference between implicit feature snap and explicit one?
i ask this question because you suggest for disabaling the explicit feature snap, and i don't why?
Thanks
s.m is offline   Reply With Quote

Old   August 19, 2013, 11:57
Default
  #6
Member
 
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13
miro2000 is on a distinguished road
Quote:
Originally Posted by s.m View Post
Dear Miro,
what is the difference between implicit feature snap and explicit one?
i ask this question because you suggest for disabaling the explicit feature snap, and i don't why?
Thanks
Dear s.m., thank you for your intrest;

this post was made in moments i was just learning ways with snappy, so I don't use implicit f.s. anymore.

As far as I know, you can have implicit, explicit or none f.s.
I'm not sure, but I think that implicit doesn't use the e-mesh files for snapping, but makes it's own on-the-fly.
Explicit, on the other hand, lets you define angle below your .stl mesh (or features) will be picked-up.
Someone should correct me if this is not true.

Note that you don't need to use explicit feature snapping for refinement only, if your surface is not smooth somewhere, running e.f.s. on that place with the same refinement as the surface could fix the problem.

Please ask if you have further questions
- miro
s.m likes this.
miro2000 is offline   Reply With Quote

Old   October 12, 2013, 08:01
Default
  #7
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Quote:
Originally Posted by Artur View Post
Hi,

I've been having similar issues as you when meshing a marine propeller.

I've discovered that with a "nice" .stl file with a smooth, continuous edge the surfaceFeatureExtract utility will not capture it unless you set (in the dict file):

minElem 1;

(In most tutorial cases I've seen it's set to a value between 5 or 10 by default) You can then see what edges have been extracted by running:

surfaceFeatureConvert constant/triSurface/your_file.eMesh your_file.obj

and then simply viewing it in paraview and comparing against the original .stl or the mesh.

Hope this helps.

Cheers,

Artur

P.S. I've been trying to find a way of having different layer mesh settings too but haven't found anything yet except for having different no. layers as pointed out by Timo. Let me know if you find out more about this please.
Dear artur,
i didn't understand where we should set "minElem 1;" to have a beeter *.eMesh after runnig the surfaceFeatureExtract?
whould you please guide me,
Thank you very much.
P.S. i have three stl file, i put my surfaceFeatureExtractDict in the attachment.
Attached Files
File Type: txt surfaceFeatureExtractDict.txt (2.3 KB, 19 views)
s.m is offline   Reply With Quote

Old   October 12, 2013, 13:07
Default
  #8
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
Try this:

Code:
propeller.stl
{
	// How to obtain raw features (extractFromFile || extractFromSurface)
	extractionMethod    extractFromSurface;

	extractFromSurfaceCoeffs
	{
	    // Mark edges whose adjacent surface normals are at an angle less
	    // than includedAngle as features
	    // - 0  : selects no edges
	    // - 180: selects all edges
	    includedAngle   160;
	}

	trimFeatures
	{
	    // Remove features with fewer than the specified number of edges
	    minElem         1;
	}
}
s.m likes this.
Artur 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
Ffd_control_point_2d feiyi SU2 4 September 30, 2019 12:42
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
[ANSYS Meshing] Meshing 3 Element Airfoil mr.rushikumar ANSYS Meshing & Geometry 0 March 1, 2014 22:57
[GAMBIT] Problematic meshing of an inverted airfoil snkutta ANSYS Meshing & Geometry 2 October 11, 2011 13:23
[GAMBIT] Meshing airfoil using .dat file problem creggie ANSYS Meshing & Geometry 10 June 27, 2010 19:24


All times are GMT -4. The time now is 14:48.