File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ def __init__(self):
18
18
self .A = None
19
19
self .Q = None
20
20
self .B = None
21
+ self .D = None # Grain size; needed only to resolve width and depth
22
+ self .b = None # Width and depth need not be resoloved to compute
23
+ self .h = None # long-profile evolution
21
24
self .S0 = None # S0 for Q_s_0 where there is a defined boundary input
22
25
self .dx_ext = None
23
26
self .dx_2cell = None
@@ -523,14 +526,14 @@ def compute_channel_width(self):
523
526
* ((self .rho_s - self .rho )/ self .rho )** (5 / 3. )
524
527
* (1 + self .epsilon )** (5 / 3. )
525
528
* (self .tau_star_c ** (5 / 3. )) ) \
526
- * self .Q * self .S ** (7 / 6. ) * self .D ** 1.5
529
+ * self .Q * self .S ** (7 / 6. ) / self .D ** 1.5
527
530
else :
528
531
raise ValueError ('Set grain size to compute channel width.' )
529
532
530
533
def compute_flow_depth (self ):
531
534
if self .D is not None :
532
- h = (self .rho_s - self .rho )/ self .rho * (1 + self .epsilon ) \
533
- * self .tau_star_c * self .D / self .S
535
+ self . h = (self .rho_s - self .rho )/ self .rho * (1 + self .epsilon ) \
536
+ * self .tau_star_c * self .D / self .S
534
537
else :
535
538
raise ValueError ('Set grain size to compute channel depth.' )
536
539
You can’t perform that action at this time.
0 commit comments