Skip to content

Commit

Permalink
Update constants.py (#99)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
GlennStrypsteen authored Mar 3, 2023
1 parent 90fe129 commit 0596eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit 0596eef

Please sign in to comment.