Fluid Mechanics Problem Creating a Mesh

AI Thread Summary
The discussion focuses on a project in an Intermediate Fluids class aimed at creating a program for aerodynamic analysis of an airfoil. Participants are tasked with computing the surface vectors and area of a triangle defined by three nodal coordinates in a clockwise order. The area can be calculated using a determinant formula involving the coordinates of the triangle's vertices. Additionally, guidance is provided on calculating surface vectors by treating the line between two points as a vector and using cross products to find orthogonal vectors. The programming will be done in MATLAB, emphasizing the need for proper vector normalization and placement.
jboeck6
Messages
1
Reaction score
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!
 
Engineering news on Phys.org
Well you know the direction from anyone point to an adjacent point, right? Treat the line connecting those two as a vector and cross it with a vector coming "out of the page" from the same vertex you started with and you will get a mutually orthogonal vector. Then just normalize it and place it in the center of the line connecting your two points.
 
Posted June 2024 - 15 years after starting this class. I have learned a whole lot. To get to the short course on making your stock car, late model, hobby stock E-mod handle, look at the index below. Read all posts on Roll Center, Jacking effect and Why does car drive straight to the wall when I gas it? Also read You really have two race cars. This will cover 90% of problems you have. Simply put, the car pushes going in and is loose coming out. You do not have enuff downforce on the right...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Thread 'What's the most likely cause for this carbon seal crack?'
We have a molded carbon graphite seal that is used in an inline axial piston, variable displacement hydraulic pump. One of our customers reported that, when using the “A” parts in the past, they only needed to replace them due to normal wear. However, after switching to our parts, the replacement cycle seems to be much shorter due to “broken” or “cracked” failures. This issue was identified after hydraulic fluid leakage was observed. According to their records, the same problem has occurred...
Back
Top