示例#1
0
    def redistribute(self, points, pos_z):

        if self.redistribute_flag == False:
            return points

        airfoil = AirfoilShape(points=points)
        try:
            dist_LE = np.interp(pos_z, self.dist_LE[:, 0], self.dist_LE[:, 1])
        except:
            dist_LE = None
        # pass airfoil to user defined routine to allow for additional configuration
        airfoil = self.set_airfoil(airfoil, pos_z)
        if self.x_chordwise.shape[0] > 0:
            airfoil = airfoil.redistribute_chordwise(self.x_chordwise)
        else:
            airfoil = airfoil.redistribute(ni=self.chord_ni, dLE=dist_LE)

        return airfoil.points