Skip to content
Snippets Groups Projects
Commit 833d7ea5 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Update

parent 15e3ccae
No related branches found
No related tags found
1 merge request!300Update
Pipeline #72810 passed with warnings
......@@ -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,
......
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 = {}
......
......@@ -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;
......
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