Skip to content

Commit

Permalink
Clean up testing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Mar 10, 2021
1 parent 1a5e9ae commit b813a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion ROSCO_testing/ROSCO_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ def ROSCO_DISCON_Comp(self, DISCON_filenames, testtype='light', more_case_inputs
self.windDir = wind_dir_init

def print_results(self,outfiles):
print(outfiles)

op = output_processing.output_processing()
FAST_Output = op.load_fast_out(outfiles, tmin=0)
Expand Down
6 changes: 2 additions & 4 deletions ROSCO_testing/run_Testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run_testing(turbine2test, testtype, rosco_binaries=[], discon_files=[], **kw
# Setup ROSCO testing parameters
rt_kwargs = {}
rt_kwargs['runDir'] = os.path.join(this_dir,'results/IEA-15MW') # directory for FAST simulations
rt_kwargs['namebase'] = 'heavy_test' # Base name for FAST files
rt_kwargs['namebase'] = 'lite_test' # Base name for FAST files
rt_kwargs['FAST_exe'] = 'openfast' # OpenFAST executable path
rt_kwargs['Turbsim_exe']= 'turbsim' # Turbsim executable path
rt_kwargs['FAST_ver'] = 'OpenFAST' # FAST version
Expand All @@ -98,13 +98,11 @@ def run_testing(turbine2test, testtype, rosco_binaries=[], discon_files=[], **kw

# ---- Define test type ----
turbine2test = 'IEA-15MW' # IEA-15MW or NREL-5MW
testtype = 'heavy' # lite, heavy, binary-comp, discon-comp
testtype = 'lite' # lite, heavy, binary-comp, discon-comp

# Only fill one of these if comparing controllers
rosco_binaries = [glob.glob(os.path.join(this_dir,'../ROSCO/build/libdiscon.*'))[0]] # Differently named libdiscons to compare
discon_files = [] # Differently named DISCON.IN files to compare
print(rosco_binaries)
print(this_dir)

# Run testing
run_testing(turbine2test, testtype, rosco_binaries=rosco_binaries, discon_files=discon_files, **rt_kwargs)

0 comments on commit b813a22

Please sign in to comment.