Commit d491e1a9 authored by Jenni Rinker's avatar Jenni Rinker

Merge branch 'delete_extra_utils' into 'master'

Resolve "Delete extra files in utils"

Closes #12

See merge request !8
parents dc011841 3a887520
Pipeline #15933 passed with stage
in 22 seconds
# -*- coding: utf-8 -*-
"""Create HAWCStab2 and step-wind files from base (turbulent) htc
"""
from refutils import turb_to_hs2, turb_to_step
mod_dir = '../dtu-10mw-rwt/'
basename = 'DTU_10MW_RWT'
htc_base = mod_dir + f'htc/{basename}.htc'
kwargs = {} # default kwargs in functions are for DTU 10 MW, no need to update
# HAWCSTAB2
hs2_path = mod_dir + f'{basename}_hs2.htc'
turb_to_hs2(htc_base, hs2_path, **kwargs)
# STEP WIND
step_path = mod_dir + f'htc/{basename}_step.htc'
turb_to_step(htc_base, step_path, **kwargs)
# -*- coding: utf-8 -*-
"""
Copy the DLLs from loca folder
Make sure folder is at right commit:
>> git checkout 10fbd53c635d93bd84ccf8e33b3671191d0094a8
"""
import shutil
print('\n***Have you verified repo is at correct commit?***\n')
repo = 'C:/Users/rink/git/control-win32'
dlls = ['dtu_we_controller.dll', 'generator_servo.dll', 'mech_brake.dll',
'servo_with_limits.dll', 'towerclearance_mblade.dll']
for dll in dlls:
shutil.copy(repo + '/' + dll,
'../dtu-10mw-rwt/control/' + dll)
# -*- coding: utf-8 -*-
"""Create the report for the reference model
"""
from refutils.report import generate_results
h2s_ver = ['2.16a_x64'] # '2.15', '2.15_x64', '2.16a_x64'
hawc2_ver = ['12.8']
# run the htc files
generate_results('../dtu-10mw-rwt', hawc2_ver=hawc2_ver, h2s_ver=h2s_ver)
# -*- coding: utf-8 -*-
"""Make the plots to be placed in the report
"""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment