def create_sample_blade_NACA_10(): sections = np.asarray( [pr.NacaProfile(digits='0012', n_points=10) for i in range(2)]) radii = np.array([0.4, 0.5]) chord_lengths = np.array([0.55, 0.7]) pitch = np.array([3.0, 3.2]) rake = np.array([5e-3, 0.015]) skew_angles = np.array([-4., -7]) return bl.Blade(sections=sections, radii=radii, chord_lengths=chord_lengths, pitch=pitch, rake=rake, skew_angles=skew_angles)
def create_sample_blade_NACA(): sections = np.asarray([pr.NacaProfile(digits='0012') 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)
def create_sample_blade_NACApptc(): sections = np.asarray([NacaProfile('5407') for i in range(13)]) radii=np.array([0.034375, 0.0375, 0.04375, 0.05, 0.0625, 0.075, 0.0875, 0.1, 0.10625, 0.1125, 0.11875, 0.121875, 0.125]) chord_lengths = np.array([0.039, 0.045, 0.05625, 0.06542, 0.08125, 0.09417, 0.10417, 0.10708, 0.10654, 0.10417, 0.09417, 0.07867, 0.025]) pitch = np.array([0.35, 0.35, 0.36375, 0.37625, 0.3945, 0.405, 0.40875, 0.4035, 0.3955, 0.38275, 0.3645, 0.35275, 0.33875]) rake=np.array([0.0 ,0.0, 0.0005, 0.00125, 0.00335, 0.005875, 0.0075, 0.007375, 0.006625, 0.00545, 0.004033, 0.0033, 0.0025]) skew_angles=np.array([6.6262795, 3.6262795, -1.188323, -4.4654502, -7.440779, -7.3840979, -5.0367916, -1.3257914, 1.0856404, 4.1448947, 7.697235, 9.5368917, 11.397609]) return bl.Blade( sections=sections, radii=radii, chord_lengths=chord_lengths, pitch=pitch, rake=rake, skew_angles=skew_angles)
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)