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

Stress test #142

Merged
merged 6 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion weis/aeroelasticse/openmdao_openfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,9 @@ def run_FAST(self, inputs, discrete_inputs, fst_vt):
rotorD = float(inputs['Rtip'])*2.
PLExp = float(inputs['shearExp'])
fix_wind_seeds = modopt['DLC_driver']['fix_wind_seeds']
dlc_generator = DLCGenerator(cut_in, cut_out, rated, ws_class, wt_class, fix_wind_seeds)
fix_wave_seeds = modopt['DLC_driver']['fix_wave_seeds']
metocean = modopt['DLC_driver']['metocean_conditions']
dlc_generator = DLCGenerator(cut_in, cut_out, rated, ws_class, wt_class, fix_wind_seeds, fix_wave_seeds, metocean)
# Generate cases from user inputs
for i_DLC in range(len(DLCs)):
DLCopt = DLCs[i_DLC]
Expand All @@ -1411,6 +1413,7 @@ def run_FAST(self, inputs, discrete_inputs, fst_vt):
WaveTp = np.zeros(dlc_generator.n_cases)
WaveHd = np.zeros(dlc_generator.n_cases)
WaveGamma = np.zeros(dlc_generator.n_cases)
WaveSeed1 = np.zeros(dlc_generator.n_cases, dtype=int)
TMax = np.zeros(dlc_generator.n_cases)
TStart = np.zeros(dlc_generator.n_cases)

Expand Down Expand Up @@ -1479,6 +1482,7 @@ def run_FAST(self, inputs, discrete_inputs, fst_vt):
WaveTp[i_case] = dlc_generator.cases[i_case].wave_period
WaveHd[i_case] = dlc_generator.cases[i_case].wave_heading
WaveGamma[i_case] = dlc_generator.cases[i_case].wave_gamma
WaveSeed1[i_case] = dlc_generator.cases[i_case].wave_seed1
TMax[i_case] = dlc_generator.cases[i_case].analysis_time + dlc_generator.cases[i_case].transient_time
TStart[i_case] = dlc_generator.cases[i_case].transient_time

Expand All @@ -1504,6 +1508,7 @@ def run_FAST(self, inputs, discrete_inputs, fst_vt):
case_inputs[("HydroDyn","WaveTp")] = {'vals':WaveTp, 'group':1}
case_inputs[("HydroDyn","WaveDir")] = {'vals':WaveHd, 'group':1}
case_inputs[("HydroDyn","WavePkShp")] = {'vals':WaveGamma, 'group':1}
case_inputs[("HydroDyn","WaveSeed1")] = {'vals':WaveSeed1, 'group':1}

# Append current DLC to full list of cases
case_list, case_name = CaseGen_General(case_inputs, self.FAST_runDirectory, self.FAST_InputFile)
Expand Down
Loading