airfrans.naca_generator

thickness_dist(t, x, CTE=True)[source]

Standard NACA profile to warp with the help of a camber line to define all the 4 and 5 digits profiles.

Parameters
  • t (float) – Thickness of the airfoil in percentage of the chord length.

  • x (np.ndarray) – Abscissas in chord unit.

  • CTE (bool, optional) – If True the profile will be closed at the trailing edge. Default: True

camber_line(params, x)[source]

Camber line definition for the NACA 4 and 5 digits series.

Parameters
  • params (np.ndarray) – Parameters of the NACA 4 or 5 digits profile (ndarray of shape (3) or (4)).

  • x (np.ndarray) – Abscissas in chord unit.

naca_generator(params, nb_samples=400, scale=1, origin=(0, 0), cosine_spacing=True, verbose=True, CTE=True)[source]

Definition of a complete profile from the NACA 4 and 5 digits series.

Parameters
  • params (np.ndarray) – Parameters of the NACA 4 or 5 digits profile (ndarray of shape (3) or (4)).

  • nb_samples (int, optional) – Number of points to define the profile. Default: 400

  • scale (float, optional) – Chord length in meters. Default: 1

  • origine (tuple, optional) – Absolute position of the leading edge. Default: (0, 0)

  • cosine_spacing (bool, optional) – If True, points are sampled via a cosine distance instead of uniformly. Default: True

  • verbose (bool, optional) – Comments on the generation process. Default: True

  • CTE (bool, optional) – If True the profile will be closed at the trailing edge. Default: True