From 6b271dd2414099f4c7a7de6c9cf009c3d4869c27 Mon Sep 17 00:00:00 2001 From: Even Solbraa <41290109+EvenSol@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:54:30 +0000 Subject: [PATCH] update Rachford rice method --- .../java/neqsim/thermodynamicoperations/flashops/TPflash.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/neqsim/thermodynamicoperations/flashops/TPflash.java b/src/main/java/neqsim/thermodynamicoperations/flashops/TPflash.java index 4c018bd55c..88620112a2 100644 --- a/src/main/java/neqsim/thermodynamicoperations/flashops/TPflash.java +++ b/src/main/java/neqsim/thermodynamicoperations/flashops/TPflash.java @@ -93,8 +93,8 @@ public void sucsSubs() { RachfordRice rachfordRice = new RachfordRice(); try { - system.setBeta(rachfordRice.calcBetaS(system)); - // system.setBeta(rachfordRice.calcBeta(system.getKvector(), system.getzvector())); + // system.setBeta(rachfordRice.calcBetaS(system)); + system.setBeta(rachfordRice.calcBeta(system.getKvector(), system.getzvector())); } catch (IsNaNException ex) { logger.warn("Not able to calculate beta. Value is NaN"); system.setBeta(oldBeta);