From 0986c9ce2d6445f1ff2cd0e535fa8e3631847f6e Mon Sep 17 00:00:00 2001 From: Even Solbraa <41290109+EvenSol@users.noreply.github.com> Date: Tue, 31 Dec 2024 12:22:18 +0100 Subject: [PATCH] remove error messages (#1223) * remove error messages * update --- .../neqsim/thermodynamicoperations/flashops/RachfordRice.java | 2 +- .../neqsim/process/processmodel/CompressorModuleTest.java | 4 ++-- .../thermodynamicoperations/flashops/RachfordRiceTest.java | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/neqsim/thermodynamicoperations/flashops/RachfordRice.java b/src/main/java/neqsim/thermodynamicoperations/flashops/RachfordRice.java index 35ea555fc..84102dd94 100644 --- a/src/main/java/neqsim/thermodynamicoperations/flashops/RachfordRice.java +++ b/src/main/java/neqsim/thermodynamicoperations/flashops/RachfordRice.java @@ -22,7 +22,7 @@ public class RachfordRice implements Serializable { static Logger logger = LogManager.getLogger(RachfordRice.class); private static final long serialVersionUID = 1000; private double[] beta = new double[2]; - private static String method = "Michelsen2001"; // alternative use Nielsen2023 or Michelsen2001 + private static String method = "Nielsen2023"; // alternative use Nielsen2023 or Michelsen2001 /** *

diff --git a/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java b/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java index 78202a237..ec6cca92b 100644 --- a/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java +++ b/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java @@ -71,14 +71,14 @@ public void testProcess() { valve1.setOutletPressure(10.0, "bara"); StreamInterface recycleScrubberStream = feedStream.clone("Recycle stream"); - recycleScrubberStream.setFlowRate(1.0, "kg/hr"); + recycleScrubberStream.setFlowRate(0.0001, "kg/hr"); ThreePhaseSeparator secondStageSeparator = new ThreePhaseSeparator("2nd stage separator", valve1.getOutletStream()); secondStageSeparator.addStream(recycleScrubberStream); StreamInterface gasRecycleStream = feedStream.clone("gas recycle stream"); - gasRecycleStream.setFlowRate(1.0, "kg/hr"); + gasRecycleStream.setFlowRate(0.0001, "kg/hr"); Mixer gasmixer = new Mixer("gas recycle mixer"); gasmixer.addStream(secondStageSeparator.getGasOutStream()); diff --git a/src/test/java/neqsim/thermodynamicoperations/flashops/RachfordRiceTest.java b/src/test/java/neqsim/thermodynamicoperations/flashops/RachfordRiceTest.java index c5dea3c07..64c893a69 100644 --- a/src/test/java/neqsim/thermodynamicoperations/flashops/RachfordRiceTest.java +++ b/src/test/java/neqsim/thermodynamicoperations/flashops/RachfordRiceTest.java @@ -21,10 +21,13 @@ void testCalcBeta() { } try { + String startMetod = RachfordRice.getMethod(); RachfordRice rachfordRice = new RachfordRice(); RachfordRice.setMethod("Nielsen2023"); Assertions.assertEquals(0.407070707, rachfordRice.calcBeta(K, z), 1e-6); RachfordRice.setMethod("Michelsen2001"); + Assertions.assertEquals(0.407070707, rachfordRice.calcBeta(K, z), 1e-6); + RachfordRice.setMethod(startMetod); } catch (Exception e) { logger.error(e.getMessage());; }