From f968cc902c6277e0fff79513be09ec6e9a52bdc8 Mon Sep 17 00:00:00 2001 From: David <forenkram@gmx.de> Date: Mon, 29 Jun 2020 16:17:14 +0200 Subject: [PATCH] test and fix vanGenuchten implementation --- LDDsimulation/functions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LDDsimulation/functions.py b/LDDsimulation/functions.py index ab69bd7..4daf3e9 100644 --- a/LDDsimulation/functions.py +++ b/LDDsimulation/functions.py @@ -131,13 +131,12 @@ def vanGenuchten_S_sym(pc, n_index, alpha): # derivative of S-pc relationship with respect to pc. This is needed for the # construction of a analytic solution. -def vanGenuchten_S_prime(pc, n_index, alpha): +def vanGenuchten_S_prime_sym(pc, n_index, alpha): # inverse capillary pressure-saturation-relationship enumerator = -1.0*(alpha*(n_index - 1)*(alpha*pc)**(n_index - 1)) denominator = ((1 + (alpha*pc)**n_index)**((2*n_index - 1)/n_index)) return enumerator/denominator - def generate_Spc_dicts( Spc_on_subdomains: tp.Dict[int, tp.Dict[str, tp.Dict[str, float]]] )-> tp.Dict[str, tp.Dict[int, tp.Callable]]: -- GitLab