Beispiel #1
0
def create_custom_profile():
    """
    xup_coordinates, yup_coordinates, xdown_coordinates, ydown_coordinates
    """
    xup = np.linspace(-1.0, 1.0, 5)
    yup = np.array([0.0, 0.75, 1.0, 0.75, 0.0])
    xdown = np.linspace(-1.0, 1.0, 5)
    ydown = np.zeros(5)
    return pr.CustomProfile(xup=xup, yup=yup, xdown=xdown, ydown=ydown)
Beispiel #2
0
def create_sample_blade_custom():
    xup = np.linspace(-1.0, 1.0, 5)
    yup = np.array([0.0, 0.75, 1.0, 0.75, 0.0])
    xdown = np.linspace(-1.0, 1.0, 5)
    ydown = np.zeros(5)
    sections = np.asarray([
        pr.CustomProfile(xup=xup, yup=yup, xdown=xdown, ydown=ydown)
        for i in range(10)
    ])
    radii = np.arange(0.4, 1.31, 0.1)
    chord_lengths = np.concatenate(
        (np.arange(0.55, 1.1, 0.15), np.arange(1.03, 0.9,
                                               -0.03), np.array([0.3])))
    pitch = np.append(np.arange(3.0, 4., 0.2), np.arange(4.1, 3.2, -0.2))
    rake = np.append(np.arange(5e-3, 0.08, 1e-2),
                     np.arange(0.075, 0.02, -3e-2))
    skew_angles = np.append(np.arange(-4., -9., -3.), np.arange(-7., 15., 3.))
    return bl.Blade(sections=sections,
                    radii=radii,
                    chord_lengths=chord_lengths,
                    pitch=pitch,
                    rake=rake,
                    skew_angles=skew_angles)