|
[Sponsors] |
August 4, 2009, 20:34 |
running airFoil2D
|
#1 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Hi,
Why doesn't the airFoil2D case have a blockMeshDict? I tried running icoFoam on airFoil2D but the error message said that mesh description file could not be opened. Do I need to create one, and if so, is there a way of generating vertices, blocks, patches,etc? Thanks! |
|
August 5, 2009, 03:22 |
|
#2 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Nomad,
because the mesh is already ready for use. Maybe the mesh has not been created with blockMesh, but has been imported from external sources. Henrik |
|
August 5, 2009, 03:58 |
|
#3 |
New Member
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17 |
I was wondering the same thing. Where is the Mesh information stored and can you just run the simulation then? ie. skip the blockMesh part and just type potentialFoam (or whichever one it was). Is the Mesh file editable in a mesh generator like netgen or gmsh?
|
|
August 5, 2009, 04:10 |
|
#4 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Nomad,
please have a look into sections 5.1.1 and 5.1.2 of the user manual where is all explained in detail. Henrik |
|
August 5, 2009, 07:34 |
|
#5 |
New Member
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17 |
I just read through the user guide again (doh, should've done it first! Didn't recall that information from the first time I went through the guide) and it's a lot clearer.
|
|
August 5, 2009, 14:30 |
|
#6 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Thanks Henrik,
If I want to analyze my own airfoil, I would still need to write a blockMeshDict file to generate the boundaries, cells, faces, etc. data. If so, how would I set up the vertices, blocks, and patches? Or is it better to use an external pre-processor? Thanks. |
|
August 5, 2009, 14:56 |
|
#7 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Nomad,
there is a bunch of converters which will read almost any mesh format. See here: http://www.opencfd.co.uk/openfoam/me...meshConversion I am also pretty sure that there are tools in the open domain to create meshes for the standard 2D airfoils ... browse the forum and web. Henrik |
|
September 2, 2009, 00:17 |
NGSolve airfoil mesh
|
#8 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Hi,
I've been getting pretty crappy results with an airfoil at a small angle of attack in openfoam, I'm using NGSolve to generate the mesh (which doesn't look very nice) and gmsh to optimize it and I've attached a picture of it. Is there anyway of improving the mesh in either NGSolve or gmsh and do I really have to use both? Some help would be appreciated. Thanks. |
|
September 2, 2009, 02:30 |
|
#9 |
Member
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
Hi,
why do you use tetraeder. I think a hexa-mesh would be much better. Christof |
|
September 2, 2009, 15:15 |
|
#10 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Hi Christof,
Would you be able to recommend opensource hex-mesh generators? It seems like CUBIT (Sandia) and CART3d (NASA) are restricted for use to only US citizens. Are there mesh generators that are catered towards airfoil meshes? Thanks. |
|
September 2, 2009, 16:06 |
|
#11 |
Member
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
Hi,
you could try Salome or Netgen. If you google them you will find some tutorials. I think they are appropriate for airfoil mesh generation. Christof |
|
September 2, 2009, 16:09 |
|
#12 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
I am using NetGen, the attached jpeg above is of a mesh created in NetGen, however I didn't know it could do hex meshes.
|
|
September 2, 2009, 16:17 |
|
#13 |
Member
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
ahh....i see it only meshes tets automatically.
you can use Salome for hexa meshing. Why you dont use blockMesh? Christof |
|
September 2, 2009, 16:33 |
|
#14 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
In order to use blockmesh, if I'm right, you need to have the vertices of the volume already defined, including patches, blocks, edges, etc. If there is a trivial way of doing this for an airfoil, please do let me know.
Last edited by nomad; September 2, 2009 at 17:08. |
|
September 3, 2009, 01:03 |
|
#15 |
Member
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
youre right john. i dont know exactly but the surface of an airfoil is a analytical function, or? if so you could estimate the coordinates if all points. another way is to use snappyHexMesh.
nevertheless you could increase your volumenumber. |
|
September 4, 2009, 14:47 |
|
#16 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
So I suppose the reason I was getting crappy results with the airfoil at low angles of attack was because I was specifying the boundaries of the control volume incorrectly. The flow around the airfoil is an external flow and so maybe the walls should be assigned freestream values instead of fixed values.This still doesn't mean that the mesh is acceptable.
Anyway, I get the right flow, but I still don't get the right force values. Also, since this is a 2d flow (single cell thickness of mesh), I should be able to plot streams in paraFoam. However, I only get 5 streams. How do I get more streams to show up? Thanks Last edited by nomad; September 4, 2009 at 15:08. |
|
September 7, 2009, 17:58 |
|
#17 | |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
Quote:
I'm currently working with a simple cylinder to see if I can get reasonable numbers. BTW I've been using gmsh to make my meshes. It's got a fairly nice language for describing the geometry, and I like that it slowly blends cell sizes from one point to another. I've seen abrupt changes in cell sizes cause problems with some of the solvers. Steve |
||
September 7, 2009, 18:02 |
|
#18 | |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
Quote:
Also the glyph display isn't bad for seeing the air flow. I usually change the default scale down by a factor of 10 because i have a big 10m x 10m test area and a foil that's only about 0.1 m long. |
||
September 23, 2009, 05:40 |
|
#19 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Guys.
If you are working with a mesh like the one that's depicted a few posts up, a very crude tet-mesh, I am not surprised that you get more or less arbitrary results - at least when looking at surface-related integral quantities, such as pressure, lift and drag. And sadly, these quantities are typically of most interest. You need to resolve the boundary layer, or have some really capable wall-models (at least for the attached case). A suggestion could be to mesh (with hexahedrals to reduce false interpolation, especially at the boundary), with y+ down to 1-3 at the airfoil. When meshing with such low y+ values, you need to remember to use a turbulence model which does NOT employ wall-models. Typically they are called low-Reynolds Number-models. A genuine implementation of the Spalart-Allmaras model should be OK at low angle of attack. Many other models are also applicable, as long as they do not use wall-models. When the flow separates, at high angle of attack, you most definitely need this, and your milage may vary nonetheless as separated airfoil flows are among the most difficult problems to solve (and hence the most exciting). SAS-, DES- or even LES-approaches may be the only way there. Just my 2 cents. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 23, 2009, 12:08 |
|
#20 |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
Thanks for all the pointers MadsR! I guess I need to step back and ask the big question... Has CFD and computer technology progressed to the point where you can put an untested virtual item in an airflow and know how it will behave in real life? I've been learning that to make simulation agree with known results takes much work, and there are 1000x more ways to get bad results than good ones.
My dream was to be able to put untested wind turbine designs in a virtual wind and see how they work. But this involves wings being at all angles of attack, some in stall, different wing speeds at different points of the rotation, etc. I'm starting to think CFD isn't there yet. Maybe in 20 more years, when computers are 1000x faster, and we can do everything with a 10 micronmesh it might work. Is CFD useful for testing cars or planes? Or is it only used to see what's happening when you get some strange wind tunnel results? Any opinions would be appreciated. Steve (Now thinking a wind tunnel is the way to go) |
|
Tags |
airfoil2d, blockmeshdict, simplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
running without rsh between nodes | hattonps | OpenFOAM | 10 | March 22, 2010 16:02 |
What do you CFD guys do during a long simulation running? | bearcat | Main CFD Forum | 5 | July 23, 2009 09:08 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |
Tutorial is not running on star-CD version 3.2 | Arnab | Siemens | 0 | August 30, 2004 16:43 |
star is not running the simulation in windows | Arnab | Siemens | 1 | August 2, 2004 03:40 |