CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Turbulent flow over an airfoil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2012, 11:20
Default Turbulent flow over an airfoil
  #1
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
appa is on a distinguished road
I am trying to simulate a turbulent flow over a naca profile. I am working with both simpleFoam and pisoFoam solvers, but I didn't get any good results until now. Can someone help me please and tell me what should I do ???
http://www.4shared.com/file/Bdx2tB1G/blockMeshDict.html
appa is offline   Reply With Quote

Old   April 10, 2012, 16:36
Default
  #2
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
maybe you can attach the text file instead of (I assume involuntarily) sending us to a spammy link?
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 10, 2012, 19:19
Default
  #3
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
appa is on a distinguished road
Quote:
Originally Posted by mihaipruna View Post
maybe you can attach the text file instead of (I assume involuntarily) sending us to a spammy link?
it is not a spammy link
here is the blockMeshDict file, I put it in the .c format so as to be able to attach it here.
Attached Files
File Type: c blockMeshDict.c (36.0 KB, 27 views)
appa is offline   Reply With Quote

Old   April 10, 2012, 21:10
Default
  #4
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
I think it would be easier to create an STL of the airfoil with a bit of thickness (s stubby wing) ,but obviously more than the width of the domain, and then use Snappy Hex Mesh to automatically mesh the domain around the wing/airfoil and to refine the mesh.
You can create the STL with a freeware program such as FreeCAD.
I used BlockMesh with a width of 0.1 and 1 cell width, empty patches on the side, like you have, and was able to get OKish results for Cl.

In your blockmesh dictionary, I do believe you are using parentheses instead of brackets in several areas, and I don't think you can have spaces in the patch name (empty frontandback there I think is a patch name, not a patch name and BC)

Refer to the airfoil tutorial for simpleFoam.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 11, 2012, 00:34
Default
  #5
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Hi,
I did a NACA0012 turbulence incompressible model using simpleFoam (K-epsilon). It did run beautifully although, for zero AOA simpleFoam runs but when i change the AOA to 5 degree, it crashes after few iterations.
@appa
Regarding your result, i have few questions like can you share some plot with standard
resluts, as you have got some result but you are worried about accuracy?
Also , can you suggest me how to over come my problem. See, at inlet Vx=43.8.(approx) and Vy= 3.88.( approx) for AOA 5degree , but solver crashes after few iteration.
Though for zero AOA it solves.
regards
CFDkid
kid is offline   Reply With Quote

Old   April 11, 2012, 10:10
Default
  #6
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
maybe running out of memory?
what does it say when it crashes?
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 11, 2012, 20:09
Default
  #7
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
appa is on a distinguished road
Quote:
Originally Posted by mihaipruna View Post
I think it would be easier to create an STL of the airfoil with a bit of thickness (s stubby wing) ,but obviously more than the width of the domain, and then use Snappy Hex Mesh to automatically mesh the domain around the wing/airfoil and to refine the mesh.
You can create the STL with a freeware program such as FreeCAD.
I used BlockMesh with a width of 0.1 and 1 cell width, empty patches on the side, like you have, and was able to get OKish results for Cl.

In your blockmesh dictionary, I do believe you are using parentheses instead of brackets in several areas, and I don't think you can have spaces in the patch name (empty frontandback there I think is a patch name, not a patch name and BC)

Refer to the airfoil tutorial for simpleFoam.
I don't know how to create an STL, I found this blockMeshDict on the internet and I tried to add some changes to make it work but when I run chechMesh there is always a failure. I am preparing my own model with gmsh right now. How to use the Snappy Hex Mesh ??? is it a console command ?
Quote:
Originally Posted by kid View Post
Hi,
I did a NACA0012 turbulence incompressible model using simpleFoam (K-epsilon). It did run beautifully although, for zero AOA simpleFoam runs but when i change the AOA to 5 degree, it crashes after few iterations.
@appa
Regarding your result, i have few questions like can you share some plot with standard
resluts, as you have got some result but you are worried about accuracy?
Also , can you suggest me how to over come my problem. See, at inlet Vx=43.8.(approx) and Vy= 3.88.( approx) for AOA 5degree , but solver crashes after few iteration.
Though for zero AOA it solves.
regards
CFDkid
yes sure, here is what I get using pisoFoam (K-epsilon model also) with the mesh of the airfoil2D file .
For the change of the AOA, I don't know really. I'll have to try it first and I'll let you know.



