From 0e1f464e335a06e51df8ccfa4d353257a3903007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:15:59 +0100 Subject: [PATCH] refact: remove redundant getter/setters --- .../thermo/phase/PhasePCSAFTRahmat.java | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/src/main/java/neqsim/thermo/phase/PhasePCSAFTRahmat.java b/src/main/java/neqsim/thermo/phase/PhasePCSAFTRahmat.java index fb51d46667..bfb9af91f4 100644 --- a/src/main/java/neqsim/thermo/phase/PhasePCSAFTRahmat.java +++ b/src/main/java/neqsim/thermo/phase/PhasePCSAFTRahmat.java @@ -764,42 +764,6 @@ public double calcdSAFT() { return temp1 / getNumberOfMolesInPhase(); } - /** {@inheritDoc} */ - @Override - public double getNSAFT() { - return nSAFT; - } - - /** {@inheritDoc} */ - @Override - public void setNSAFT(double nSAFT) { - this.nSAFT = nSAFT; - } - - /** {@inheritDoc} */ - @Override - public double getDSAFT() { - return dSAFT; - } - - /** {@inheritDoc} */ - @Override - public void setDSAFT(double dSAFT) { - this.dSAFT = dSAFT; - } - - /** {@inheritDoc} */ - @Override - public double getGhsSAFT() { - return ghsSAFT; - } - - /** {@inheritDoc} */ - @Override - public void setGhsSAFT(double ghsSAFT) { - this.ghsSAFT = ghsSAFT; - } - /** {@inheritDoc} */ @Override public double F_HC_SAFT() { @@ -1154,7 +1118,6 @@ public double molarVolume(double pressure, double temperature, double A, double pt == PhaseType.LIQUID ? 2.0 / (2.0 + temperature / getPseudoCriticalTemperature()) : pressure * getB() / (numberOfMolesInPhase * temperature * R); // double BonV = phase== 0 ? 0.99:1e-5; - if (BonV < 0) { BonV = 1.0e-6; } @@ -1217,7 +1180,6 @@ public double molarVolume(double pressure, double temperature, double A, double */ // setMolarVolume(1.0 / BonV * Btemp / numberOfMolesInPhase); Z = pressure * getMolarVolume() / (R * temperature); - // System.out.println("BonV " + BonV); } while (Math.abs((oldMolarVolume - getMolarVolume()) / oldMolarVolume) > 1.0e-10 && iterations < 100); // while(Math.abs((BonV-BonVold)/BonV)>1.0e-10 && iterations<500);