Skip to content

Commit

Permalink
Add reboiler duty results in test (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored Nov 8, 2024
1 parent e3cfc3d commit ccc1fc0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/test/java/neqsim/process/processmodel/MLA_bug_test.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import neqsim.process.equipment.absorber.SimpleTEGAbsorber;
import neqsim.process.equipment.absorber.WaterStripperColumn;
import neqsim.process.equipment.distillation.DistillationColumn;
import neqsim.process.equipment.distillation.Reboiler;
import neqsim.process.equipment.filter.Filter;
import neqsim.process.equipment.heatexchanger.HeatExchanger;
import neqsim.process.equipment.heatexchanger.Heater;
Expand All @@ -20,7 +21,6 @@
import neqsim.process.equipment.util.StreamSaturatorUtil;
import neqsim.process.equipment.valve.ThrottlingValve;
import neqsim.process.measurementdevice.WaterDewPointAnalyser;
import neqsim.process.processmodel.ProcessSystem;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPA;
import neqsim.thermo.util.empiric.BukacekWaterInGas;
Expand Down Expand Up @@ -215,7 +215,7 @@ public void runProcessTEG() throws InterruptedException {
DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true);
column.addFeedStream(glycol_flash_valve2.getOutletStream(), 1);
column.getReboiler().setOutTemperature(273.15 + 197.5);
column.getCondenser().setOutTemperature(273.15 + 80.0);
column.getCondenser().setOutTemperature(273.15 + 85.0);
column.getTray(1).addStream(gasToReboiler);
column.setTopPressure(1.2);
column.setBottomPressure(1.2);
Expand Down Expand Up @@ -329,7 +329,11 @@ public void runProcessTEG() throws InterruptedException {
// System.out.println("water in gas " + dehydratedGas.getFluid().getComponent("water").getx());

assertEquals(-19.1886678,
p.getMeasurementDevice("water dew point analyser3").getMeasuredValue("C"), 1e-2);
p.getMeasurementDevice("water dew point analyser3").getMeasuredValue("C"), 1e-1);
assertEquals(203.024331,
((Reboiler) ((DistillationColumn) p.getUnit("TEG regeneration column")).getReboiler())
.getDuty() / 1e3,
1e-2);
}

@Test
Expand Down

0 comments on commit ccc1fc0

Please sign in to comment.