Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aeolis/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
'germinate', # vegetation germination
'lateral', # vegetation lateral expansion
'vegfac', # Vegetation factor to modify shear stress by according to Raupach 1993
'fence_height', # Fence height
'R', # [m] wave runup
'eta', # [m] wave setup
'sigma_s', # [m] swash
Expand Down
5 changes: 1 addition & 4 deletions aeolis/wind.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ def interpolate(s, p, t):
s['uws'] = - s['uw'] * np.sin((-p['alfa'] + s['udir']) / 180. * np.pi) # alfa [deg] is real world grid cell orientation (clockwise)
s['uwn'] = - s['uw'] * np.cos((-p['alfa'] + s['udir']) / 180. * np.pi)


if p['ny'] == 0:
s['uwn'][:,:] = 0.


s['uw'] = np.abs(s['uw'])

# Compute wind shear velocity
Expand Down