pymead.analysis.read_aero_data.read_polar#

read_polar(airfoil_name: str, base_dir: str) Dict[str, List[float]][source]#

Reads the polar.xxx file produced by MPOLAR and converts the data to a dictionary of lists

Parameters:
  • airfoil_name (str) – Name of the airfoil provided to MSES (also the name of the sub-folder inside base_dir containing the analysis files)

  • base_dir (str) – Base directory of the analysis. The file being read should have the form base_dir/airfoil_name/polar.airfoil_name

Returns:

Dictionary where each key is a string corresponding to an aerodynamic performance variable and each value is a list of the evaluation of that performance variable at every point along the polar. For example, the dictionary might look something like {"alf": [-1.0, 0.0, 1.0], "Cl": [0.2, 0.3, 0.4], ...}

Return type:

Dict[str, List[float]]