yaml_info module
- class yaml_info.YamlInfo(eta_nominal, xy_landmarks, chord_grid, chord_values, twist_grid, twist_values, pitch_axis_grid, pitch_axis_values, shift_grid=None, shift_values=None)
Bases:
object- add_eta_nominal(eta)
Adding additional nominal cross section between same shapes
- Parameters:
eta – list of additional locations
- Returns:
- calc_angle_interpolator(shift_grid, shift_values)
Create Pchip interpolator of angle of out-of-plane (elastic) rotation in yz plane (in local coord), because airfoil shapes have to be rotated out of xy plane to be normal to y component (in local coord) of ref axis (elastic axis).
- Parameters:
shift_grid – point location along the blade span
shift_values – shift values at shift_grid points
- Returns:
angle interpolator
- static calc_shift(airfoils_dict, hub_d)
Shift of the shape after twist rotation (can happen in x and y direction). In yaml file defined in global coordinates. z axis is location along the blade span.
- Parameters:
airfoils_dict – dict from yaml file
hub_d – distance from hub to shift whole blade in z direction
- Returns:
coordinates along the blade and shift values
- get_physical_xy(xy_nominal, eta)
- static get_xy_coordinates(airfoils_list, nominal_labels)
- classmethod init_from_yaml(yaml_filename, n_landmarks=401, landmark_method='planar', add_gap=0)
- local_transform(xy_nominal, eta)
- make_M_yaml_interpolator()
- make_straight_blade()
- static read_yamlfile(filename)
- shift_to_pitch_axis(etas)