tsimulation.c: rename and stricten tolerance criteria in velocity-constrained s… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 68ca24522bdcf47cb4bac6facfd0ac1f44657cbb | |
parent d1b0476d13d3e0e71407654fd109e1f1a60063c3 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 25 Nov 2020 12:51:08 +0100 | |
simulation.c: rename and stricten tolerance criteria in velocity-constrained sh… | |
Diffstat: | |
M simulation.c | 6 ++++-- | |
1 file changed, 4 insertions(+), 2 deletions(-) | |
--- | |
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; |