Skip to content

Commit

Permalink
Merge pull request #486 from WISDEM/develop
Browse files Browse the repository at this point in the history
Release v3.13
  • Loading branch information
gbarter committed Jan 25, 2024
2 parents 525da76 + 49c2728 commit 26da3dc
Show file tree
Hide file tree
Showing 70 changed files with 1,706 additions and 6,431 deletions.
227 changes: 0 additions & 227 deletions docs/examples/airfoilprep/tutorial.rst

This file was deleted.

2 changes: 1 addition & 1 deletion examples/02_reference_turbines/IEA-15-240-RWT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ assembly:
rotor_orientation: Upwind
number_of_blades: 3
hub_height: 150.
rotor_diameter: 242.23775645
rotor_diameter: 241.94
rated_power: 15.e+6
lifetime: 25.0
components:
Expand Down
2 changes: 1 addition & 1 deletion examples/03_blade/BAR_USC.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: BAR_USC
description: BAR-USC - Upwind segmented design - Spar caps with industry baseline CFRP - last updated on April 23rd 2021 by Pietro Bortolotti
assembly: {turbine_class: III, turbulence_class: A, drivetrain: Constant_eff, rotor_orientation: Upwind, number_of_blades: 3, rotor_diameter: 206.0, hub_height: 140.0, rated_power: 5000000.0, lifetime: 25.0}
assembly: {turbine_class: III, turbulence_class: A, drivetrain: Constant_eff, rotor_orientation: Upwind, number_of_blades: 3, rotor_diameter: 205.9925356168168, hub_height: 140.0, rated_power: 5000000.0, lifetime: 25.0}
components:
blade:
outer_shape_bem:
Expand Down
2 changes: 1 addition & 1 deletion examples/03_blade/analysis_options_aero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ driver:
tol: 1.e-3 # Optimality tolerance
# max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
# max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 2 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/03_blade/analysis_options_aerostruct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ driver:
tol: 1.e-5 # Optimality tolerance
# max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
# max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 2 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/03_blade/analysis_options_struct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ driver:
tol: 1.e-3 # Optimality tolerance
# max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
# max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 2 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/05_tower_monopile/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ driver:
tol: 1.e-6 # Optimality tolerance
# max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
# max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-6 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/05_tower_monopile/analysis_options_monopile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ driver:
tol: 1.e-3 # Optimality tolerance
max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/09_floating/IEA-15-240-RWT_VolturnUS-S.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ assembly:
rotor_orientation: Upwind
number_of_blades: 3
hub_height: 150.
rotor_diameter: 242.23775645
rotor_diameter: 241.94
rated_power: 15.e+6
lifetime: 25.0
components:
Expand Down
2 changes: 1 addition & 1 deletion examples/09_floating/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ driver:
tol: 1.e-2 # Optimality tolerance
max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: central # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/09_floating/analysis_options_mooropt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ driver:
tol: 1.e-6 # Optimality tolerance
max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-6 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/09_floating/analysis_options_semiopt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ driver:
tol: 1.e-2 # Optimality tolerance
max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-3 # Step size for finite differencing
form: central # Finite differencing mode, either forward or central
Expand Down
2 changes: 1 addition & 1 deletion examples/09_floating/analysis_options_sparopt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ driver:
tol: 1.e-6 # Optimality tolerance
max_major_iter: 10 # Maximum number of major design iterations (SNOPT)
max_minor_iter: 100 # Maximum number of minor design iterations (SNOPT)
max_iter: 100 # Maximum number of iterations (SLSQP)
max_iter: 1 # Maximum number of iterations (SLSQP)
solver: SLSQP # Optimization solver. Other options are 'SLSQP' - 'CONMIN'
step_size: 1.e-6 # Step size for finite differencing
form: forward # Finite differencing mode, either forward or central
Expand Down
31 changes: 18 additions & 13 deletions examples/10_ccblade/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,24 @@


# 2 ----------

afinit = CCAirfoil.initFromAerodynFile # just for shorthand

# load all airfoils
airfoil_types = [0] * 8
airfoil_types[0] = afinit("../_airfoil_files/Cylinder1.dat")
airfoil_types[1] = afinit("../_airfoil_files/Cylinder2.dat")
airfoil_types[2] = afinit("../_airfoil_files/DU40_A17.dat")
airfoil_types[3] = afinit("../_airfoil_files/DU35_A17.dat")
airfoil_types[4] = afinit("../_airfoil_files/DU30_A17.dat")
airfoil_types[5] = afinit("../_airfoil_files/DU25_A17.dat")
airfoil_types[6] = afinit("../_airfoil_files/DU21_A17.dat")
airfoil_types[7] = afinit("../_airfoil_files/NACA64_A17.dat")
import os
from wisdem.inputs.validation import load_geometry_yaml
baseyaml = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "02_reference_turbines", "nrel5mw.yaml")
data = load_geometry_yaml(baseyaml)
af = data['airfoils']
af_names = ["Cylinder", "Cylinder", "DU40_A17", "DU35_A17", "DU30_A17", "DU25_A17", "DU21_A17", "NACA64_A17"]
airfoil_types = [0] * len(af_names)
for i in range(len(af_names)):
for j in range(len(af)):
if af[j]["name"] == af_names[i]:
polars = af[j]['polars'][0]
airfoil_types[i] = CCAirfoil(
np.rad2deg(polars["c_l"]["grid"]),
[polars["re"]],
polars["c_l"]["values"],
polars["c_d"]["values"],
polars["c_m"]["values"],
)

# place at appropriate radial stations
af_idx = [0, 0, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7]
Expand Down

0 comments on commit 26da3dc

Please sign in to comment.