Skip to content

airfoil_utils

read_coordinates_files(filename, headerlines=0)

Reads a '.dat' style airfoil coordinate file, with each coordinate on a new line and each line containing an xy pair separate by whitespace.

Parameters:

Name Type Description Default
filename

str dat file from which to read data

required
headerlines

int the number of lines to skip at the beginning of the file to reach the coordinates

required

Returns:

Name Type Description
X

Ndarray [N,2] The coordinates read from the file