- #1
jboeck6
- 1
- 0
We are beginning a project in my Intermediate Fluids class to make a program that can do aerodynamic analysis on an air foil. First, given any three nodal coordinates (x,y) of a triangle, we must write a program to compute its surface vectors and area of the triangle. The nodes will be in clockwise order.
I know I can compute the area through a determinant by doing A=0.5*det([1,1,1;x1,x2,x3;y1,y2,y3]); where 1, 2, and 3 denote each node and x and y are the coordinates.
Please help me start off my code or give insight to calculating the surface vectors.
Also, we will be using MATLAB.
Thanks!
I know I can compute the area through a determinant by doing A=0.5*det([1,1,1;x1,x2,x3;y1,y2,y3]); where 1, 2, and 3 denote each node and x and y are the coordinates.
Please help me start off my code or give insight to calculating the surface vectors.
Also, we will be using MATLAB.
Thanks!