From 1daa2a3a889b99a139c02e84e37433e8e1098864 Mon Sep 17 00:00:00 2001 From: GlennStrypsteen Date: Wed, 8 Feb 2023 12:44:43 +0100 Subject: [PATCH 1/2] Update wind.py Removed two lines related to size of y input file --- aeolis/wind.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aeolis/wind.py b/aeolis/wind.py index cfdbdc4f..c4f51d9c 100644 --- a/aeolis/wind.py +++ b/aeolis/wind.py @@ -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 From 04a9cf2234d9b076a72e2479d6ef5d8fbc1d9766 Mon Sep 17 00:00:00 2001 From: GlennStrypsteen Date: Fri, 3 Mar 2023 13:44:34 +0100 Subject: [PATCH 2/2] Update constants.py Added the fence_height parameter in the constants.py file --- aeolis/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aeolis/constants.py b/aeolis/constants.py index 3502edb2..e7a4a601 100644 --- a/aeolis/constants.py +++ b/aeolis/constants.py @@ -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