pymead.utils.get_airfoil.extract_data_from_airfoiltools#
- extract_data_from_airfoiltools(name: str, repair: Callable | None = None) ndarray[source]#
Extracts the \(xy\)-coordinates of a specified airfoil from Airfoil Tools and returns the \(xy\)-coordinates as a numpy array of
shape=(N,2)whereNis the number of airfoil coordinates, and the columns represent \(x\) and \(y\).- Parameters:
name (str) –
Name of the airfoil to be requested from Airfoil Tools. The name must exactly match the airfoil name inside the parentheses on Airfoil Tools. For example,
"naca0012"does not work, but"n0012-il"does.repair (Callable or None) – An optional function that takes that makes modifications to the set of \(xy\)-coordinates loaded from Airfoil Tools. This function should take exactly one input (the \(N \times 2\)
numpy.ndarrayrepresenting the \(xy\)-coordinates downloaded from Airfoil Tools) and return this array as the output. Default:None
- Returns:
The set of \(xy\)-coordinates of type
numpy.ndarraywithshape=(N,2), whereNis the number of airfoil coordinates and the columns represent \(x\) and \(y\)- Return type: