diff --git a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Cooler.java b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Cooler.java index f636e838d7..84904fd305 100644 --- a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Cooler.java +++ b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Cooler.java @@ -65,12 +65,12 @@ public double getEntropyProduction(String unit) { inStream.run(); inStream.getFluid().init(3); - getOutStream().run(); - getOutStream().getFluid().init(3); + getOutletStream().run(); + getOutletStream().getFluid().init(3); double heatTransferEntropyProd = coolingMediumTemperature * getDuty(); System.out.println("heat entropy " + heatTransferEntropyProd); - entrop += getOutStream().getThermoSystem().getEntropy(unit) + entrop += getOutletStream().getThermoSystem().getEntropy(unit) - inStream.getThermoSystem().getEntropy(unit); return entrop; diff --git a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Heater.java b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Heater.java index 43c6f9c910..08a355ddb1 100644 --- a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Heater.java +++ b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/Heater.java @@ -5,7 +5,7 @@ */ package neqsim.processSimulation.processEquipment.heatExchanger; -import neqsim.processSimulation.processEquipment.ProcessEquipmentBaseClass; +import neqsim.processSimulation.processEquipment.TwoPortEquipment; import neqsim.processSimulation.processEquipment.stream.Stream; import neqsim.processSimulation.processEquipment.stream.StreamInterface; import neqsim.thermo.system.SystemInterface; @@ -19,12 +19,10 @@ * @author Even Solbraa * @version $Id: $Id */ -public class Heater extends ProcessEquipmentBaseClass implements HeaterInterface { +public class Heater extends TwoPortEquipment implements HeaterInterface { private static final long serialVersionUID = 1000; boolean setTemperature = false, setOutPressure = false; - private StreamInterface outStream; - StreamInterface inStream; SystemInterface system; protected double temperatureOut = 0, dT = 0.0, pressureOut = 0; private boolean setEnergyInput = false; @@ -82,34 +80,12 @@ public Heater(String name, StreamInterface inStream) { outStream = new Stream("outStream", system); } - /** - *

- * Getter for the field inStream. - *

- * - * @return a {@link neqsim.processSimulation.processEquipment.stream.StreamInterface} object - */ - public StreamInterface getInStream() { - return inStream; - } - /** {@inheritDoc} */ @Override public void setdT(double dT) { this.dT = dT; } - /** - *

- * Getter for the field outStream. - *

- * - * @return a {@link neqsim.processSimulation.processEquipment.stream.StreamInterface} object - */ - public StreamInterface getOutStream() { - return outStream; - } - /** *

* setOutPressure. @@ -178,10 +154,10 @@ public void run() { } ThermodynamicOperations testOps = new ThermodynamicOperations(system); if (getSpecification().equals("out stream")) { - getOutStream().setFlowRate(getInStream().getFlowRate("kg/sec"), "kg/sec"); - getOutStream().run(); - temperatureOut = getOutStream().getTemperature(); - system = getOutStream().getThermoSystem().clone(); + getOutletStream().setFlowRate(getInletStream().getFlowRate("kg/sec"), "kg/sec"); + getOutletStream().run(); + temperatureOut = getOutletStream().getTemperature(); + system = getOutletStream().getThermoSystem().clone(); } else if (setTemperature) { system.setTemperature(temperatureOut, temperatureUnit); testOps.TPflash(); @@ -203,14 +179,14 @@ public void run() { // system.setTemperature(temperatureOut); // testOps.TPflash(); // system.setTemperature(temperatureOut); - getOutStream().setThermoSystem(system); + getOutletStream().setThermoSystem(system); } /** {@inheritDoc} */ @Override public void displayResult() { // System.out.println("heater dH: " + energyInput); - getOutStream().displayResult(); + getOutletStream().displayResult(); } /** @@ -310,8 +286,9 @@ public void setPressureDrop(double pressureDrop) { * * @param outStream the outStream to set */ + @Deprecated public void setOutStream(StreamInterface outStream) { - this.outStream = outStream; + setOutletStream(outStream); } /** {@inheritDoc} */ diff --git a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/NeqHeater.java b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/NeqHeater.java index 591f472cb5..1658e821fb 100644 --- a/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/NeqHeater.java +++ b/src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/NeqHeater.java @@ -14,8 +14,6 @@ public class NeqHeater extends Heater { private static final long serialVersionUID = 1000; - StreamInterface outStream; - StreamInterface inStream; SystemInterface system; double dH = 0.0; @@ -61,12 +59,6 @@ public NeqHeater(String name, StreamInterface inStream) { super(name, inStream); } - /** {@inheritDoc} */ - @Override - public StreamInterface getOutStream() { - return outStream; - } - /** {@inheritDoc} */ @Override public void setOutTemperature(double temperature) { diff --git a/src/main/java/neqsim/processSimulation/processEquipment/powerGeneration/GasTurbine.java b/src/main/java/neqsim/processSimulation/processEquipment/powerGeneration/GasTurbine.java index 5937ec3db3..6990602866 100644 --- a/src/main/java/neqsim/processSimulation/processEquipment/powerGeneration/GasTurbine.java +++ b/src/main/java/neqsim/processSimulation/processEquipment/powerGeneration/GasTurbine.java @@ -152,17 +152,17 @@ public void run() { locHeater.setEnergyInput(heatOfCombustion); locHeater.run(); - locHeater.getOutStream().getFluid().addComponent("CO2", moleMethane); - locHeater.getOutStream().getFluid().addComponent("water", moleMethane * 2.0); - locHeater.getOutStream().getFluid().addComponent("methane", -moleMethane); - locHeater.getOutStream().getFluid().addComponent("oxygen", -moleMethane * 2.0); + locHeater.getOutletStream().getFluid().addComponent("CO2", moleMethane); + locHeater.getOutletStream().getFluid().addComponent("water", moleMethane * 2.0); + locHeater.getOutletStream().getFluid().addComponent("methane", -moleMethane); + locHeater.getOutletStream().getFluid().addComponent("oxygen", -moleMethane * 2.0); // todo: Init fails because there is less than moleMethane of oxygen - locHeater.getOutStream().getFluid().init(3); + locHeater.getOutletStream().getFluid().init(3); // locHeater.getOutStream().run(); locHeater.displayResult(); - Expander expander = new Expander("expander", locHeater.getOutStream()); + Expander expander = new Expander("expander", locHeater.getOutletStream()); expander.setOutletPressure(1.01325); expander.run(); diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/DPCUModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/DPCUModule.java index 21f3f3b1d6..e49ea99f5d 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/DPCUModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/DPCUModule.java @@ -98,7 +98,7 @@ public void initializeModule() { heatExchanger1.setOutTemperature(273.15 - 21.0); // heatExchanger1.addInStream(feedStream2); - expander = new Expander("expander", heatExchanger2.getOutStream()); + expander = new Expander("expander", heatExchanger2.getOutletStream()); expander.setOutletPressure(46.0); LTseparator = new Separator("LTseparator", expander.getOutletStream()); diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/GlycolDehydrationlModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/GlycolDehydrationlModule.java index abad12e04b..9302cbfe4f 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/GlycolDehydrationlModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/GlycolDehydrationlModule.java @@ -184,13 +184,13 @@ public void initializeModule() { strippingGas.setTemperature(reboilerTemperature, "K"); strippingGas.setPressure(regenerationPressure, "bara"); - stripperColumn = new Separator("stripperColumn", reboiler.getOutStream()); + stripperColumn = new Separator("stripperColumn", reboiler.getOutletStream()); stripperColumn.addStream(strippingGas); heatExchanger1 = new Cooler("heatExchanger1", stripperColumn.getLiquidOutStream()); heatExchanger1.setOutTemperature(100.0); - HPpump = new Pump("HP lean TEG pump", heatExchanger1.getOutStream()); + HPpump = new Pump("HP lean TEG pump", heatExchanger1.getOutletStream()); HPpump.setOutletPressure(gasStreamToAbsorber.getPressure()); heatExchanger2 = new Cooler("heatExchanger2", HPpump.getOutStream()); @@ -199,7 +199,7 @@ public void initializeModule() { heatExchanger3 = new Cooler("heatExchanger3", stripperColumn.getGasOutStream()); heatExchanger3.setOutTemperature(273.15 + 30.0); - waterSeparator = new Separator("watersep", heatExchanger3.getOutStream()); + waterSeparator = new Separator("watersep", heatExchanger3.getOutletStream()); // leanTEGStreamToAbsorber = heatExchanger2.getOutStream(); // getOperations().add(gasStreamToAbsorber); diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/MEGReclaimerModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/MEGReclaimerModule.java index 5782be0557..ad0797ebf5 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/MEGReclaimerModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/MEGReclaimerModule.java @@ -98,7 +98,7 @@ public void initializeModule() { // MEGrecircHeater.setEnergyInput(5000.0); MEGrecircHeater.setOutTemperature(273 + 68.9); - recircValve = new ThrottlingValve("recircValve", MEGrecircHeater.getOutStream()); + recircValve = new ThrottlingValve("recircValve", MEGrecircHeater.getOutletStream()); recircValve.setOutletPressure(reclaimerPressure); recircValve.setIsoThermal(true); diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/MixerGasProcessingModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/MixerGasProcessingModule.java index 5305d20d0e..532a84801c 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/MixerGasProcessingModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/MixerGasProcessingModule.java @@ -77,7 +77,7 @@ public void initializeModule() { Cooler inletCooler = new Cooler("inlet well stream cooler", feedStream); inletCooler.setOutTemperature(inletSepTemperature + 273.15); - inletSeparator = new Separator("Inlet separator", inletCooler.getOutStream()); + inletSeparator = new Separator("Inlet separator", inletCooler.getOutletStream()); Cooler gasCooler = new Cooler("separator gas cooler", inletSeparator.getGasOutStream()); gasCooler.setOutTemperature(gasScrubberTemperature + 273.15); @@ -86,7 +86,7 @@ public void initializeModule() { oilPump.setOutletPressure(liquidPumpPressure); Separator gasScrubber = - new Separator("HC dew point control scrubber", gasCooler.getOutStream()); + new Separator("HC dew point control scrubber", gasCooler.getOutletStream()); Recycle HPliquidRecycle = new Recycle("Resycle"); double tolerance = 1e-2; @@ -109,7 +109,7 @@ public void initializeModule() { mixerAfterCooler.setOutTemperature(glycolScrubberTemperature + 273.15); glycolScrubber = - new Separator("Water dew point control scrubber", mixerAfterCooler.getOutStream()); + new Separator("Water dew point control scrubber", mixerAfterCooler.getOutletStream()); secondStageCompressor = new Compressor("2nd stage compressor", glycolScrubber.getGasOutStream()); @@ -147,7 +147,7 @@ public void run() { } getOperations().run(); - gasExitStream = secondStageAfterCooler.getOutStream(); + gasExitStream = secondStageAfterCooler.getOutletStream(); oilExitStream = oilPump.getOutStream(); glycolExitStream = glycolScrubber.getLiquidOutStream(); } diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java index e57a55618e..ab498b0627 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java @@ -88,7 +88,7 @@ public void initializeModule() { cooler.setPressureDrop(0.35); cooler.setSpecification("out stream"); - Stream stream_2 = new Stream("stream_2", cooler.getOutStream()); + Stream stream_2 = new Stream("stream_2", cooler.getOutletStream()); stream_2.setSpecification("dewT"); stream_2.getThermoSystem().setTemperature(vaporizerTemperature); stream_2.run(); @@ -186,18 +186,18 @@ public static void main(String[] args) { .getEnergyInput(); double evaporatorPressure = ((Cooler) propaneModule.getOperations().getUnit("propane evaporator")) - .getOutStream().getPressure(); + .getOutletStream().getPressure(); double evaporatorTemperature = ((Cooler) propaneModule.getOperations().getUnit("propane evaporator")) - .getOutStream().getTemperature(); + .getOutletStream().getTemperature(); double condenserDuty = ((Heater) propaneModule.getOperations().getUnit("propane condenser")) .getEnergyInput(); double condenserPressure = - ((Heater) propaneModule.getOperations().getUnit("propane condenser")).getOutStream() + ((Heater) propaneModule.getOperations().getUnit("propane condenser")).getOutletStream() .getPressure(); double condenserTemperature = - ((Heater) propaneModule.getOperations().getUnit("propane condenser")).getOutStream() + ((Heater) propaneModule.getOperations().getUnit("propane condenser")).getOutletStream() .getTemperature(); System.out.println("Compressor work " + compressorWork + " W"); diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModule.java index 658b5d3735..167a971f79 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModule.java @@ -69,7 +69,7 @@ public void run() { getOperations().run(); gasExitStream = gasInletScrubber.getGasOutStream(); - oilExitStream = oilCooler.getOutStream(); + oilExitStream = oilCooler.getOutletStream(); } /** {@inheritDoc} */ @@ -84,7 +84,7 @@ public void initializeModule() { liquidOutHeater.setOutTemperature(heatedOilTemperature); ThreePhaseSeparator firstStageSeparator = - new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutStream()); + new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutletStream()); ThrottlingValve valve1 = new ThrottlingValve("1stTo2ndStageOilValve", firstStageSeparator.getOilOutStream()); @@ -112,7 +112,7 @@ public void initializeModule() { thirdSstageCoooler.setOutTemperature(firstStageCompressorAfterCoolerTemperature); Mixer thirdStageMixer = new Mixer("1st and 2nd stage gas mixer"); - thirdStageMixer.addStream(thirdSstageCoooler.getOutStream()); + thirdStageMixer.addStream(thirdSstageCoooler.getOutletStream()); thirdStageMixer.addStream(secondStageSeparator.getGasOutStream()); Separator thirdStageScrubber = @@ -131,7 +131,7 @@ public void initializeModule() { Cooler inletGasCooler = new Cooler("HP gas cooler", HPgasMixer.getOutStream()); inletGasCooler.setOutTemperature(exitGasScrubberTemperature); - gasInletScrubber = new Separator("HP gas scrubber", inletGasCooler.getOutStream()); + gasInletScrubber = new Separator("HP gas scrubber", inletGasCooler.getOutletStream()); Recycle HPliquidRecycle = new Recycle("Resycle"); double tolerance = 1e-10; diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModuleSimple.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModuleSimple.java index 938c48ec84..9e868fffc0 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModuleSimple.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/SeparationTrainModuleSimple.java @@ -69,7 +69,7 @@ public void run() { getOperations().run(); gasExitStream = gasInletScrubber.getGasOutStream(); - oilExitStream = oilCooler.getOutStream(); + oilExitStream = oilCooler.getOutletStream(); } /** {@inheritDoc} */ @@ -84,7 +84,7 @@ public void initializeModule() { liquidOutHeater.setOutTemperature(heatedOilTemperature); ThreePhaseSeparator firstStageSeparator = - new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutStream()); + new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutletStream()); ThrottlingValve valve1 = new ThrottlingValve("1stTo2ndStageOilValve", firstStageSeparator.getOilOutStream()); @@ -112,7 +112,7 @@ public void initializeModule() { thirdSstageCoooler.setOutTemperature(firstStageCompressorAfterCoolerTemperature); Mixer thirdStageMixer = new Mixer("1st and 2nd stage gas mixer"); - thirdStageMixer.addStream(thirdSstageCoooler.getOutStream()); + thirdStageMixer.addStream(thirdSstageCoooler.getOutletStream()); thirdStageMixer.addStream(secondStageSeparator.getGasOutStream()); Separator thirdStageScrubber = @@ -131,7 +131,7 @@ public void initializeModule() { Cooler inletGasCooler = new Cooler("HP gas cooler", HPgasMixer.getOutStream()); inletGasCooler.setOutTemperature(exitGasScrubberTemperature); - gasInletScrubber = new Separator("HP gas scrubber", inletGasCooler.getOutStream()); + gasInletScrubber = new Separator("HP gas scrubber", inletGasCooler.getOutletStream()); Recycle HPliquidRecycle = new Recycle("Resycle"); double tolerance = 1e-10; diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/WellFluidModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/WellFluidModule.java index c02ac9e91f..39c1af5ff1 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/WellFluidModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/WellFluidModule.java @@ -71,7 +71,7 @@ public void run() { // ((Heater) getOperations().getUnit("gas heater")).displayResult(); Stream gasStream = - (Stream) ((Heater) getOperations().getUnit("gas heater")).getOutStream().clone(); + (Stream) ((Heater) getOperations().getUnit("gas heater")).getOutletStream().clone(); gasStream.getThermoSystem().setPressure(inletPressure); Stream oilStream = (Stream) ((ThreePhaseSeparator) getOperations().getUnit("3rd stage Separator")) @@ -104,7 +104,7 @@ public void initializeModule() { liquidOutHeater.setOutTemperature(separationTemperature); ThreePhaseSeparator firstStageSeparator = - new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutStream()); + new ThreePhaseSeparator("1st stage separator", liquidOutHeater.getOutletStream()); ThrottlingValve valve1 = new ThrottlingValve("1stTo2ndStageOilValve", firstStageSeparator.getOilOutStream()); @@ -114,7 +114,7 @@ public void initializeModule() { liquidOutHeater2.setOutTemperature(separationTemperature); ThreePhaseSeparator secondStageSeparator = - new ThreePhaseSeparator("2nd stage Separator", liquidOutHeater2.getOutStream()); + new ThreePhaseSeparator("2nd stage Separator", liquidOutHeater2.getOutletStream()); ThrottlingValve thirdStageValve = new ThrottlingValve("2-3stageOilValve", secondStageSeparator.getLiquidOutStream()); @@ -125,7 +125,7 @@ public void initializeModule() { liquidOutHeater3.setOutTemperature(separationTemperature); ThreePhaseSeparator thirdStageSeparator = - new ThreePhaseSeparator("3rd stage Separator", liquidOutHeater3.getOutStream()); + new ThreePhaseSeparator("3rd stage Separator", liquidOutHeater3.getOutletStream()); Mixer gasMixer = new Mixer("gas mixer"); @@ -139,7 +139,7 @@ public void initializeModule() { Mixer wellStreamMixer = new Mixer("well mixer"); wellStreamMixer.addStream(thirdStageSeparator.getOilOutStream()); - wellStreamMixer.addStream(gasHeater.getOutStream()); + wellStreamMixer.addStream(gasHeater.getOutletStream()); getOperations().add(inletSeparator); getOperations().add(liquidOutHeater); diff --git a/src/main/java/neqsim/processSimulation/util/monitor/HeaterResponse.java b/src/main/java/neqsim/processSimulation/util/monitor/HeaterResponse.java index aa2e4dbcdb..fde87bc08a 100644 --- a/src/main/java/neqsim/processSimulation/util/monitor/HeaterResponse.java +++ b/src/main/java/neqsim/processSimulation/util/monitor/HeaterResponse.java @@ -35,8 +35,8 @@ public HeaterResponse() {} public HeaterResponse(Heater inputHeater) { name = inputHeater.getName(); - feedTemperature = inputHeater.getInStream().getTemperature("C"); - dischargeTemperature = inputHeater.getOutStream().getTemperature("C"); + feedTemperature = inputHeater.getInletStream().getTemperature("C"); + dischargeTemperature = inputHeater.getOutletStream().getTemperature("C"); duty = inputHeater.getDuty(); } diff --git a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemTest.java b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemTest.java index bec6d3523a..f47a98c76f 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemTest.java @@ -351,7 +351,7 @@ public void runTEGProcessTest() { feedTPsetterToAbsorber.setOutTemperature(27.93, "C"); Stream feedToAbsorber = - new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutStream()); + new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutletStream()); Stream TEGFeed = new Stream("lean TEG to absorber", feedTEG); TEGFeed.setFlowRate(14.68 * 1100.0, "kg/hr"); @@ -383,7 +383,7 @@ public void runTEGProcessTest() { new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); HeatExchanger heatEx2 = - new HeatExchanger("rich TEG heat exchanger 1", richGLycolHeaterCondenser.getOutStream()); + new HeatExchanger("rich TEG heat exchanger 1", richGLycolHeaterCondenser.getOutletStream()); heatEx2.setGuessOutTemperature(273.15 + 62.0); heatEx2.setUAvalue(200.0); @@ -434,7 +434,7 @@ public void runTEGProcessTest() { Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 7.5); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -457,7 +457,7 @@ public void runTEGProcessTest() { Heater bufferTank = new Heater("TEG buffer tank", stripper.getLiquidOutStream()); bufferTank.setOutTemperature(273.15 + 191.0); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutStream());// stripper.getSolventOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream());// stripper.getSolventOutStream()); hotLeanTEGPump.setOutletPressure(5.0); hotLeanTEGPump.setIsentropicEfficiency(0.6); @@ -468,7 +468,7 @@ public void runTEGProcessTest() { Heater coolerhOTteg3 = new Heater("lean TEG cooler", heatEx2.getOutStream(1)); coolerhOTteg3.setOutTemperature(273.15 + 35.41); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(87.2); hotLeanTEGPump2.setIsentropicEfficiency(0.75); diff --git a/src/test/java/neqsim/processSimulation/util/example/MEGinjection.java b/src/test/java/neqsim/processSimulation/util/example/MEGinjection.java index 4735cb2233..6b027c4156 100644 --- a/src/test/java/neqsim/processSimulation/util/example/MEGinjection.java +++ b/src/test/java/neqsim/processSimulation/util/example/MEGinjection.java @@ -72,7 +72,7 @@ public static void main(String[] args) { pipeline.setOutTemperature(273.15 + 35.5); pipeline.setOutPressure(80.2); - Stream mixerStream = (Stream) pipeline.getOutStream(); + Stream mixerStream = (Stream) pipeline.getOutletStream(); mixerStream.setName("feed gas and MEG"); Adjuster adjuster = new Adjuster("MEG adjuster"); diff --git a/src/test/java/neqsim/processSimulation/util/example/OffshoreProcess3.java b/src/test/java/neqsim/processSimulation/util/example/OffshoreProcess3.java index 6a0933ed62..5331950f98 100644 --- a/src/test/java/neqsim/processSimulation/util/example/OffshoreProcess3.java +++ b/src/test/java/neqsim/processSimulation/util/example/OffshoreProcess3.java @@ -63,7 +63,7 @@ public static void main(String[] args) { inletTempControl.setOutPressure(55.21, "bara"); ThrottlingValve valve = - new ThrottlingValve("inlet choke valve", inletTempControl.getOutStream()); + new ThrottlingValve("inlet choke valve", inletTempControl.getOutletStream()); valve.setOutletPressure(35.21); Stream oilToInletSep = new Stream("oilToInletSep", fluid3.clone()); @@ -78,7 +78,8 @@ public static void main(String[] args) { new Heater("oil cooler/heater to 2nd stage", inletSeparator.getOilOutStream()); heater1.setOutTemperature(85.0, "C"); - ThrottlingValve valve2 = new ThrottlingValve("oil HP to MP valve", heater1.getOutStream()); + ThrottlingValve valve2 = + new ThrottlingValve("oil HP to MP valve", heater1.getOutletStream()); valve2.setOutletPressure(7.0); ThrottlingValve waterDPvalve = @@ -140,7 +141,7 @@ public static void main(String[] args) { new Cooler("1st stage gas heat exchanger", lpcompressor.getOutletStream()); lpgasheater.setOutTemperature(35.0, "C"); - Separator lpscrubber = new Separator("2nd stage scrubber", lpgasheater.getOutStream()); + Separator lpscrubber = new Separator("2nd stage scrubber", lpgasheater.getOutletStream()); Stream liqFromlpscrubber = (Stream) lpscrubber.getLiquidOutStream(); Recycle lpscrubberResyc = new Recycle("mpscrubberRes"); @@ -164,7 +165,7 @@ public static void main(String[] args) { secondndstagecooler.setOutTemperature(290.0); Separator scrubbberfrom2ndstage = - new Separator("scrubber of mix gas HP", secondndstagecooler.getOutStream()); + new Separator("scrubber of mix gas HP", secondndstagecooler.getOutletStream()); Mixer mixer = new Mixer("HP rich gas mixer"); mixer.addStream(inletSeparator.getGasOutStream()); @@ -175,7 +176,7 @@ public static void main(String[] args) { dewPointScrubberCooler.setOutTemperature(273.15 + 32.3); Separator mpscrubber = - new Separator("dew point control scrubber", dewPointScrubberCooler.getOutStream()); + new Separator("dew point control scrubber", dewPointScrubberCooler.getOutletStream()); Stream liqFrommpscrubber = (Stream) mpscrubber.getLiquidOutStream(); @@ -198,16 +199,17 @@ public static void main(String[] args) { new Cooler("1st stage export gas cooler", exportGasCompressor.getOutletStream()); exportGasCompressorCooler.setOutTemperature(35.0, "C"); - Compressor exportGasCompressor2 = new Compressor("2nd stage export compressor",exportGasCompressorCooler.getOutStream()); + Compressor exportGasCompressor2 = new Compressor("2nd stage export compressor", + exportGasCompressorCooler.getOutletStream()); exportGasCompressor2.setIsentropicEfficiency(0.75); exportGasCompressor2.setOutletPressure( - exportGasCompressorCooler.getOutStream().getPressure() * 2.5 * 2.5); + exportGasCompressorCooler.getOutletStream().getPressure() * 2.5 * 2.5); Cooler exportGasCompressorCooler2 = new Cooler("2nd stage export gas cooler", exportGasCompressor2.getOutletStream()); exportGasCompressorCooler2.setOutTemperature(35.0, "C"); - Stream exportGas = new Stream("export gas",exportGasCompressorCooler2.getOutStream()); + Stream exportGas = new Stream("export gas", exportGasCompressorCooler2.getOutletStream()); neqsim.processSimulation.processSystem.ProcessSystem operations = new neqsim.processSimulation.processSystem.ProcessSystem(); diff --git a/src/test/java/neqsim/processSimulation/util/example/OnshoreMEGprocess.java b/src/test/java/neqsim/processSimulation/util/example/OnshoreMEGprocess.java index ed11763db4..3a97960e3a 100644 --- a/src/test/java/neqsim/processSimulation/util/example/OnshoreMEGprocess.java +++ b/src/test/java/neqsim/processSimulation/util/example/OnshoreMEGprocess.java @@ -71,7 +71,7 @@ public static void main(String[] args) { interstageGasCooler.setOutTemperature(40.0, "C"); Compressor inletCompressor2ndstage = - new Compressor("Compressor 1 - second stage", interstageGasCooler.getOutStream()); + new Compressor("Compressor 1 - second stage", interstageGasCooler.getOutletStream()); inletCompressor2ndstage.setOutletPressure(105.0, "bara"); neqsim.thermo.system.SystemInterface feedMEG = feedGas.clone(); @@ -93,7 +93,7 @@ public static void main(String[] args) { inletGasCooler.setOutTemperature(10.0, "C"); StaticMixer MEGmixer2 = new StaticMixer("MEG mixer 2"); - MEGmixer2.addStream(inletGasCooler.getOutStream()); + MEGmixer2.addStream(inletGasCooler.getOutletStream()); MEGmixer2.addStream(MEGsplitter1.getSplitStream(1)); HeatExchanger heatEx = @@ -124,11 +124,11 @@ public static void main(String[] args) { richMEGstreamHeater.setOutTemperature(15.0, "C"); Heater richMEGstreamHeater2 = - new Heater("column condenser HX", richMEGstreamHeater.getOutStream()); + new Heater("column condenser HX", richMEGstreamHeater.getOutletStream()); // richMEGstreamHeater2.setOutTemperature(22.0, "C"); ThrottlingValve presRedValve3 = - new ThrottlingValve("valve to flash drum", richMEGstreamHeater2.getOutStream()); + new ThrottlingValve("valve to flash drum", richMEGstreamHeater2.getOutletStream()); presRedValve3.setOutletPressure(3.9); Separator flashDrumSep = @@ -161,7 +161,7 @@ public static void main(String[] args) { coolerRegenGas.setOutTemperature(273.15 + 20.0); Separator sepregenGas = - new Separator("overhead condenser scrubber", coolerRegenGas.getOutStream()); + new Separator("overhead condenser scrubber", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare from regenerator", sepregenGas.getGasOutStream()); @@ -172,7 +172,7 @@ public static void main(String[] args) { Cooler bufferTank = new Cooler("MEG buffer tank", column.getLiquidOutStream()); bufferTank.setOutTemperature(273.15 + 130.0); - Pump hotLeanMEGPump = new Pump("hot lean MEG pump", bufferTank.getOutStream()); + Pump hotLeanMEGPump = new Pump("hot lean MEG pump", bufferTank.getOutletStream()); hotLeanMEGPump.setOutletPressure(105.0); hotLeanMEGPump.setIsentropicEfficiency(0.75); @@ -185,7 +185,7 @@ public static void main(String[] args) { coolerHotMEG2.setOutTemperature(273.15 + 20.0); Stream leanMEGtoMixer = - new Stream("lean MEG to makeup mixer", coolerHotMEG2.getOutStream()); + new Stream("lean MEG to makeup mixer", coolerHotMEG2.getOutletStream()); neqsim.thermo.system.SystemInterface pureMEG = feedGas.clone(); pureMEG.setMolarComposition(new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0}); @@ -298,9 +298,9 @@ public static void main(String[] args) { + column.getLiquidOutStream().getFluid().getPhase("aqueous").getWtFrac("MEG") * 100.0); System.out.println("hydrate temperature 1 " - + (inletGasCooler.getOutStream().getHydrateEquilibriumTemperature() - 273.15) + + (inletGasCooler.getOutletStream().getHydrateEquilibriumTemperature() - 273.15) + " wt% MEG " - + inletGasCooler.getOutStream().getFluid().getPhase("aqueous").getWtFrac("MEG") + + inletGasCooler.getOutletStream().getFluid().getPhase("aqueous").getWtFrac("MEG") * 100.0); operations.save("c:/temp/MEGdehydrationProcess.neqsim"); diff --git a/src/test/java/neqsim/processSimulation/util/example/OnshoreProcess1.java b/src/test/java/neqsim/processSimulation/util/example/OnshoreProcess1.java index f26c120412..bd0103d9cf 100644 --- a/src/test/java/neqsim/processSimulation/util/example/OnshoreProcess1.java +++ b/src/test/java/neqsim/processSimulation/util/example/OnshoreProcess1.java @@ -323,7 +323,7 @@ public static void main(String args[]) { ThreePhaseSeparator condensateSeparator = new ThreePhaseSeparator("condensateSeparator", - condensateheater1.getOutStream()); + condensateheater1.getOutletStream()); // Heater MEGheater1 = new Heater(stream_5); // MEGheater1.setName("MEG heater1"); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcess2.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcess2.java index 2fd07fac2d..c828c3bf24 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcess2.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcess2.java @@ -86,10 +86,11 @@ public static void main(String[] args) { richGLycolHeaterCondenser.setOutTemperature(273.15 + 35.5); Heater richGLycolHeater = - new Heater("rich TEG heater HP", richGLycolHeaterCondenser.getOutStream()); + new Heater("rich TEG heater HP", richGLycolHeaterCondenser.getOutletStream()); richGLycolHeater.setOutTemperature(273.15 + 62.0); - Separator flashSep = new Separator("degasing separator", richGLycolHeater.getOutStream()); + Separator flashSep = + new Separator("degasing separator", richGLycolHeater.getOutletStream()); Stream flashGas = new Stream("gas from degasing separator", flashSep.getGasOutStream()); Stream flashLiquid = new Stream("liquid from degasing separator", flashSep.getLiquidOutStream()); @@ -99,12 +100,12 @@ public static void main(String[] args) { richGLycolHeater2.setOutPressure(1.23); Mixer mixerTOreboiler = new Mixer("reboil mxer"); - mixerTOreboiler.addStream(richGLycolHeater2.getOutStream()); + mixerTOreboiler.addStream(richGLycolHeater2.getOutletStream()); Heater heaterToReboiler = new Heater("heaterToReboiler", mixerTOreboiler.getOutStream()); heaterToReboiler.setOutTemperature(273.15 + 206.6); - Separator regenerator2 = new Separator("regenerator2", heaterToReboiler.getOutStream()); + Separator regenerator2 = new Separator("regenerator2", heaterToReboiler.getOutletStream()); Stream gasFromRegenerator = new Stream("gasFromRegenerator", regenerator2.getGasOutStream()); @@ -114,7 +115,7 @@ public static void main(String[] args) { sepregenGasCooler.setOutPressure(1.23); // sepregenGasCooler.setEnergyStream(richGLycolHeaterCondenser.getEnergyStream()); - Separator sepRegen = new Separator("sepRegen", sepregenGasCooler.getOutStream()); + Separator sepRegen = new Separator("sepRegen", sepregenGasCooler.getOutletStream()); Stream liquidRegenReflux = new Stream("liquidRegenReflux", sepRegen.getLiquidOutStream()); @@ -124,7 +125,7 @@ public static void main(String[] args) { Heater coolerRegenGas = new Heater("coolerRegenGas", sepRegen.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 35.5); - Separator sepregenGas = new Separator("sepregenGas", coolerRegenGas.getOutStream()); + Separator sepregenGas = new Separator("sepregenGas", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gasToFlare", sepregenGas.getGasOutStream()); @@ -158,13 +159,13 @@ public static void main(String[] args) { coolerhOTteg.setOutTemperature(273.15 + 116.8); Heater coolerhOTteg2 = - new Heater("medium hot lean TEG cooler", coolerhOTteg.getOutStream()); + new Heater("medium hot lean TEG cooler", coolerhOTteg.getOutletStream()); coolerhOTteg2.setOutTemperature(273.15 + 89.3); - Heater coolerhOTteg3 = new Heater("lean TEG cooler", coolerhOTteg2.getOutStream()); + Heater coolerhOTteg3 = new Heater("lean TEG cooler", coolerhOTteg2.getOutletStream()); coolerhOTteg3.setOutTemperature(273.15 + 44.85); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(52.21); Stream leanTEGtoabs = new Stream("lean TEG to absorber", hotLeanTEGPump2.getOutStream()); @@ -238,7 +239,7 @@ public static void main(String[] args) { operations.add(resycleLeanTEG); operations.run(); - richGLycolHeater2.getOutStream().getFluid().display(); + richGLycolHeater2.getOutletStream().getFluid().display(); System.out.println("Energy reboiler " + heaterToReboiler.getDuty()); mixerTOreboiler.addStream(liquidRegenReflux); mixerTOreboiler.addStream(resycle3.getOutStream()); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java index 188edcd909..10c3fb3d70 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java @@ -92,7 +92,7 @@ public static void main(String[] args) { new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); HeatExchanger heatEx2 = new HeatExchanger("rich TEG heat exchanger 1", - richGLycolHeaterCondenser.getOutStream()); + richGLycolHeaterCondenser.getOutletStream()); heatEx2.setGuessOutTemperature(273.15 + 62.0); heatEx2.setUAvalue(220.0); @@ -136,7 +136,8 @@ public static void main(String[] args) { Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 35.5); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = + new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -156,7 +157,7 @@ public static void main(String[] args) { Heater bufferTank = new Heater("TEG buffer tank", stripper.getSolventOutStream()); bufferTank.setOutTemperature(273.15 + 185.0); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump",bufferTank.getOutStream());// stripper.getSolventOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream());// stripper.getSolventOutStream()); hotLeanTEGPump.setOutletPressure(20.0); hotLeanTEGPump.setIsentropicEfficiency(0.75); @@ -167,7 +168,7 @@ public static void main(String[] args) { Heater coolerhOTteg3 = new Heater("lean TEG cooler",heatEx2.getOutStream(1)); coolerhOTteg3.setOutTemperature(273.15 + 43.0); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump",coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(52.21); hotLeanTEGPump2.setIsentropicEfficiency(0.75); @@ -304,14 +305,14 @@ public static void main(String[] args) { System.out.println("richGLycolHeaterCondenser duty " + richGLycolHeaterCondenser.getEnergyStream().getDuty() / 1.0e3); System.out.println("richGLycolHeaterCondenser temperature out " - + richGLycolHeaterCondenser.getOutStream().getTemperature("C")); + + richGLycolHeaterCondenser.getOutletStream().getTemperature("C")); richGLycolHeaterCondenser.run(); hotLeanTEGPump.getOutStream().displayResult(); flashLiquid.displayResult(); System.out.println("Temperature rich TEG out of reflux condenser " - + richGLycolHeaterCondenser.getOutStream().getTemperature("C")); + + richGLycolHeaterCondenser.getOutletStream().getTemperature("C")); heatEx.displayResult(); System.out.println("glycol out temperature " + glycol_flash_valve2.getOutletStream().getFluid().getTemperature("C")); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java index 9754854c83..432da682b2 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java @@ -92,10 +92,11 @@ public static void main(String[] args) { new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); Heater richGLycolHeater = - new Heater("rich TEG heater HP", richGLycolHeaterCondenser.getOutStream()); + new Heater("rich TEG heater HP", richGLycolHeaterCondenser.getOutletStream()); richGLycolHeater.setOutTemperature(273.15 + 62.0); - Separator flashSep = new Separator("degasing separator", richGLycolHeater.getOutStream()); + Separator flashSep = + new Separator("degasing separator", richGLycolHeater.getOutletStream()); Stream flashGas = new Stream("gas from degasing separator", flashSep.getGasOutStream()); @@ -120,7 +121,7 @@ public static void main(String[] args) { DistillationColumn column = new DistillationColumn(1, true, true); column.setName("TEG regeneration column"); - column.addFeedStream(richGLycolHeater2.getOutStream(), 0); + column.addFeedStream(richGLycolHeater2.getOutletStream(), 0); column.getReboiler().setOutTemperature(273.15 + 206.6); column.getCondenser().setOutTemperature(273.15 + 101.0); column.getReboiler().addStream(gasToReboiler); @@ -130,7 +131,8 @@ public static void main(String[] args) { Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 35.5); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = + new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -150,7 +152,7 @@ public static void main(String[] args) { Heater bufferTank = new Heater("TEG buffer tank", stripper.getSolventOutStream()); bufferTank.setOutTemperature(273.15 + 185.0); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream()); hotLeanTEGPump.setOutletPressure(20.0); hotLeanTEGPump.setIsentropicEfficiency(0.75); @@ -158,13 +160,13 @@ public static void main(String[] args) { coolerhOTteg.setOutTemperature(273.15 + 116.8); Heater coolerhOTteg2 = - new Heater("medium hot lean TEG cooler", coolerhOTteg.getOutStream()); + new Heater("medium hot lean TEG cooler", coolerhOTteg.getOutletStream()); coolerhOTteg2.setOutTemperature(273.15 + 89.3); - Heater coolerhOTteg3 = new Heater("lean TEG cooler", coolerhOTteg2.getOutStream()); + Heater coolerhOTteg3 = new Heater("lean TEG cooler", coolerhOTteg2.getOutletStream()); coolerhOTteg3.setOutTemperature(273.15 + 43.0); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(52.21); hotLeanTEGPump2.setIsentropicEfficiency(0.75); @@ -300,7 +302,7 @@ public static void main(String[] args) { System.out.println("richGLycolHeaterCondenser duty " + richGLycolHeaterCondenser.getEnergyStream().getDuty() / 1.0e3); System.out.println("richGLycolHeaterCondenser temperature out " - + richGLycolHeaterCondenser.getOutStream().getTemperature("C")); + + richGLycolHeaterCondenser.getOutletStream().getTemperature("C")); richGLycolHeaterCondenser.run(); hotLeanTEGPump.getOutStream().displayResult(); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java index c09cbaaab6..bb7a5bc239 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java @@ -80,7 +80,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() feedTPsetterToAbsorber.setOutTemperature(27.93, "C"); Stream feedToAbsorber = - new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutStream()); + new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutletStream()); Stream TEGFeed = new Stream("lean TEG to absorber", feedTEG); TEGFeed.setFlowRate(14.68 * 1100.0, "kg/hr"); @@ -113,7 +113,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); HeatExchanger heatEx2 = new HeatExchanger("rich TEG heat exchanger 1", - richGLycolHeaterCondenser.getOutStream()); + richGLycolHeaterCondenser.getOutletStream()); heatEx2.setGuessOutTemperature(273.15 + 62.0); heatEx2.setUAvalue(200.0); @@ -164,7 +164,8 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 7.5); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = + new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -188,7 +189,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() Heater bufferTank = new Heater("TEG buffer tank", stripper.getLiquidOutStream()); bufferTank.setOutTemperature(273.15 + 191.0); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutStream());// stripper.getSolventOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream());// stripper.getSolventOutStream()); hotLeanTEGPump.setOutletPressure(5.0); hotLeanTEGPump.setIsentropicEfficiency(0.6); @@ -199,7 +200,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() Heater coolerhOTteg3 = new Heater("lean TEG cooler", heatEx2.getOutStream(1)); coolerhOTteg3.setOutTemperature(273.15 + 35.41); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(87.2); hotLeanTEGPump2.setIsentropicEfficiency(0.75); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java index 301738bc74..c79f86298a 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java @@ -208,7 +208,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { feedTPsetterToAbsorber.setOutTemperature(absorberFeedGasTemperature, "C"); Stream feedToAbsorber = - new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutStream()); + new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutletStream()); Stream TEGFeed = new Stream("lean TEG to absorber", feedTEG); TEGFeed.setFlowRate(leanTEGFlowRate, "kg/hr"); @@ -240,7 +240,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); HeatExchanger heatEx2 = new HeatExchanger("rich TEG heat exchanger 1", - richGLycolHeaterCondenser.getOutStream()); + richGLycolHeaterCondenser.getOutletStream()); heatEx2.setGuessOutTemperature(273.15 + 62.0); heatEx2.setUAvalue(UAvalueRichTEGHeatExchanger_1); @@ -285,7 +285,8 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + regenerationGasCoolerTemperature); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = + new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -305,7 +306,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater bufferTank = new Heater("TEG buffer tank", stripper.getSolventOutStream()); bufferTank.setOutTemperature(273.15 + bufferTankTemperatureTEG); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutStream());// stripper.getSolventOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream());// stripper.getSolventOutStream()); hotLeanTEGPump.setOutletPressure(hotTEGpumpPressure); hotLeanTEGPump.setIsentropicEfficiency(hotTEGpumpIsentropicEfficiency); @@ -316,7 +317,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater coolerhOTteg3 = new Heater("lean TEG cooler", heatEx2.getOutStream(1)); coolerhOTteg3.setOutTemperature(273.15 + leanTEGTemperature); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(absorberFeedGasPressure); hotLeanTEGPump2.setIsentropicEfficiency(coldTEGpumpIsentropicEfficiency); @@ -416,7 +417,7 @@ public static void main(String[] args) { // neqsim.processSimulation.processSystem.ProcessSystem.open("c:/temp/TEGprocessGFA.neqsim"); double richTEGtemperature = ((Heater) operations.getUnit("rich TEG preheater")) - .getOutStream().getTemperature("C"); + .getOutletStream().getTemperature("C"); System.out.println("temp rich TEG " + richTEGtemperature); System.out.println("condenser duty (KW) " + ((Condenser) ((DistillationColumn) operations.getUnit("TEG regeneration column")) diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java index dab489b8fe..9f45a7ef7a 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java @@ -213,7 +213,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { feedTPsetterToAbsorber.setOutTemperature(absorberFeedGasTemperature, "C"); Stream feedToAbsorber = - new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutStream()); + new Stream("feed to TEG absorber", feedTPsetterToAbsorber.getOutletStream()); Stream TEGFeed = new Stream("lean TEG to absorber", feedTEG); TEGFeed.setFlowRate(leanTEGFlowRate, "kg/hr"); @@ -241,7 +241,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { new Heater("rich TEG preheater", glycol_flash_valve.getOutletStream()); HeatExchanger heatEx2 = new HeatExchanger("rich TEG heat exchanger 1", - richGLycolHeaterCondenser.getOutStream()); + richGLycolHeaterCondenser.getOutletStream()); heatEx2.setGuessOutTemperature(273.15 + 62.0); heatEx2.setUAvalue(UAvalueRichTEGHeatExchanger_1); @@ -290,7 +290,8 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater coolerRegenGas = new Heater("regen gas cooler", column.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + regenerationGasCoolerTemperature); - Separator sepregenGas = new Separator("regen gas separator", coolerRegenGas.getOutStream()); + Separator sepregenGas = + new Separator("regen gas separator", coolerRegenGas.getOutletStream()); Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); @@ -310,7 +311,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater bufferTank = new Heater("TEG buffer tank", stripper.getSolventOutStream()); bufferTank.setOutTemperature(273.15 + bufferTankTemperatureTEG); - Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutStream()); + Pump hotLeanTEGPump = new Pump("hot lean TEG pump", bufferTank.getOutletStream()); hotLeanTEGPump.setOutletPressure(hotTEGpumpPressure); hotLeanTEGPump.setIsentropicEfficiency(hotTEGpumpIsentropicEfficiency); @@ -321,7 +322,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Heater coolerhOTteg3 = new Heater("lean TEG cooler", heatEx2.getOutStream(1)); coolerhOTteg3.setOutTemperature(273.15 + leanTEGTemperature); - Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutStream()); + Pump hotLeanTEGPump2 = new Pump("lean TEG HP pump", coolerhOTteg3.getOutletStream()); hotLeanTEGPump2.setOutletPressure(absorberFeedGasPressure); hotLeanTEGPump2.setIsentropicEfficiency(coldTEGpumpIsentropicEfficiency); diff --git a/src/test/java/neqsim/processSimulation/util/example/TestSeparationTrain.java b/src/test/java/neqsim/processSimulation/util/example/TestSeparationTrain.java index 393fa1b129..5679329fdc 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TestSeparationTrain.java +++ b/src/test/java/neqsim/processSimulation/util/example/TestSeparationTrain.java @@ -49,7 +49,7 @@ public static void main(String args[]) { liquidOutHeater.setOutTemperature(273.15 + 55.0); ThreePhaseSeparator firstStageSeparator = - new ThreePhaseSeparator("1st stage Separator", liquidOutHeater.getOutStream()); + new ThreePhaseSeparator("1st stage Separator", liquidOutHeater.getOutletStream()); ThrottlingValve valve1 = new ThrottlingValve("snohvit valve", firstStageSeparator.getOilOutStream()); @@ -78,7 +78,7 @@ public static void main(String args[]) { thirdSstageCoooler.setOutTemperature(273.15 + 30.0); ThreePhaseSeparator thirdStageScrubber = new ThreePhaseSeparator( - "Third stage gas resirc scrubber", thirdSstageCoooler.getOutStream()); + "Third stage gas resirc scrubber", thirdSstageCoooler.getOutletStream()); secondStageSeparator.addStream(thirdStageScrubber.getOilOutStream()); secondStageSeparator.addStream(thirdStageScrubber.getWaterOutStream()); @@ -97,7 +97,7 @@ public static void main(String args[]) { inletGasCooler.setOutTemperature(273.15 + 30.0); Separator gasInletScrubber = - new Separator("Gas scrubber inlet", inletGasCooler.getOutStream()); + new Separator("Gas scrubber inlet", inletGasCooler.getOutletStream()); Recycle HPliquidRecycle = new Recycle("HPliquidRecycle"); double tolerance = 1e-10; diff --git a/src/test/java/neqsim/processSimulation/util/example/multiThreadTest.java b/src/test/java/neqsim/processSimulation/util/example/multiThreadTest.java index e77bc850b9..5e5d474b9e 100644 --- a/src/test/java/neqsim/processSimulation/util/example/multiThreadTest.java +++ b/src/test/java/neqsim/processSimulation/util/example/multiThreadTest.java @@ -90,7 +90,7 @@ public static void main(String args[]) { Cooler cooler12 = new Cooler("cooler12", comp12.getOutletStream()); cooler12.setOutTemperature(283.15 + 30); - Separator separator3 = new Separator("Separator 122", cooler12.getOutStream()); + Separator separator3 = new Separator("Separator 122", cooler12.getOutletStream()); Recycle resyc = new Recycle("resyc"); resyc.addStream(separator3.getLiquidOutStream()); diff --git a/src/test/java/neqsim/processSimulation/util/example/oxygenRemovalWater.java b/src/test/java/neqsim/processSimulation/util/example/oxygenRemovalWater.java index 7b36101a4b..f1df40d8de 100644 --- a/src/test/java/neqsim/processSimulation/util/example/oxygenRemovalWater.java +++ b/src/test/java/neqsim/processSimulation/util/example/oxygenRemovalWater.java @@ -44,7 +44,7 @@ public static void main(String[] args) { Heater heater1 = new Heater("heater1", separator.getLiquidOutStream()); heater1.setOutTemperature(273.15 + 20); - ThrottlingValve LP_valve = new ThrottlingValve("LPventil", heater1.getOutStream()); + ThrottlingValve LP_valve = new ThrottlingValve("LPventil", heater1.getOutletStream()); LP_valve.setOutletPressure(30.0e-3); neqsim.processSimulation.processSystem.ProcessSystem operations = diff --git a/src/test/java/neqsim/processSimulation/util/example/process2.java b/src/test/java/neqsim/processSimulation/util/example/process2.java index 27e6515778..ca0305a8d6 100644 --- a/src/test/java/neqsim/processSimulation/util/example/process2.java +++ b/src/test/java/neqsim/processSimulation/util/example/process2.java @@ -39,7 +39,7 @@ public static void main(String args[]) { heater.setOutTemperature(310.0); MixerInterface mixer = new StaticMixer("Mixer 1"); - mixer.addStream(heater.getOutStream()); + mixer.addStream(heater.getOutletStream()); StreamInterface stream_3 = mixer.getOutStream(); stream_3.setName("stream3"); diff --git a/src/test/java/neqsim/processSimulation/util/example/propaneCoolingCycle.java b/src/test/java/neqsim/processSimulation/util/example/propaneCoolingCycle.java index b7b295597f..49ec0b1d74 100644 --- a/src/test/java/neqsim/processSimulation/util/example/propaneCoolingCycle.java +++ b/src/test/java/neqsim/processSimulation/util/example/propaneCoolingCycle.java @@ -42,11 +42,11 @@ public static void main(String args[]) { // cooler.setPressureDrop(0.35); cooler.setSpecification("out stream"); - Stream stream_2 = new Stream("stream_2", cooler.getOutStream()); + Stream stream_2 = new Stream("stream_2", cooler.getOutletStream()); stream_2.setSpecification("dewP"); // stream_2.setTemperature(-40.0, "C"); - cooler.setOutStream(stream_2); + cooler.setOutletStream(stream_2); SetPoint setLPpressure = new SetPoint("set", JTvalve, "pressure", stream_2); diff --git a/src/test/java/neqsim/processSimulation/util/example/propaneTwoStageCoolingCycle.java b/src/test/java/neqsim/processSimulation/util/example/propaneTwoStageCoolingCycle.java index 08758261a7..8eacd005af 100644 --- a/src/test/java/neqsim/processSimulation/util/example/propaneTwoStageCoolingCycle.java +++ b/src/test/java/neqsim/processSimulation/util/example/propaneTwoStageCoolingCycle.java @@ -47,10 +47,10 @@ public static void main(String args[]) { // cooler2.setPressureDrop(0.35); cooler2.setSpecification("out stream"); - Stream stream_3 = new Stream("stream_3", cooler2.getOutStream()); + Stream stream_3 = new Stream("stream_3", cooler2.getOutletStream()); stream_3.setSpecification("dewP"); // stream_3.setTemperature(-40.0, "C"); - cooler2.setOutStream(stream_3); + cooler2.setOutletStream(stream_3); StreamInterface lowHStream2 = new Stream("lowHStream2", stream_3); @@ -120,9 +120,9 @@ public static void main(String args[]) { // System.out.println("compressor isentropic ef " + // compressor1.getIsentropicEfficiency()); System.out.println("cooler2 mass flow " - + cooler2.getOutStream().getFluid().getFlowRate("kg/hr") + " kg/hr"); + + cooler2.getOutletStream().getFluid().getFlowRate("kg/hr") + " kg/hr"); System.out.println("cooler3 mass flow " - + cooler3.getOutStream().getFluid().getFlowRate("kg/hr") + " kg/hr"); + + cooler3.getOutletStream().getFluid().getFlowRate("kg/hr") + " kg/hr"); System.out.println("delta enthalpy " + (stream_3.getFluid().getEnthalpy() - JTvalve2.getOutletStream().getFluid().getEnthalpy())); diff --git a/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess.java b/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess.java index 32cf9880b0..9b7fe652a3 100644 --- a/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess.java +++ b/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess.java @@ -50,7 +50,7 @@ public static void main(String args[]) { Heater heaterLP = new Heater("heaterLP", LPcompressor.getOutletStream()); heaterLP.setOutTemperature(270.25); - Stream stream_2 = new Stream("cooled gas", heaterLP.getOutStream()); + Stream stream_2 = new Stream("cooled gas", heaterLP.getOutletStream()); GasScrubberSimple gasScrubber = new GasScrubberSimple("Scrubber", stream_2); diff --git a/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess2.java b/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess2.java index 595a0edba0..b0584b57ec 100644 --- a/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess2.java +++ b/src/test/java/neqsim/processSimulation/util/example/simpleTopSideProcess2.java @@ -40,7 +40,7 @@ public static void main(String args[]) { Heater cooler1 = new Heater("cooler1", stream_gasFromSep); cooler1.setOutTemperature(285.25); - Separator scrubber = new Separator("Scrubber 1", cooler1.getOutStream()); + Separator scrubber = new Separator("Scrubber 1", cooler1.getOutletStream()); Recycle recyleOp = new Recycle("resyc"); recyleOp.addStream(scrubber.getLiquidOutStream());