Skip to content

Commit

Permalink
Allow user defined FAST_InputFile and directory in run_FAST
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Feb 20, 2024
1 parent 41b2f76 commit fb99fd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rosco/toolbox/ofTools/case_gen/run_FAST.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __init__(self):
self.controller_params = {}
self.fst_vt = {}
self.openfast_exe = 'openfast'
self.FAST_InputFile = None
self.FAST_directory = None

# Directories
self.tune_case_dir = ''
Expand Down Expand Up @@ -110,6 +112,13 @@ def run_FAST(self):
controller = ROSCO_controller.Controller(controller_params)

# Load turbine data from OpenFAST and rotor performance text file
# Overwrite input file if provided by user
if self.FAST_InputFile:
path_params['FAST_InputFile'] = self.FAST_InputFile

if self.FAST_directory:
path_params['FAST_directory'] = self.FAST_directory

tune_yaml_dir = os.path.split(self.tuning_yaml)[0]
cp_filename = os.path.join(
tune_yaml_dir,
Expand Down

0 comments on commit fb99fd9

Please sign in to comment.