postprocessing.paraview.utils
Functions
|
Airfoil slices from Paraview are typically well sorted because they follow |
|
Identify trailing edge coordinates and their corresponding indices from 2D |
Module Contents
- postprocessing.paraview.utils.sort_airfoil(coords, arclen)
Airfoil slices from Paraview are typically well sorted because they follow the curvature of the section. But, segments can be out of order. This function sorts these segments into counter-clockwise ordering starting at the top of the trailing edge.
- Parameters:
- coordsndarray
Unsorted 2D airfoil coordinates in an X-Y plane with the flow direction as +X and lift direction as +Y.
- arclenndarray
Arclengh along the segments corresponding to the input coordinates.
- Returns:
- ndarray
Sorted airfoil coordinates.
- ndarray
Sorted arclength array matching the sorted airfoil coordinates.
- ndarray
Indice mapping from unsorted to sorted coordinate array.
- postprocessing.paraview.utils.find_te(coords)
Identify trailing edge coordinates and their corresponding indices from 2D airfoil data in an X-Y plane.
- Parameters:
- coordsndarray
Sorted 2D airfoil coordinates in an X-Y plane with the flow direction as +X and lift direction as +Y. The coordinate ordering should be counter-clockwise.
- Returns:
- ndarray
Coordinates of the upper and lower surface TE points
- ndarray
Indices of the upper and lower surface TE points