Skip to content

Commit

Permalink
Updating yaml reader to base reference line off of the reference axis (
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamare authored Mar 15, 2024
1 parent f879aa6 commit 0484843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pynumad/io/yaml_to_blade.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _add_stations(
R = L + hub_outer_shape_bem["diameter"] / 2
L = R - hub_outer_shape_bem["diameter"] / 2
definition.span = np.multiply(
np.transpose(blade_outer_shape_bem["chord"]["grid"]), L
np.transpose(blade_outer_shape_bem["reference_axis"]['z']['grid']), L
)
definition.ispan = definition.span

Expand Down Expand Up @@ -526,7 +526,7 @@ def _add_components(definition, blade_internal_structure, blade_structure_dict):
def update_internal_structure(blade_internal_structure, blade_outer_shape_bem):
bladeParts = ["layers", "webs"]
# Make sure each definition.ispan has layer thicknesses and widths
fullSpanGrid = np.array(blade_outer_shape_bem["chord"]["grid"])
fullSpanGrid = np.array(blade_outer_shape_bem["reference_axis"]['z']['grid'])
nStations = len(fullSpanGrid)
keysToModify = {
"offset_y_pa",
Expand Down

0 comments on commit 0484843

Please sign in to comment.