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

[Other] OpenFOAM mesh generation of an aerofoil

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2015, 12:21
Default
  #21
New Member
 
Romania
Join Date: Dec 2014
Posts: 5
Rep Power: 11
yrganiri is on a distinguished road
Thank you for the help.

I have tried exactly that but I cannot make gmshToFoam to work with what I have and I really don't know what I'm doing wrong.

So, I am using the data points of RAE2822 and surround it with a C-type grid.

It looks like this: Selection_139.png

Now, my problem is that in order to make it look like that, I used many line loops and plane surfaces and I don't know how to name the physical surfaces:

Code:
Physical Surface("back") = {1042,1020,1064,1108,1125,1086}; 
Physical Surface("front") = {50,52,54,55,53,51}; 
......
I am attaching the .geo file naca5012_step3_structured.txt

The gmshToFoam output is:
Code:
...
Mapping region 2 to Foam patch 0
Mapping region 1 to Foam patch 1
Mapping region 4 to Foam patch 2
Mapping region 5 to Foam patch 3
Mapping region 3 to Foam patch 4
Cells:
    total:0
    hex  :0
    prism:0
    pyr  :0
    tet  :0

--> FOAM FATAL IO ERROR: 
No cells read from file "naca5012_step3_structured.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?
...
yrganiri is offline   Reply With Quote

Old   June 19, 2015, 12:35
Default
  #22
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
I had a quick look

Code:
Physical Volume("internal") = {50,52,54,55,53,51};
This definition is wrong because you don't have these volumes.

It should be
Code:
Physical Volume("internal") = {1,2,3,4,5,6};
Try it again and see if you have another problem.


Quote:
Originally Posted by yrganiri View Post
Thank you for the help.

I have tried exactly that but I cannot make gmshToFoam to work with what I have and I really don't know what I'm doing wrong.

So, I am using the data points of RAE2822 and surround it with a C-type grid.

It looks like this: Attachment 40246

Now, my problem is that in order to make it look like that, I used many line loops and plane surfaces and I don't know how to name the physical surfaces:

Code:
Physical Surface("back") = {1042,1020,1064,1108,1125,1086}; 
Physical Surface("front") = {50,52,54,55,53,51}; 
......
I am attaching the .geo file Attachment 40247

The gmshToFoam output is:
Code:
...
Mapping region 2 to Foam patch 0
Mapping region 1 to Foam patch 1
Mapping region 4 to Foam patch 2
Mapping region 5 to Foam patch 3
Mapping region 3 to Foam patch 4
Cells:
    total:0
    hex  :0
    prism:0
    pyr  :0
    tet  :0

--> FOAM FATAL IO ERROR: 
No cells read from file "naca5012_step3_structured.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?
...
yrganiri likes this.
hk318i is offline   Reply With Quote

Old   June 19, 2015, 12:45
Default
  #23
New Member
 
Romania
Join Date: Dec 2014
Posts: 5
Rep Power: 11
yrganiri is on a distinguished road
Ok, so now the checkMesh fails (when I use transfinite)

Code:
Checking geometry...
    Overall domain bounding box (-7.07107 -5 0) (5 5 1)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (1.63561e-17 9.81367e-18 -1.21481e-14) OK.
 ***High aspect ratio cells found, Max aspect ratio: 2729.23, number of cells 396
  <<Writing 396 cells with high aspect ratio to set highAspectRatioCells
    Minimum face area = 1.11556e-05. Maximum face area = 0.26532.  Face area magnitudes OK.
    Min volume = 1.11556e-05. Max volume = 0.0248775.  Total volume = 114.187.  Cell volumes OK.
    Mesh non-orthogonality Max: 88.9723 average: 40.767
   *Number of severely non-orthogonal (> 70 degrees) faces: 10057.
    Non-orthogonality check OK.
  <<Writing 10057 non-orthogonal faces to set nonOrthoFaces
    Face pyramids OK.
    Max skewness = 2.08422 OK.
    Coupled point location match (average 0) OK.

Failed 1 mesh checks.

It works wonderfully if I comment all the transfinite lines and just let gmsh do its meshing work.

Quote:
Originally Posted by hk318i View Post
I had a quick look

Code:
Physical Volume("internal") = {50,52,54,55,53,51};
This definition is wrong because you don't have these volumes.

It should be
Code:
Physical Volume("internal") = {1,2,3,4,5,6};
Try it again and see if you have another problem.

Last edited by yrganiri; June 19, 2015 at 12:51. Reason: Added information
yrganiri is offline   Reply With Quote

Old   June 19, 2015, 12:54
Default
  #24
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
It isn't easy to get the right mesh from the first trial. You can check the location of these high aspect ratio cells in paraView
yrganiri likes this.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   June 23, 2015, 14:08
Default
  #25
