Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: remove redundant getter/setters #946

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading