Skip to content

Commit 7298f83

Browse files
authored
added Zvol corr (#1015)
1 parent d932d43 commit 7298f83

File tree

5 files changed

+273
-158
lines changed

5 files changed

+273
-158
lines changed

src/main/java/neqsim/thermo/phase/Phase.java

+7
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ public double getZ() {
403403
return Z;
404404
}
405405

406+
/** {@inheritDoc} */
407+
@Override
408+
public double getZvolcorr() {
409+
return getPressure("Pa") * getMolarMass() / neqsim.thermo.ThermodynamicConstantsInterface.R
410+
/ temperature / getDensity("kg/m3");
411+
}
412+
406413
/** {@inheritDoc} */
407414
@Override
408415
public void setPressure(double pres) {

src/main/java/neqsim/thermo/phase/PhaseInterface.java

+7
Original file line numberDiff line numberDiff line change
@@ -2028,4 +2028,11 @@ public default boolean hasComponent(String name) {
20282028
* @return String model name
20292029
*/
20302030
public String getModelName();
2031+
2032+
/**
2033+
* method to return Z volume corrected gas compressibility
2034+
*
2035+
* @return double Z volume corrected
2036+
*/
2037+
public double getZvolcorr();
20312038
}

0 commit comments

Comments
 (0)