Blade#
- class pynumad.objects.blade.Blade(filename: str | None = None)#
Bases:
object
Blade class
- Parameters:
filename (str, optional) – Directory and filename of blade input file to load into the Blade object.
- name#
Name of the blade
- Type:
str
- definition#
Object containing the definition of the blade.
- Type:
- ispan#
Array defining the interpolated stations from 0 to 1
- Type:
ndarray
- bill_of_materials#
- Type:
- stackdb#
- Type:
StackDatabase
- materialdb#
- Type:
- settings#
- Type:
BladeSettings
Example
blade = Blade(“path/to/blade.yaml”)
- read_yaml(filename: str)#
Populate blade attributes with yaml file data
- Parameters:
filename (str) – name of yaml file to be read
- Returns:
self
- read_excel(filename: str)#
Populate blade attributes with excel file data
- Parameters:
filename (str) – name of excel file to be read
- Returns:
self
- update_blade()#
Generates geometry, keypoints, bill of materials, stack database, and material database based on the blade definition.
- expand_blade_geometry_te(min_edge_lengths)#
TODO: docstring
- add_interpolated_station(span_location: float)#
Adds an interpolated station to blade geometry
- Parameters:
span_location (float) – location along span between 0 and 1.
- Returns:
int – integer index where the new span was inserted