Skip to content

Commit 9b5af76

Browse files
Maxmoist user-defined value (#217)
* max_moist implementation Convert hard coded moisture threshold at which no transport is forced by increasing uth to inf. Max_moist is now used to have a user-defined value. * Update constants.py remove NEWCH
1 parent fec72a6 commit 9b5af76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

aeolis/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@
291291
'Cl_gw' : 0.7, # [m] Groundwater overheight due to runup
292292
'in_gw' : 0, # [m] Initial groundwater level
293293
'GW_stat' : 1, # [m] Landward static groundwater boundary (if static boundary is defined)
294+
'max_moist' : 10., # NEWCH # [%] Moisture content (volumetric in percent) above which the threshold shear velocity is set to infinity (no transport, default value Delgado-Fernandez, 2010)
295+
'max_moist' : 10., # [%] Moisture content (volumetric in percent) above which the threshold shear velocity is set to infinity (no transport, default value Delgado-Fernandez, 2010)
294296
'theta_dyn' : 33., # [degrees] Initial Dynamic angle of repose, critical dynamic slope for avalanching
295297
'theta_stat' : 34., # [degrees] Initial Static angle of repose, critical static slope for avalanching
296298
'avg_time' : 86400., # [s] Indication of the time period over which the bed level change is averaged for vegetation growth

aeolis/threshold.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,11 @@ def compute_moisture(s, p):
234234
else:
235235
logger.log_and_raise('Unknown moisture formulation [%s]' % p['method_moist'], exc=ValueError)
236236

237+
th_mg = (p['max_moist']/100 * p['rhow'] / (p['rhog'] * (1. - p['porosity'])))
237238
# should be .04 according to Pye and Tsoar
238-
# should be .64 according to Delgado-Fernandez (10% vol.)
239-
ix = mg > 0.064
239+
# should be .064 according to Delgado-Fernandez (10% vol.)
240+
# .097 corresponds to 15%
241+
ix = mg > th_mg
240242
s['uth'][ix] = np.inf
241243

242244
return s

0 commit comments

Comments
 (0)