Skip to content

Commit 0fb0b04

Browse files
committed
Remove valley width from analytical solution
1 parent 039e498 commit 0fb0b04

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

grlp/grlp.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def build_matrices(self):
411411
self.RHS = np.hstack((self.bcl+self.z[0], self.z[1:-1],
412412
self.bcr+self.z[-1])) + self.ssd
413413

414-
def analytical_threshold_width(self, P_xB=None, P_xQ=None, x0=None, x1=None,
414+
def analytical_threshold_width(self, P_xQ=None, x0=None, x1=None,
415415
z0=None, z1=None):
416416
"""
417417
Analytical: no uplift
@@ -426,13 +426,9 @@ def analytical_threshold_width(self, P_xB=None, P_xQ=None, x0=None, x1=None,
426426
z1 = self.z[-1]
427427
if P_xQ is None:
428428
P_xQ = self.P_xQ
429-
if P_xB is None:
430-
P_xB = self.P_xB
431-
#print P_xB
432429
#print P_xQ
433-
#e = 1 + 6*(P_xB - P_xQ)/7.
434430
#self.zanalytical2 = (z1 - z0) * (self.x**e - x0**e)/(x1**e - x0**e) + z0
435-
self.P_a = 1 + 6*(P_xB - P_xQ)/7. # beta
431+
self.P_a = 1 - 6*P_xQ/7. # beta
436432
self.k_a = 1/(x1**self.P_a - x0**self.P_a) * (z1 - z0) # alpha
437433
self.c_a = z0 - x0**self.P_a/(x1**self.P_a - x0**self.P_a) * (z1 - z0) # gamma
438434
self.zanalytical = self.k_a * self.x**self.P_a + self.c_a

run_grlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# Numerical and analytical solutions.
7575
# Numerical: (number of time steps, length of time step [s])
7676
lp.evolve_threshold_width_river(5, 1E12)
77-
lp.analytical_threshold_width(P_xB=P_xB)
77+
lp.analytical_threshold_width()
7878
lp.compute_Q_s()
7979

8080
# Plot

0 commit comments

Comments
 (0)