pymead.analysis.calc_aero_data.write_blade_file#

write_blade_file(name: str, base_dir: str, grid_bounds: ~typing.List[float], coords: ~typing.List[~numpy.ndarray], mea_airfoil_names: ~typing.List[str]) -> (<class 'str'>, typing.List[str])[source]#

Writes airfoil geometry to an MSES blade file

Parameters:
  • name (str) – Name of the airfoil [system]

  • base_dir (str) – Blade file will be stored as base_dir/name/blade.name

  • grid_bounds (List[float]) – The far-field boundary locations for MSES, of the form [x_lower, x_upper, y_lower, y_upper]. For example, [-6, 6, -5, 5] will produce a pseudo-rectangular far-field boundary with \(x\) going from -6 to 6 and \(y\) going from -5 to 5. The boundary is not perfectly rectangular because MSES produces far-field boundaries that follow the streamlines close to the specified \(x\) and \(y\)-locations for the grid.

  • coords (List[np.ndarray]) – A 3-D set of coordinates to write as the airfoil geometry. The array of coordinates has size \(M \times N \times 2\) where \(M\) is the number of airfoils and \(N\) is the number of airfoil coordinates. The coordinates can be input as a ragged array, where \(N\) changes with each 3-D slice (i.e., the number of airfoil coordinates can be different for each airfoil).

  • mea_airfoil_names (List[str]) – List of airfoil names contained in the MEA

Returns:

Absolute path to the generated MSES blade file and a list of the airfoil names found in the MEA, ordered by vertical position (descending order)

Return type:

str, List[str]