Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openfast optimization error #336

Open
hymdrj opened this issue Jan 9, 2025 · 1 comment
Open

Openfast optimization error #336

hymdrj opened this issue Jan 9, 2025 · 1 comment

Comments

@hymdrj
Copy link

hymdrj commented Jan 9, 2025

I am working on optimizing specifications for the 15MW Volturn model based on results obtained from hydrodynamic coefficients calculated using RAFT-PyHAMS and time-domain analysis performed with OpenFAST.

I modified the input values in the modeling options file to conduct the analysis, but an error occurred. Notably, when performing the optimization using RAFT, no such error occurred. Could you help identify the reason for this issue?
Also, I used 15MW reference model in WEIS example

The modeling options input values are as follows:
General:
verbosity: False # When set to True, the code prints to screen many infos
openfast_configuration:
OF_run_fst: IEA_w_TMD
OF_run_dir: outputs/IEA_w_TMD_33
save_iterations: True
save_timeseries: True
use_exe: True
allow_fails: True
fail_value: 9999

WISDEM:
RotorSE:
flag: True
n_pitch_perf_surfaces: 5
n_tsr_perf_surfaces: 5
spar_cap_ss: Spar_Cap_SS
spar_cap_ps: Spar_Cap_PS
te_ss: TE_reinforcement_SS
te_ps: TE_reinforcement_PS
TowerSE:
flag: True
DriveSE:
flag: True
FloatingSE:
flag: True
# BOS:
# flag: True

Level3: # Options for WEIS fidelity level 3 = nonlinear time domain
flag: True
simulation:
DT: 0.01
CompElast: 1
CompInflow: 1
CompAero: 2
CompServo: 0
CompHydro: 1
CompSub: 0
CompMooring: 3
CompIce: 0
OutFileFmt: 3
linearization:
Linearize: False
ElastoDyn:
FlapDOF1: False
FlapDOF2: False
EdgeDOF: False
TeetDOF: False
DrTrDOF: False
GenDOF: True
YawDOF: False
TwFADOF1 : True
TwFADOF2 : True
TwSSDOF1 : True
TwSSDOF2 : True
PtfmSgDOF: True
PtfmSwDOF: True
PtfmHvDOF: True
PtfmRDOF : True
PtfmPDOF : True
PtfmYDOF : True
HydroDyn:
WvLowCOff: 0.15708
WvHiCOff: 3.2
WaveSeed1: 123456789
AddBQuad1: [9.23e5, 0.0, 0.0, 0.0, -8.92e6, 0.0]
AddBQuad2: [0.0, 9.23e5, 0.0, 8.92e6, 0.0, 0.0]
AddBQuad3: [0.0, 0.0, 2.3e6, 0.0, 0.0, 0.0]
AddBQuad4: [0.0, 8.92e6, 0.0, 1.68e10, 0.0, 0.0]
AddBQuad5: [-8.92e6, 0.0, 0.0, 0.0, 1.68e10, 0.0]
AddBQuad6: [0.0, 0.0, 0.0, 0.0, 0.0, 4.8e10]
PotMod: 1
# WaveMod: 0

Level1:
flag: True
potential_model_override: 0
trim_ballast: 2
heave_tol: 1
save_designs: True

ROSCO:
flag: True
SD_Mode: 0
PS_Mode: 1
ps_percent: 0.85
F_LPFType: 2
F_NotchType: 2
Fl_Mode: 2
tuning_yaml: ../02_control_opt/IEA15MW-tuning.yaml
zeta_pc: [1]
omega_pc: [0.2]
U_pc: [12]
zeta_vs: 0.85 # Torque controller desired damping ratio [-]
omega_vs: 0.12
twr_freq: 1.6 #3.2
ptfm_freq: 0.01 #0.2
Kp_float: -10

DLC_driver:
metocean_conditions:
wind_speed: [4., 6., 8., 10., 12., 14., 16., 18., 20., 22., 24.]
wave_height_NSS: [0.83, 0.88, 0.94, 1.03, 1.16, 1.34, 1.57, 1.86, 2.22, 2.62, 3.07]
wave_period_NSS: [6.9, 6.96, 7.02, 7.12, 7.25, 7.43, 7.66, 7.94, 8.27, 8.63, 9.01]
wave_height_SSS: [6.3, 8, 8, 8.1, 8.5, 8.5, 9.8, 9.8, 9.8, 9.8, 9.9]
wave_period_SSS: [11.5, 12.7, 12.7, 12.8, 13.1, 13.1, 14.1, 14.1, 14.1, 14.1, 14.1]
wave_height1: 6.98
wave_period1: 11.7
wave_height50: 10.68
wave_period50: 14.2
DLCs:
- DLC: "1.1"
n_seeds: 1
# - DLC: "1.3"
# n_seeds: 6
- DLC: "1.4"
- DLC: "1.5"
- DLC: "1.6"
n_seeds: 1
- DLC: "6.1"
n_seeds: 1
# - DLC: "6.3"
# n_seeds: 6

Also, the errors are as follows:
Collected errors for problem 'weis_driver_openfast_opt':
: Attempted to connect from 'blade.opt_var.s_opt_spar_cap_ss' to 'rlds_post.constr.s_opt_spar_cap_ss', but 'blade.opt_var.s_opt_spar_cap_ss' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['blade.opt_var.s_opt_layer_9', 'blade.opt_var.s_opt_layer_8', 'blade.opt_var.s_opt_layer_7'].
: Attempted to connect from 'blade.opt_var.s_opt_spar_cap_ps' to 'rlds_post.constr.s_opt_spar_cap_ps', but 'blade.opt_var.s_opt_spar_cap_ps' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['blade.opt_var.s_opt_layer_9', 'blade.opt_var.s_opt_layer_8', 'blade.opt_var.s_opt_layer_7'].
: Attempted to connect from 'nacelle.distance_hub2mb' to 'drivese_post.L_h1', but 'nacelle.distance_hub2mb' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['nacelle.distance_hub_mb', 'nacelle.distance_tt_hub', 'nacelle.distance_mb_mb'].
: Attempted to connect from 'nacelle.distance_mb2mb' to 'drivese_post.L_12', but 'nacelle.distance_mb2mb' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['nacelle.distance_mb_mb', 'nacelle.distance_hub_mb', 'nacelle.distance_tt_hub'].
: Output units of 'deg' for 'wisdem.wt.rotorse.re.precomp.Tw_iner' are incompatible with input units of 'm' for 'aeroelastic.beam:Tw_iner'.

@dzalkind
Copy link
Collaborator

dzalkind commented Jan 9, 2025

Hi,

Please ensure that your local environment is consistent with this file, especially wisdem. The main branch of WEIS is tested regularly with that environment, so if you are using that branch and the examples provided, it should work.

If you have made changes to the examples, it would be helpful to share only what you've changed. The input you have provided would require significant formatting for us to help you debug your issue.

Best, Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants