Skip to content

Commit

Permalink
update (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored Sep 24, 2024
1 parent ecd3453 commit c50b0f6
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ public void runAntiSurgeProcess2() throws InterruptedException {
recycl.setOutletStream(recyclegasstream);
recycl.setFlowAccuracy(1e-15);

Calculator antisurgeCalculator = new Calculator("anti surge calculator");
antisurgeCalculator.addInputVariable(gascompressor);
antisurgeCalculator.setOutputVariable(gassplitter);


neqsim.processSimulation.processSystem.ProcessSystem operations =
new neqsim.processSimulation.processSystem.ProcessSystem();
Expand All @@ -311,7 +309,6 @@ public void runAntiSurgeProcess2() throws InterruptedException {
operations.add(gassplitter);
operations.add(antisurgevalve);
operations.add(recycl);
operations.add(antisurgeCalculator);
operations.run();

double fluidh = gascompressor.getPolytropicFluidHead();
Expand All @@ -323,6 +320,12 @@ public void runAntiSurgeProcess2() throws InterruptedException {
gascompressor.setOutletPressure(90.0);
gascompressor.getCompressorChart().setUseCompressorChart(false);

Calculator antisurgeCalculator = new Calculator("anti surge calculator");
antisurgeCalculator.addInputVariable(gascompressor);
antisurgeCalculator.setOutputVariable(gassplitter);

operations.add(antisurgeCalculator);

operations.run();
assertEquals(6.9999999, gassplitter.getSplitStream(0).getFlowRate("MSm3/day"), 1e-4);
assertEquals(1e-6, gassplitter.getSplitStream(1).getFlowRate("MSm3/day"), 1e-4);
Expand Down

0 comments on commit c50b0f6

Please sign in to comment.