Quote:
Originally Posted by mihaipruna View Post
maybe running out of memory?
what does it say when it crashes?
no it saids "exception en point flottant"
I guess there are some nodes faces that he didn't know where to belong, when meshing under OF they were added to a new boundary where the solver crashes.
"
Attached Images
File Type: jpg vitesse.0006.jpg (21.4 KB, 23 views)
File Type: jpg vitesse.0007.jpg (23.7 KB, 22 views)
File Type: jpg vitesse.0020.jpg (26.5 KB, 21 views)
File Type: jpg pression.0004.jpg (25.0 KB, 17 views)
File Type: jpg pression.0015.jpg (29.6 KB, 29 views)
appa is offline   Reply With Quote

Old   April 12, 2012, 09:12
Default
  #8
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
to use SnappyHexMesh, you create your STL file, the dictionary file in the System directory, and run it with the command snappyhexmesh.
Take a look at the motorcycle tutorial, the STL version.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 13, 2012, 10:31
Default
  #9
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
appa is on a distinguished road
@mihaipruna: thanks , but I still don't know how to create an STL file
@CFDkid: I tried to change the Vx and Vy values in the u file, Vx*cos(5) , Vy*sin(y) , I put the values and it worked perfectly.
It didn't work when I used a geometry with an angle of attack different from 0 and I don't know why :/ (I tried to run this example on Elmer and it worked !)
appa is offline   Reply With Quote

Old   April 13, 2012, 13:35
Default
  #10
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
Quote:
Originally Posted by appa View Post
@mihaipruna: thanks , but I still don't know how to create an STL file
that is the easiest part. You can draw your airfoil in a free cad program such as this one:
http://sourceforge.net/apps/mediawik...itle=Main_Page
extrude it a bit, making sure it will extend beyond the blockmesh domain spanwise,save it as STL and then feed it to SHM.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 19, 2012, 16:59
Default
  #11
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
Hi Appa, maybe you should use a bigger mesh. It looks to me that you are still in the situation where your simulation is influenced by the boundary conditions.
Hope it works.
wiedangel is offline   Reply With Quote

Old   March 6, 2013, 03:09
Default Elmer sif file
  #12
New Member
 
Join Date: Sep 2011
Posts: 1
Rep Power: 0
emarchandise is on a distinguished road
Quote:
Originally Posted by appa View Post
@mihaipruna: thanks , but I still don't know how to create an STL file
@CFDkid: I tried to change the Vx and Vy values in the u file, Vx*cos(5) , Vy*sin(y) , I put the values and it worked perfectly.
It didn't work when I used a geometry with an angle of attack different from 0 and I don't know why :/ (I tried to run this example on Elmer and it worked !)

Hello Appa, I am just trying to solve flow around naca airfoil and have some troubles with my elmer sif file (no convergence, problme with boundary condition, ...). Could you help me by posting your Elmer example ? (emilie_marchandise@skynet.be)
This could be very nice ...
Emilie
emarchandise 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
Optimize for laminar flow, assume it valid for turbulent flow? Chander CFX 15 November 6, 2011 05:06
Particle deposition on circular cylinder in turbulent flow Julian K. CFX 1 October 3, 2011 17:51
About the invisd flow around an airfoil maximus Main CFD Forum 1 July 16, 2005 15:04
Reynolds and Turbulent flow Frederic Dubinski CFX 5 October 21, 2004 04:12


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