title: Determining a mean camber line
body: <p>Fellow programmers,</p>
  
  <p>I know this is a little outside your juridistiction, but I was wondering perhaps if you have time, if you could help me with one "procedure". Not in view of math but what would be the best way to take.</p>
  
  <p><img src="https://i37.photobucket.com/albums/e67/DThanhvp/American.jpg" alt="alt text">
  <img src="https://i.stack.imgur.com/wt6AS.jpg" alt="alt text"></p>
  
  <p>This is an airfoil / profile. Usually, profiles are defined with two sets of data. One is the position of mean camber line, given in the form of x,y where x is usually given in percentages of chord length. Second set of data is thickness at percentages of chord length. Thickness is always drawn perpendicular to the camber line(!), and that gives the profile points.</p>
  
  <p>Now, I have a reverse problem - I have points of a profile, and I need to determine the position of the camber line. Method of interpolation through points can vary, but it doesn't matter, since I can always interpolate as many points as I need, so it comes to linear in the end.</p>
  
  <p>Remember, since the thinkness is drawn perpendicular to the camber line, the position of camber line is not mean between the points of upper and lower  line of profile (called the back and face of profile). </p>
  
  <hr>
  
  <p><em>Edit (how this is done on paper):</em> Uhh, painfully and in large scale (I'm talking long A0 paper here, that is 1189x5945mm on a large drawing desk. You start by drawing a first camber line (CL) iteration through the midpoints (mean points) between the points of face and back at same x ordinates. After that you draw a lot of perpendicular lines, perpendicular to that CL, and find their midpoints between face and back (those points on face and back will no longer have same x values). Connect those, and that is your second iteration CL. After that you just repeat the second step of the procedure by drawing perpendicular lines onto that 2nd CL ... (it usually converges after 3 or 4 iterations). </p>
  
  <hr>
  
  <p><em>2nd Edit:</em> Replaced the picture with one which better shows how the thinkness is "drawn" onto the camber line (CL). Another way of presenting it, would be like picture no.2. If you drew a lot of circles, whoce center points are at the camber line, and whose radiuses were the amounts of thickness, then tangents to those circles would be the lines (would make up the curve) of the profile.</p>
  
  <p>The camber line is not the mean line (mean between the points of face and back); it can coincide with it (therefore usually the confusion). That difference is easily seen in more cambered profiles (more bent ones).</p>
  
  <hr>
  
  <p>3rd edit - to illustrate the difference dramatically (sorry it took me this long to draw it) between the mean line and camber line, here is the process of how it is usually done "on paper". This is a rather deformed profile, for the reason, that the difference between the two can be more easily shown (although profiles like this exist also).</p>
  
  <p>In this picture the mean line is shown - it is a line formed by the mean values of face and back on the same x coordinates.</p>
  
  <p><img src="https://i.stack.imgur.com/9AVmL.png" alt="alt text"></p>
  
  <p>In this picture onto the mean line, perpendicular lines were drawn (green ones). Midpoints of those perpendicular lines make up for the 1st iteration of the camber line (red intermittent line). See how those circles fit better inside the airfoil compared to the first picture.</p>
  
  <p><img src="https://i.stack.imgur.com/FzoFR.png" alt="alt text"></p>
  
  <p>In the picture below the 2nd iteration of the camber line is shown, along with the mean line from the first picture as to illustrate the difference between the two. Those circles are fitting even better now inside (except that first one which flew out, but don't mind him).</p>
  
  <p><img src="https://i.stack.imgur.com/fhATz.png" alt="alt text"></p>