Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reboiler duty results in test #1171

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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