From 03b2e0ee47a872120add0d169821b890a63e66de Mon Sep 17 00:00:00 2001 From: Even Solbraa <41290109+EvenSol@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:08:54 +0000 Subject: [PATCH] update --- src/main/java/neqsim/thermo/phase/PhaseEos.java | 3 +-- .../java/neqsim/thermodynamicoperations/flashops/Flash.java | 5 ----- .../process/processmodel/SalesGasAndStableOilTest.java | 4 ++-- .../thermo/util/readwrite/EclipseFluidReadWriteTest.java | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/java/neqsim/thermo/phase/PhaseEos.java b/src/main/java/neqsim/thermo/phase/PhaseEos.java index cef4c60f0e..e6ca571ede 100644 --- a/src/main/java/neqsim/thermo/phase/PhaseEos.java +++ b/src/main/java/neqsim/thermo/phase/PhaseEos.java @@ -353,8 +353,7 @@ public double molarVolume(double pressure, double temperature, double A, double } if (BonV < 0) { // BonV = Math.abs(BonV); - BonV = 1.0e-10; - BonVold = 10; + BonV = BonVold / 2.0; } error = Math.abs((BonV - BonVold) / BonVold); diff --git a/src/main/java/neqsim/thermodynamicoperations/flashops/Flash.java b/src/main/java/neqsim/thermodynamicoperations/flashops/Flash.java index 25eb7c74a4..6247430251 100644 --- a/src/main/java/neqsim/thermodynamicoperations/flashops/Flash.java +++ b/src/main/java/neqsim/thermodynamicoperations/flashops/Flash.java @@ -174,11 +174,6 @@ public void stabilityAnalysis() throws neqsim.util.exception.IsNaNException, try { clonedSystem.init(1, j); } catch (Exception e) { - if (j == 0) { - clonedSystem.init(1, 1); - } else { - clonedSystem.init(1, 0); - } logger.error(e.toString()); throw e; } diff --git a/src/test/java/neqsim/process/processmodel/SalesGasAndStableOilTest.java b/src/test/java/neqsim/process/processmodel/SalesGasAndStableOilTest.java index f11c32c03a..a2a5d5655f 100644 --- a/src/test/java/neqsim/process/processmodel/SalesGasAndStableOilTest.java +++ b/src/test/java/neqsim/process/processmodel/SalesGasAndStableOilTest.java @@ -283,13 +283,13 @@ public void testProcess2() { turboexpander.setIsentropicEfficiency(0.80); turboexpander.setOutletPressure(50.0); turboexpander.run(); - turboexpander.getFluid().prettyPrint(); + // turboexpander.getFluid().prettyPrint(); Separator DPCUScrubber = new neqsim.process.equipment.separator.Separator("TEX LT scrubber", turboexpander.getOutStream()); DPCUScrubber.run(); - DPCUScrubber.getFluid().prettyPrint(); + // DPCUScrubber.getFluid().prettyPrint(); // richGasMixer.getOutStream().getFluid().prettyPrint(); diff --git a/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java b/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java index df65226bef..2db8b750a3 100644 --- a/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java +++ b/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java @@ -103,7 +103,7 @@ void testReadFluidR() throws IOException { testSystem.setPressure(530.97, "bara"); testSystem.setTemperature(105.0, "C"); testOps.TPflash(); - testSystem.prettyPrint(); + // testSystem.prettyPrint(); // Assertions.assertEquals(0.9270363530255, testSystem.getBeta(0), 1e-6); testSystem = EclipseFluidReadWrite.read(filer);