Gmsh: "Physical Volume" of a NACA airfoil?
1 Attachment(s)
I am trying to mesh a NACA airfoil that can be later on imported into OpenFOAM. I searched for information about that on the internet. That's what I found so far:
https://community.dur.ac.uk/g.l.ingr...torial2012.pdf On page 5 the tutorial says that one have to define a "Physical Volume". The attached file shows what I have so far. Gmsh shows up two volumes (yellow points). One inside the Airfoil (Volume 1) and the other one outside the airfoil (Volume 2). Which volume do I have to select!? |
Hi,
cause you need to mesh volume around airfoil (as you need to know flow around the airfoil), you have to select volume outside the airfoil. |
1 Attachment(s)
Ok, that sounds logical. Thank you. I combined the two surfaces into one surface (see attached file). When I press "3" nothing happens!? What's wrong here?
|
2 Attachment(s)
Hi,
what's the version of your Gmsh? 2.8.5 was able to produce the mesh. Though with certain nuances:
|
I am using Gmsh Version 2.8.3 (Ubuntu 14.04). Sometimes meshing works but I can't zoom in or out. Gmsh stops responding or freezes frequently. I will try the latest stable version 2.8.5.
Why is Gmsh meshing inside the airfoil..!? |
Hi,
Quote:
Quote:
1. Define points - you've done it. 2. Define lines connecting points - you've done it. 3. Define surfaces (in you case those will be several plane surfaces - outer boundaries and couple of ruled surfaces - surface of the airfoil) - you've started doing it... 4. Define geometric volumes using bounding surfaces defined during step 3 - well, you've decided to go straightly to defining physical surfaces and volumes. 5. Finally I define physical groups of surfaces (future patches) and physical volume (only one but still we need to define it). I guess, in case of your file, Gmsh is trying to guess volumes those it needs to mesh. Sometimes Gmsh does it successfully, sometimes - not (for example it decides to mesh additional plane). |
1 Attachment(s)
Thank you for your help. I have attached my newest version. I tried to follow your instructions:
1. Points 2. Lines (Splines, Line Loop, Rotate Line) 3. Surfaces That seems to work now. And I tried Gmsh 2.8.5., too. This version seems to work better. I have one more question: Quote:
|
1 Attachment(s)
Hi,
to generate structured meshes, you need to utilize transfinite lines (and then surfaces, and volumes) - http://www.geuz.org/gmsh/doc/texinfo...ructured-grids. Though to use transfinite algorithm you have to modify mesh file. Gmsh can use this algorithm for surfaces with 4 corners and volumes with 6 corners. So you have to divide the area around the airfoil as shown on attached figure, as usual define points, lines, surfaces and volumes and then first define lines as transfinite: Code:
Transfinite Line {line entity numbers} = <number of points on the line>; Code:
Transfinite Surface "*"; Maybe you'll need to move point A to the left to reduce non-orthogonality of the mesh around point F. |
1 Attachment(s)
Ok, so my plan is as follows: I will start with an unstructured grid (easily meshed, rapid generation, quick progress etc...). So I can go on learning OpenFOAM. When I got my first results I will try to create a structured grid.
I have attached the newest version of my .geo file. Before I go on converting the mesh to OpenFOAM can someone please double check my .geo file? @ alexeym: Thank you so much for your support! :) |
Gmsh 2.8.5 has generated quite descent mesh, here's checkMesh output:
Code:
Checking geometry... Code:
Mesh 3; |
Quote:
|
Hi,
I'm also :confused: cause my Gmsh doesn't complain about Save (even installed 2.8.3 to check). |
Sorry, my fault :rolleyes:
Edit: I wrote a GNU Octave script to create the geo file and the reason for the error was that I forgot to add a new line: Code:
... |
All times are GMT -4. The time now is 07:09. |