Skip to content

Commit

Permalink
Added function to add turbulence to wind field
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeri Frederik committed Jan 16, 2025
2 parents 9c6e478 + 7d095ca commit 504bf98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions weis/aeroelasticse/IEC_CoeherentGusts.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def write_wnd(self, fname, data, hd):
fid.write(' '+''.join([('%.6f' % val).center(12) for val in row]) + '\n')

fid.close()
<<<<<<< HEAD

def add_turbulence(filename, u, v = None, w = None, time = None, ref_height = None, new_filename = None):
"""
Expand Down Expand Up @@ -365,3 +366,5 @@ def add_turbulence(filename, u, v = None, w = None, time = None, ref_height = No
ts_new.write(new_filename)
else:
return ts_new
=======
>>>>>>> 7d095caec5db66217229c1996dfe2498965a15ed
4 changes: 2 additions & 2 deletions weis/aeroelasticse/openmdao_openfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def compute(self, inputs, outputs, discrete_inputs, discrete_outputs):
# TODO: pull chan_time out of here

# Post process regardless of level
self.post_process(summary_stats, extreme_table, DELs, Damage, case_list, dlc_generator, chan_time, inputs, discrete_inputs, outputs, discrete_outputs)
self.post_process(summary_stats, extreme_table, DELs, Damage, case_list, case_name, dlc_generator, chan_time, inputs, discrete_inputs, outputs, discrete_outputs)

# Save AEP value to linear pickle file
if modopt['Level2']['flag']:
Expand Down Expand Up @@ -2200,7 +2200,7 @@ def run_FAST(self, inputs, discrete_inputs, fst_vt):

return summary_stats, extreme_table, DELs, Damage, case_list, case_name, chan_time, dlc_generator

def post_process(self, summary_stats, extreme_table, DELs, damage, case_list, dlc_generator, chan_time, inputs, discrete_inputs, outputs, discrete_outputs):
def post_process(self, summary_stats, extreme_table, DELs, damage, case_list, case_name, dlc_generator, chan_time, inputs, discrete_inputs, outputs, discrete_outputs):
modopt = self.options['modeling_options']

# Analysis
Expand Down

0 comments on commit 504bf98

Please sign in to comment.