FireStats error : FireStats: Unknown commit strategy Delaunay Triangulation around NACA 0012 in MATLAB - openAE Forum
Search openAE
User Login
Poll
What applications are you most interested in?
 
Poll
What Would You Like to See Most on OpenAE
 
openAE Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Delaunay Triangulation around NACA 0012 in MATLAB
(1 viewing) 1 Guest
Discussion of various CFD software and its methodology...
Go to bottom
TOPIC: Delaunay Triangulation around NACA 0012 in MATLAB
#369
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Delaunay Triangulation around NACA 0012 in MATLAB 9 Months ago Karma: 5
Delaunay Triangulation, is one of the most interesting methods in computational engineering, it is mainly used for domain Discretization in which the domain could be an area, volume, polygon etc… Examples of application of Delaunay triangulation are finite element methods and computational geometry.



Best to my knowledge, the term ‘Delaunay’ is originated from the famous French painter, Robert Delaunay and his wife, who used Orphism in their art work. What is Orphism? Why it is related to triangulation? Me and you don’t have to know
In this tutorial, I will explain how to generate Delaunay triangulation around NACA-0012 airfoil in MATLAB, thanks to CGAL (Computational Geometry Algorithms Library), the algorithms is done for us, so we just have to prepare our data and then execute few MATLAB commands to achieve our goal.

Here are the main steps to generate the Delaunay triangulation in MATLAB:

1- Draw a boundary Box.
2- Draw the selected geometry
3- Define the in/out region
4- Insert seed points
5- Connects these points to form the triangulation



Boundary Box

The boundary box is a simple rectangular shape that defines the boundaries of the domain, it must have enough room to accommodate the airfoil or any selected geometry, and so any point outside this domain is ignored. In fluid dynamics schemes, the boundary box is used to define the boundary conditions, to make it easier to understand, let us give a case of an airfoil inside a wind tunnel, the boundary box will represent the wind tunnel and we use it to define the boundary condition i.e wind flow direction and velocity, density, temperature etc…
Now, to form the dynamic Delaunay triangulation i.e. the density of the triangles in the domain area can be scaled, we have to define the boundary edges/lines with equally spaced points, in which the number of points can be controlled, for example, a horizontal line with length of 10 at y=0 can have the following coordinates:
X = [0,5,10] y = [0,0,0]
or
x= [0,2,4,6,8,10] y = [0,0,0,0,0,0]
or
x= [0,1,2,3,4,5,6,7,8,9,10] y=[0,0,0,0,0,0,0,0,0,0,0]

All these coordinates will form the same line although the points densities are different, for a dynamic structure, we must be able to control the number of these points.
So we will start defining the boundary box vertices as follow:
Code:


%========================
% GEOMETRY DEFINITION
%========================
left_edge = -2;
right_edge = 2;
bottom_edge = -2;
top_edge = 2;
sub_points = 10;
 
 
%Outer Lower Boundary
XLOWER = linspace(left_edge,right_edge,sub_points);
YLOWER = ones(size(XLOWER));
LOWER  = [XLOWER; -YLOWER];
%Outer Upper Boundary
% XUPPER = linspace(2,-2,25);
XUPPER = linspace(right_edge,left_edge,33);
YUPPER = ones(size(XUPPER));
UPPER  = [XUPPER; YUPPER];
%Left Wall Boundary 
WLEFTY   = linspace(top_edge,bottom_edge,sub_points);
WLEFTX   = ones(size(WLEFTY)).*-2;
WALLLEFT = [WLEFTX; WLEFTY];
%Right Wall Boundary
% WRIGHTY   = linspace(-1,1,25);
WRIGHTY   = linspace(-0.916667,1,33);
WRIGHTX   = ones(size(WRIGHTY)).*2;
WALLRIGHT = [WRIGHTX; WRIGHTY];
%OUTER BOUNDARY
OuterProfile = [LOWER, WALLRIGHT, UPPER, WALLLEFT]';


In this part of the code, the *_edge defines the boundary box size, the [i]sub_point[/b] variables, is the number of N pointes in each edge/line, we change this variable to increase or decrease the resolution of the mesh.
Then we define the X and Y point using the linspace function, in which we input the start point and the end point of the line, and the number of the intermediate points which are spaced evenly across the line. Take the example of XLOWER which an array contains the X point of the lower edge of the bourndary box, the X coordinates starts from left edge to the right edge and have number of sub_points spaced evenly, please don’t pay attention to my choice of variables name, they are just RANDOM!. For the Y coordinates of the lower edge, since the line is horizontal, i.e all the Y coordinates are same, we use the function ones which construct an array of 1 with same size as XLOWER, then multiply it by our desired Y coordinates value and store it into YLOWER variable. An example
Code:


XLOWER = [-2, -1.56, -1.11, -0.67, -0.22, 0.22, 0.67, 1.11, 1.56, 2]
YLOWER = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]


If we multiply YLOWER by 2, then all the array element will be 2 and so, the line will shift upwards.
Final step in this part is consolidate X and Y coordinates in into single array (LOWER), so one array will hold the X,Y coordinates for a single edge, then re-consolidate all the edges in to one array (OuterProfile) which will represent the boundary box
In the next step will go through adding the airfoil coordinates, and prepare our geometry profile for Delaunay triangulation! So stay tuned
 
Logged Logged
  The administrator has disabled public write access.
#427
EffincAnott
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
getting rid of bed bugs 6 Hours, 45 Minutes ago Karma: 0
Before Globe War II, along with from the finish regarding it, bed bugs had been a new typical pest in the United States. It could be discovered within just about all five continents with the world. And, that's precisely why we are generally about to make real waves through debunking 1 in the main myths place forward through exterminators.

Why are generally these people identified as bed bugs? With Regard To the particular straightforward fact they adore for you to hang out in bed linen as well as other furniture inside your house. Store suitcases throughout sealed plastic bags inside the garage. To kill body lice:.

Anyways, don't freak out around the query of how to obtain rid regarding bed bugs. Primitive sanitation does possess some indirect connection using the severity with the infestations. A mini replica of a cockroach. Going via the nuisance caused by simply nasty little bugs, it actually is personally recommended by simply us for you to kill bed bugs and also end up being at peace.

Get rid involving bed bugs inside the safest ways that you can. If they may possibly be current inside home they lead to allergy such as running nose. Keeping your current home clean or pest-free should not necessarily end up being a person only concern. Some organic plants may furthermore do your job. If an individual encounter bed bugs inside your bedroom your best way can be to use any bed bugs apply in order to swiftly obtain rid of them.

Bedbugs are generally tiny little insects that resemble any cockroach. A rash is the changing associated with skin's texture, color or appearance. You will have a difficult moment sleeping because involving it.

To kill physique lice it actually is necessary to just take the bath with body lice killer that is made up involving essential oils as well as you tend to be in a new position to in addition use body enzyme spray. By performing this, that they manage not in order to kill most of the bugs these people had been likely after, as well as the remaining bugs start for you to acquire a new resistance for the poisons. To steer clear of bed bugs inside your bedroom it is recommended to always be able to often vacuum to keep it clean. You could regarding program contact within exterminators yet this option could kill your current bank stability too as the bugs!.


How to get rid of bed bugs
 
Logged Logged
  The administrator has disabled public write access.
Go to top