Skip to content

Commit 2a89f70

Browse files
EvenSolasmfstatoil
andauthored
test a new method for phase envelope calculation (#1074)
* test a new method for phase envelope calculation * update test * further improvements * update model * update * update * added one test * update method name to calcPTphaseEnvelope2 * updated method name in test --------- Co-authored-by: Åsmund Våge Fannemel <[email protected]>
1 parent e01a5d8 commit 2a89f70

File tree

5 files changed

+797
-86
lines changed

5 files changed

+797
-86
lines changed

src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java

+20-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import neqsim.thermodynamicOperations.phaseEnvelopeOps.multicomponentEnvelopeOps.CricondenThermFlash;
6060
import neqsim.thermodynamicOperations.phaseEnvelopeOps.multicomponentEnvelopeOps.HPTphaseEnvelope;
6161
import neqsim.thermodynamicOperations.phaseEnvelopeOps.multicomponentEnvelopeOps.pTphaseEnvelope;
62+
import neqsim.thermodynamicOperations.phaseEnvelopeOps.multicomponentEnvelopeOps.pTphaseEnvelopeNew2;
6263
import neqsim.thermodynamicOperations.phaseEnvelopeOps.reactiveCurves.pLoadingCurve2;
6364
import neqsim.thermodynamicOperations.propertyGenerator.OLGApropertyTableGeneratorWaterStudents;
6465
import neqsim.thermodynamicOperations.propertyGenerator.OLGApropertyTableGeneratorWaterStudentsPH;
@@ -1539,6 +1540,23 @@ public void calcPTphaseEnvelope() {
15391540
getOperation().run();
15401541
}
15411542

1543+
// public void dewPointPressureFlash(){
1544+
// constantDutyFlashInterface operation = new constantDutyPressureFlash(system);
1545+
// operation.setBeta((1-1e-7));
1546+
// operation.run();
1547+
// }
1548+
/**
1549+
* <p>
1550+
* calcPTphaseEnvelopeNew.
1551+
* </p>
1552+
*/
1553+
public void calcPTphaseEnvelope2() {
1554+
operation = new pTphaseEnvelopeNew2(system, fileName, (1.0 - 1e-10), 1.0, false);
1555+
// thisThread = new Thread(operation);
1556+
// thisThread.start();
1557+
getOperation().run();
1558+
}
1559+
15421560
/**
15431561
* <p>
15441562
* calcPTphaseEnvelope.
@@ -2074,7 +2092,8 @@ public CalculationResult propertyFlash(List<Double> Spec1, List<Double> Spec2, i
20742092
}
20752093

20762094
if (hasOnlineFractions) {
2077-
// Assure that fraction is inserted for the correct component (in case of mismatch of
2095+
// Assure that fraction is inserted for the correct component (in case of
2096+
// mismatch of
20782097
// component input and fluid component list)
20792098
double[] fraction = new double[this.system.getNumberOfComponents()];
20802099
// For all components defined in system

0 commit comments

Comments
 (0)