lundi 16 février 2015

random choice for airfoil generation

I’am writing because I would like to generate new airfoils by shuffling coordinates from other airfoils. Basically I have coordinates from each airfoil in .dat file. Basically the file is structured in the following way: The first line is the name or description of the airfoil; there are two colums: the firt represents the X coordinates, the latter the Y coordinates of the airfoil profile. The two coulms are separated by by white space characters. The X coordinate should be in the range 0.0 to 1.0. The Y coordinate must be in the range -1.0 to +1.0.


Here one example: Clark-Y X1 y1 X2 y2 X3 y3 …. ….


So I would like to write some lines of code to do this: put all dat files from all airfoils i have in an unique folder; pick up random values from random airfoil dat files and put them in a new dat file to generate a new airfoil. Could anyone halp me in figure out this? Thank you


Aucun commentaire:

Enregistrer un commentaire