Skip to content
Snippets Groups Projects
Commit c65304bc authored by Jenni Rinker's avatar Jenni Rinker
Browse files

adding zip-prep script

parent de5cb926
No related branches found
No related tags found
No related merge requests found
Pipeline #22705 passed
# -*- coding: utf-8 -*-
"""Prepare the zip file for the model
"""
from refutils.utils import ReferenceModel
class OC3Monopile(ReferenceModel):
def __init__(self):
model_kwargs = dict(cut_in=4, cut_out=25, dt=40, tstart=100, wsp=24,
tb_wid=130, tb_ht=130) # rotor diameter is 126 m
model_kwargs['tint'] = 0.14*(0.75*model_kwargs['wsp'] + 5.6) / model_kwargs['wsp'] # class 1B
dll_list = [('damper_5mw.dll', 'damper.dll'),
('DISCON_NREL5MW_v0.1.0.dll', 'DISCON.dll'),
('hss_convert_5mw.dll', 'hss_convert.dll'),
('nrel_5mw_interface_v0.1.0.dll', 'nrel_5mw_interface.dll')]
ReferenceModel.__init__(self,
model_path_name='oc3-monopile',
htc_basename='oc3_monopile_phase_1',
model_kwargs=model_kwargs,
dll_list=dll_list,
step=True, turb=True, hs2=False)
if __name__ == '__main__':
model = OC3Monopile()
model.prepare_model()
#model.test_with_hawc2binary_master()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment