pymead.analysis.calc_aero_data.write_spec_file#

write_spec_file(name: str, base_dir: str, alfa_array: ndarray) str[source]#

Writes the “spec” file required by MPOLAR. This file is simply an integer indicating that that the angle of attack is being swept followed by the values of angle of attack.

Parameters:
  • name (str) – Name of the airfoil. File will be written to base_dir/name/spec.name

  • base_dir (str) – Base directory where the analysis will take place

  • alfa_array (numpy.ndarray) – Array of angle of attack values in degrees

Returns:

Absolute path to the spec file

Return type:

str