Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
toolbox
WindEnergyToolbox
Commits
833d7ea5
Commit
833d7ea5
authored
2 weeks ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
15e3ccae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!300
Update
Pipeline
#72810
passed with warnings
2 weeks ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
wetb/dlb/hawc2_iec_dlc_writer.py
+1
-1
1 addition, 1 deletion
wetb/dlb/hawc2_iec_dlc_writer.py
wetb/gtsdf/unix_time.py
+3
-3
3 additions, 3 deletions
wetb/gtsdf/unix_time.py
wetb/hawc2/htc_extensions.py
+0
-5
0 additions, 5 deletions
wetb/hawc2/htc_extensions.py
with
4 additions
and
9 deletions
wetb/dlb/hawc2_iec_dlc_writer.py
+
1
−
1
View file @
833d7ea5
...
...
@@ -13,7 +13,7 @@ TODO: set default turb_format = 0
class
HAWC2_IEC_DLC_Writer
(
HAWC2InputWriter
):
def
__init__
(
self
,
base_htc_file
,
diameter
,
time_start
=
100
,
# Minimum 5s cf. IEC61400-1(2005), section 7.5
turbulence_defaults
=
(
29.4
,
3.
7
,
8192
,
32
)
# L, gamma, n_x, n_yz):
turbulence_defaults
=
(
33.6
,
3.
9
,
8192
,
64
)
# L, gamma, n_x, n_yz):
):
HAWC2InputWriter
.
__init__
(
self
,
base_htc_file
,
diameter
=
diameter
,
time_start
=
time_start
,
...
...
This diff is collapsed.
Click to expand it.
wetb/gtsdf/unix_time.py
+
3
−
3
View file @
833d7ea5
from
datetime
import
datetime
,
date
from
datetime
import
datetime
,
date
,
UTC
import
numpy
as
np
timestamp0
=
datetime
.
utcfromtimestamp
(
0
)
timestamp0
=
datetime
(
1970
,
1
,
1
)
def
to_unix
(
dateTime
):
...
...
@@ -11,12 +11,12 @@ def to_unix(dateTime):
return
[(
dt
-
timestamp0
).
total_seconds
()
for
dt
in
dateTime
]
raise
# def from_unix_old(sec):
# if np.isnan(sec):
# return datetime.utcfromtimestamp(0)
# return datetime.utcfromtimestamp(sec)
day_dict
=
{}
...
...
This diff is collapsed.
Click to expand it.
wetb/hawc2/htc_extensions.py
+
0
−
5
View file @
833d7ea5
...
...
@@ -20,8 +20,6 @@ class HTCDefaults(object):
log_deltat 1;
end simulation;
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
begin wind ;
density 1.225 ;
wsp 10 ;
...
...
@@ -34,9 +32,6 @@ class HTCDefaults(object):
tower_shadow_method 0 ; 0=none, 1=potential flow, 2=jet
end wind;
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
;
begin output;
filename ./tmp;
data_format gtsdf;
...
...
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