Skip to content

Commit

Permalink
Bug fix: multiple turbines can be tested now
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jul 9, 2020
1 parent 6b9f660 commit 99eac2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ROSCO_testing/test_ROSCO.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def ROSCO_Test(fst_vt, runDir, namebase, TMax, turbine_class, turbulence_class,

### Parameter Set up
# Run Directory (for all turbines)
baseRunDir = '/Users/dzalkind/Tools/SaveData/ROSCO/PitchSat'
baseRunDir = '/Users/dzalkind/Tools/SaveData/ROSCO/WSE_Params'

# Compare results to this Directory:
compRunDir = '/Users/dzalkind/Tools/SaveData/ROSCO/Baseline2'
Expand All @@ -114,7 +114,7 @@ def ROSCO_Test(fst_vt, runDir, namebase, TMax, turbine_class, turbulence_class,
reCrunch = False # do you want to re-run pCrunch?

# Turbine Setup
testTurbines = ['NREL-5MW'] # current options are: IEA-15MW
testTurbines = ['IEA-15MW'] # current options are: IEA-15MW, NREL-5MW

# Loop through test turbines
for turbine in testTurbines:
Expand All @@ -140,7 +140,7 @@ def ROSCO_Test(fst_vt, runDir, namebase, TMax, turbine_class, turbulence_class,
fastRead.execute()


runDir = os.path.join(baseRunDir,testTurbines[0])
runDir = os.path.join(baseRunDir,turbine)
namebase = 'ROTest'
TMax = 700
turbine_class = 'I'
Expand All @@ -155,7 +155,7 @@ def ROSCO_Test(fst_vt, runDir, namebase, TMax, turbine_class, turbulence_class,
# Set up FAST Sims, move setup up
fastBatch = runFAST_pywrapper_batch(FAST_ver='OpenFAST', dev_branch=True)
fastBatch.FAST_exe = Openfast_exe # Path to executable
fastBatch.FAST_runDirectory = os.path.join(baseRunDir,testTurbines[0])
fastBatch.FAST_runDirectory = os.path.join(baseRunDir,turbine)
fastBatch.FAST_InputFile = fastRead.FAST_InputFile # FAST input file (ext=.fst)
fastBatch.FAST_directory = fastRead.FAST_directory # Path to fst directory files
fastBatch.debug_level = 2
Expand Down Expand Up @@ -206,7 +206,7 @@ def ROSCO_Test(fst_vt, runDir, namebase, TMax, turbine_class, turbulence_class,

# If no comparison exists, just print own stats
try:
loadRanksComp = Processing.load_yaml(os.path.join(compRunDir,testTurbines[0],'stats','dataset1_LoadRanking.yaml'))
loadRanksComp = Processing.load_yaml(os.path.join(compRunDir,turbine,'stats','dataset1_LoadRanking.yaml'))

print('\t\t{}'.format(turbine))
print('----------------------------------------')
Expand Down

0 comments on commit 99eac2b

Please sign in to comment.