From 098761f7f303373ebbfc22ac44fdb6ef68e5033f Mon Sep 17 00:00:00 2001 From: Sviatoslav Eroshkin <109044598+Sviatose@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:12:46 +0200 Subject: [PATCH] fix: bug with Oil Test increase (#1032) --- .../neqsim/thermodynamicOperations/flashOps/RachfordRice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/neqsim/thermodynamicOperations/flashOps/RachfordRice.java b/src/main/java/neqsim/thermodynamicOperations/flashOps/RachfordRice.java index 75fca6f7f4..208a794a66 100644 --- a/src/main/java/neqsim/thermodynamicOperations/flashOps/RachfordRice.java +++ b/src/main/java/neqsim/thermodynamicOperations/flashOps/RachfordRice.java @@ -135,7 +135,7 @@ public double calcBeta(double[] K, double[] z) throws neqsim.util.exception.IsNa nybeta = 1.0 - betal; } step = gbeta / deriv; - } while (Math.abs(step) >= 1.0e-10 && iterations < maxIterations); + } while (Math.abs(step) >= 1.5e-10 && iterations < maxIterations); if (nybeta <= tolerance) { nybeta = tolerance; } else if (nybeta >= 1.0 - tolerance) {