-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
This example shows how to use the Design of Experiments (DOE) driver within | ||
WEIS including OpenFAST. | ||
Specifically, the DOE driver helps sample the design space of a problem, allowing | ||
you to perform parameter sweeps or random samples of design variables. This is | ||
useful for better understanding a design space, especially prior to running optimization. | ||
The DOE driver is not an optimizer, but simply runs the cases prescribed. | ||
Check out the `driver` section within the `analysis_options.yaml` for the | ||
DOE driver settings. | ||
""" | ||
|
||
import os | ||
from weis import weis_main | ||
|
||
## File management | ||
run_dir = os.path.dirname( os.path.realpath(__file__) ) + os.sep | ||
fname_wt_input = os.path.join(run_dir, "..", "00_setup", "ref_turbines", "IEA-15-240-RWT_VolturnUS-S.yaml") | ||
fname_modeling_options = os.path.join(run_dir, "..", "15_RAFT_Studies", "modeling_options_umaine_semi.yaml") | ||
fname_analysis_options = os.path.join(run_dir, "analysis_options_raft.yaml") | ||
|
||
wt_opt, modeling_options, opt_options = weis_main(fname_wt_input, | ||
fname_modeling_options, | ||
fname_analysis_options) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
general: | ||
folder_output: outputs/RAFT_DOE | ||
fname_output: refturb_output | ||
|
||
|
||
design_variables: | ||
# control: | ||
# servo: | ||
# pitch_control: | ||
# omega: | ||
# flag: True | ||
# min: 0.1 | ||
# max: 0.5 | ||
|
||
floating: | ||
joints: | ||
flag: True | ||
z_coordinate: | ||
- names: [main_keel, col1_keel, col2_keel, col3_keel] | ||
lower_bound: -40.0 | ||
upper_bound: -15.0 | ||
r_coordinate: | ||
- names: [col1_keel, col1_freeboard, col2_keel, col2_freeboard, col3_keel, col3_freeboard] | ||
lower_bound: 38.8125 | ||
upper_bound: 64.6875 | ||
members: | ||
flag: True | ||
groups: | ||
- names: [column1,column2,column3] | ||
diameter: | ||
lower_bound: 9.375 | ||
upper_bound: 15.625 | ||
constant: True | ||
thickness: | ||
lower_bound: 0.05 | ||
upper_bound: 0.25 | ||
constant: True | ||
# - names: [Y_pontoon_lower1, Y_pontoon_lower2, Y_pontoon_lower3] | ||
# diameter: | ||
# lower_bound: 7.5 | ||
# upper_bound: 12.5 | ||
|
||
|
||
|
||
constraints: | ||
control: | ||
rotor_overspeed: | ||
flag: True | ||
min: 0.0 | ||
max: 0.25 | ||
Max_PtfmPitch: | ||
flag: True | ||
max: 5.5 | ||
Std_PtfmPitch: | ||
flag: False | ||
max: 2. | ||
Max_Offset: | ||
flag: True | ||
max: 30. | ||
floating: | ||
stress: | ||
flag: True | ||
global_buckling: | ||
flag: True | ||
shell_buckling: | ||
flag: True | ||
|
||
merit_figure: platform_mass # Merit figure of the optimization problem. The options are 'AEP' - 'LCOE' - 'Cp' - 'blade_mass' - 'blade_tip_deflection' | ||
|
||
|
||
driver: | ||
design_of_experiments: | ||
flag: True # Flag to enable design of experiments | ||
run_parallel: True # Flag to run using parallel processing | ||
generator: Uniform # Type of input generator. (Uniform) | ||
num_samples: 20 # number of samples for (Uniform only) | ||
|
||
recorder: | ||
flag: True # Flag to activate OpenMDAO recorder | ||
file_name: log_opt.sql # Name of OpenMDAO recorder | ||
includes: ['*raft*','*floating*','*platform*'] |