tsimulation.c: rename and stricten tolerance criteria in velocity-constrained shear - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
HTML git clone git://src.adamsgaard.dk/cngf-pf
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 68ca24522bdcf47cb4bac6facfd0ac1f44657cbb
DIR parent d1b0476d13d3e0e71407654fd109e1f1a60063c3
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 25 Nov 2020 12:51:08 +0100
simulation.c: rename and stricten tolerance criteria in velocity-constrained shear
Diffstat:
M simulation.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
DIR diff --git a/simulation.c b/simulation.c
t@@ -11,7 +11,9 @@
#define MAX_ITER_GRANULAR 100000
#define MAX_ITER_DARCY 10000
#define MAX_ITER_STRESS 20000
-#define RTOL_STRESS 1e-3
+
+/* tolerance criteria when in velocity driven or velocity limited mode */
+#define RTOL_VELOCITY 1e-5
/* Simulation settings */
t@@ -870,7 +872,7 @@ coupled_shear_solver(struct simulation *sim,
return 10;
}
} while ((!isnan(sim->v_x_fix) || !isnan(sim->v_x_limit))
- && fabs(vel_res_norm) > RTOL_STRESS);
+ && fabs(vel_res_norm) > RTOL_VELOCITY);
if (!isnan(sim->v_x_limit))
sim->mu_wall = mu_wall_orig;