-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from dakotaramos/inverse_design
Inverse design
- Loading branch information
Showing
17 changed files
with
395 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
general: | ||
folder_output: outputs | ||
fname_output: refturb_output | ||
|
||
design_variables: | ||
floating: | ||
joints: | ||
flag: True | ||
z_coordinate: | ||
- names: [spar_keel] | ||
lower_bound: -40.0 | ||
upper_bound: -15.0 | ||
- names: [spar_freeboard] | ||
lower_bound: -40.0 | ||
upper_bound: -15.0 | ||
members: | ||
flag: True | ||
groups: | ||
- names: [spar] | ||
ballast: | ||
lower_bound: 1.0 | ||
upper_bound: 1e4 | ||
|
||
mooring: | ||
line_length: | ||
flag: True | ||
lower_bound: 100.0 | ||
upper_bound: 1000.0 | ||
|
||
merit_figure: inverse_design | ||
|
||
inverse_design: | ||
floatingse.platform_mass: | ||
ref_value: 6.e6 | ||
units: kg | ||
floatingse.mooring_mass: | ||
ref_value: 4.5e5 | ||
units: kg | ||
floatingse.system_structural_center_of_mass: | ||
ref_value: [0., -60.] | ||
indices: [1, 2] | ||
units: m | ||
|
||
driver: | ||
optimization: | ||
flag: True # Flag to enable optimization | ||
tol: 1.e-4 # Optimality tolerance | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
import sys | ||
import time | ||
|
||
from wisdem.commonse.mpi_tools import MPI | ||
from wisdem.glue_code.runWISDEM import run_wisdem | ||
|
||
## File management | ||
run_dir = os.path.dirname(os.path.realpath(__file__)) + os.sep | ||
wisdem_examples = os.path.dirname(os.path.dirname(run_dir)) | ||
fname_wt_input_oc3 = os.path.join(wisdem_examples, "09_floating", "nrel5mw-spar_oc3.yaml") | ||
fname_modeling_options = os.path.join(wisdem_examples, "09_floating", "modeling_options_noRNA.yaml") | ||
fname_analysis_options = run_dir + os.sep + "analysis_options.yaml" | ||
|
||
|
||
wt_opt, modeling_options, opt_options = run_wisdem(fname_wt_input_oc3, fname_modeling_options, fname_analysis_options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.