postprocessing.paraview.utils ============================= .. py:module:: postprocessing.paraview.utils Functions --------- .. autoapisummary:: postprocessing.paraview.utils.sort_airfoil postprocessing.paraview.utils.find_te Module Contents --------------- .. py:function:: 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: **coords** : ndarray Unsorted 2D airfoil coordinates in an X-Y plane with the flow direction as +X and lift direction as +Y. **arclen** : ndarray 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. .. !! processed by numpydoc !! .. py:function:: find_te(coords) Identify trailing edge coordinates and their corresponding indices from 2D airfoil data in an X-Y plane. :Parameters: **coords** : ndarray 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 .. !! processed by numpydoc !!