New Member
 
adhi makayasa
Join Date: Apr 2015
Posts: 20
Rep Power: 11
makayasa is on a distinguished road
Hello all. After converting gmsh to foam and I run , why the results in the show is not like the one in the tutorial ? I run simplefoam for airfoil2d case . Location of faults where ? How do I fix it ? This is my final project. Please advise. Thank you very much
Attached Images
File Type: jpg Screenshot from 2015-06-24 01:13:14.jpg (41.5 KB, 48 views)
File Type: jpg Screenshot from 2015-06-24 01:13:21.jpg (41.0 KB, 39 views)
Attached Files
File Type: txt nacaedit9.txt (8.1 KB, 7 views)
makayasa is offline   Reply With Quote

Old   June 23, 2015, 15:20
Default
  #26
New Member
 
Romania
Join Date: Dec 2014
Posts: 5
Rep Power: 11
yrganiri is on a distinguished road
Quote:
Originally Posted by makayasa View Post
Hello all. After converting gmsh to foam and I run , why the results in the show is not like the one in the tutorial ? I run simplefoam for airfoil2d case . Location of faults where ? How do I fix it ? This is my final project. Please advise. Thank you very much
Did you properly edit the 0/p 0/U ... and system/controlDict files with the same patch names as your mesh? Look at this example: https://community.dur.ac.uk/g.l.ingr...torial2012.pdf
yrganiri is offline   Reply With Quote

Old   June 23, 2015, 15:28
Default
  #27
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
It looks like the initial conditions, zero time.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   November 4, 2015, 14:16
Default
  #28
New Member
 
bernardo
Join Date: Apr 2012
Posts: 2
Rep Power: 0
bfigueroae is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Thanks for the kind words

I made it some years ago - it has its flaws I am sure, but seems to be used quite a bit. You are of course most welcome to send me feedback.

Mads
hi MadSr. How do I cite http://hvirvel.dk/airfoilmesher/ (in a PhD thesis) ?
bfigueroae is offline   Reply With Quote

Old   March 15, 2018, 10:56
Default
  #29
Member
 
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 10
elmo555 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Just to clarify: there is nothing to download from http://hvirvel.dk/airfoilmesher/ . You just upload your airfoil x,y data and you get a blockMeshDict thrown back in your face

Mads
Hey Mads,

I just tried to use your mesher with default settings (also no airfoil data file), and unfortunately the generated blockMeshDict seems to be broken:

Code:
	Basic statistics
		Number of internal faces : 4
		Number of boundary faces : 16
		Number of defined boundary faces : 16
		Number of undefined boundary faces : 0
	Checking patch -> block consistency



--> FOAM FATAL ERROR: 
Block mesh topology incorrect, stopping mesh generation!

    From function void Foam::blockMesh::check(const Foam::polyMesh&, const Foam::dictionary&) const
    in file blockMesh/blockMeshCheck.C at line 228.

FOAM exiting
elmo555 is offline   Reply With Quote

Old   March 31, 2019, 18:38
Default
  #30
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Just to clarify: there is nothing to download from http://hvirvel.dk/airfoilmesher/ . You just upload your airfoil x,y data and you get a blockMeshDict thrown back in your face

Mads
Hi Mads,

I'm wondering which format should we use for the coordinates file when generating a different airfoil?

Thanks!
sibo is offline   Reply With Quote

Old   March 31, 2019, 18:51
Default
  #31
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Thanks for the kind words

I made it some years ago - it has its flaws I am sure, but seems to be used quite a bit. You are of course most welcome to send me feedback.

Mads
Hi Mads,

Firstly, thanks for the mesher you provided. I'm just wondering when we submit the airfoil coordinates, which format should we use?
Because I tried .dat, .txt and .rtf, they don't work.

Thanks a lot for the help!
Sincerely
sibo is offline   Reply With Quote

Old   April 1, 2019, 09:48
Default
  #32
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
Hi Niels,

I'm wondering which format should we use when submitting a file?

Thanks a lot!
sibo is offline   Reply With Quote

Reply

Tags
aerofoils


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
[snappyHexMesh] OpenFOAM mesh generation for irregular open channel ksmithgall OpenFOAM Meshing & Mesh Conversion 2 June 22, 2017 20:16
On body-fitted cartesian mesh generation sbaffini Main CFD Forum 0 October 21, 2016 10:32
[Salome] Mesh conversion Salome to OpenFOAM VMartinez OpenFOAM Meshing & Mesh Conversion 11 April 21, 2014 02:54
[Workbench] Aerofoil mesh generation problem elebelly ANSYS Meshing & Geometry 1 February 26, 2014 08:53
salome, openfoam and moving mesh prhlava OpenFOAM Running, Solving & CFD 8 November 9, 2009 08:59


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