Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oc3-monopile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HAWC Reference Models
oc3-monopile
Commits
c65304bc
Commit
c65304bc
authored
3 years ago
by
Jenni Rinker
Browse files
Options
Downloads
Patches
Plain Diff
adding zip-prep script
parent
de5cb926
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#22705
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/prepare_model.py
+27
-0
27 additions, 0 deletions
utils/prepare_model.py
with
27 additions
and
0 deletions
utils/prepare_model.py
0 → 100644
+
27
−
0
View file @
c65304bc
# -*- 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()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment