Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Dec 9, 2024
1 parent a056515 commit 03b2e0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/main/java/neqsim/thermo/phase/PhaseEos.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ public double molarVolume(double pressure, double temperature, double A, double
}
if (BonV < 0) {
// BonV = Math.abs(BonV);
BonV = 1.0e-10;
BonVold = 10;
BonV = BonVold / 2.0;
}

error = Math.abs((BonV - BonVold) / BonVold);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,6 @@ public void stabilityAnalysis() throws neqsim.util.exception.IsNaNException,
try {
clonedSystem.init(1, j);
} catch (Exception e) {
if (j == 0) {
clonedSystem.init(1, 1);
} else {
clonedSystem.init(1, 0);
}
logger.error(e.toString());
throw e;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ public void testProcess2() {
turboexpander.setIsentropicEfficiency(0.80);
turboexpander.setOutletPressure(50.0);
turboexpander.run();
turboexpander.getFluid().prettyPrint();
// turboexpander.getFluid().prettyPrint();

Separator DPCUScrubber = new neqsim.process.equipment.separator.Separator("TEX LT scrubber",
turboexpander.getOutStream());
DPCUScrubber.run();

DPCUScrubber.getFluid().prettyPrint();
// DPCUScrubber.getFluid().prettyPrint();
// richGasMixer.getOutStream().getFluid().prettyPrint();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void testReadFluidR() throws IOException {
testSystem.setPressure(530.97, "bara");
testSystem.setTemperature(105.0, "C");
testOps.TPflash();
testSystem.prettyPrint();
// testSystem.prettyPrint();
// Assertions.assertEquals(0.9270363530255, testSystem.getBeta(0), 1e-6);

testSystem = EclipseFluidReadWrite.read(filer);
Expand Down

0 comments on commit 03b2e0e

Please sign in to comment.