Skip to content

Commit

Permalink
refact: remove redundant getter/setters
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Mar 9, 2024
1 parent 14e035c commit 0e1f464
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/main/java/neqsim/thermo/phase/PhasePCSAFTRahmat.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0e1f464

Please sign in to comment.