Skip to content

Commit 0596eef

Browse files
Update constants.py (#99)
* Update wind.py Removed two lines related to size of y input file * Update constants.py Added the fence_height parameter in the constants.py file
1 parent 90fe129 commit 0596eef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

aeolis/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
'germinate', # vegetation germination
110110
'lateral', # vegetation lateral expansion
111111
'vegfac', # Vegetation factor to modify shear stress by according to Raupach 1993
112+
'fence_height', # Fence height
112113
'R', # [m] wave runup
113114
'eta', # [m] wave setup
114115
'sigma_s', # [m] swash

aeolis/wind.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ def interpolate(s, p, t):
121121
s['uws'] = - s['uw'] * np.sin((-p['alfa'] + s['udir']) / 180. * np.pi) # alfa [deg] is real world grid cell orientation (clockwise)
122122
s['uwn'] = - s['uw'] * np.cos((-p['alfa'] + s['udir']) / 180. * np.pi)
123123

124-
125-
if p['ny'] == 0:
126-
s['uwn'][:,:] = 0.
127-
124+
128125
s['uw'] = np.abs(s['uw'])
129126

130127
# Compute wind shear velocity

0 commit comments

Comments
 (0)