diff --git a/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java b/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java index 1c049eec2..c64241c63 100644 --- a/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java +++ b/src/main/java/neqsim/processSimulation/processSystem/processModules/PropaneCoolingModule.java @@ -20,7 +20,9 @@ */ public class PropaneCoolingModule extends ProcessModuleBaseClass { /** - *

Constructor for PropaneCoolingModule.

+ *

+ * Constructor for PropaneCoolingModule. + *

* * @param name a {@link java.lang.String} object */ @@ -82,11 +84,11 @@ public StreamInterface getOutputStream(String streamName) { /** {@inheritDoc} */ @Override public void initializeModule() { - UUID id = UUID.randomUUID(); isInitializedModule = true; refrigerantStream.getThermoSystem().setTemperature(condenserTemperature); ((Stream) refrigerantStream).setSpecification("bubT"); + UUID id = UUID.randomUUID(); refrigerantStream.run(id); ThrottlingValve JTvalve = new ThrottlingValve("JTvalve", refrigerantStream); diff --git a/src/test/java/neqsim/processSimulation/measurementDevice/WellAllocatorTest.java b/src/test/java/neqsim/processSimulation/measurementDevice/WellAllocatorTest.java index 52109e29c..c5571daaf 100644 --- a/src/test/java/neqsim/processSimulation/measurementDevice/WellAllocatorTest.java +++ b/src/test/java/neqsim/processSimulation/measurementDevice/WellAllocatorTest.java @@ -61,7 +61,6 @@ void testGetMeasuredValueString() { sep1.addStream(stream_2); Stream stream_gasExp = new Stream("gasexp", sep1.getGasOutStream()); - Stream stream_oilExp = new Stream("oilexp", sep1.getLiquidOutStream()); WellAllocator wellAlloc = new WellAllocator("alloc", stream_1); diff --git a/src/test/java/neqsim/processSimulation/mechanicalDesign/SystemMechanicalDesignTest.java b/src/test/java/neqsim/processSimulation/mechanicalDesign/SystemMechanicalDesignTest.java index 2f032a705..9836650e2 100644 --- a/src/test/java/neqsim/processSimulation/mechanicalDesign/SystemMechanicalDesignTest.java +++ b/src/test/java/neqsim/processSimulation/mechanicalDesign/SystemMechanicalDesignTest.java @@ -78,8 +78,7 @@ static void createProcess() { ThrottlingValve valve2 = new ThrottlingValve("valve2", seprator2ndStage.getLiquidOutStream()); valve2.setOutletPressure(2.7); - StreamInterface recircstream1 = valve2.getOutletStream().clone(); - recircstream1.setName("oilRecirc1"); + StreamInterface recircstream1 = valve2.getOutletStream().clone("oilRecirc1"); recircstream1.setFlowRate(1e-6, "kg/hr"); neqsim.processSimulation.processEquipment.separator.ThreePhaseSeparator seprator3rdStage = diff --git a/src/test/java/neqsim/processSimulation/processEquipment/heatExchanger/HeatExchangerTest.java b/src/test/java/neqsim/processSimulation/processEquipment/heatExchanger/HeatExchangerTest.java index 0ced54fca..ee52fde75 100644 --- a/src/test/java/neqsim/processSimulation/processEquipment/heatExchanger/HeatExchangerTest.java +++ b/src/test/java/neqsim/processSimulation/processEquipment/heatExchanger/HeatExchangerTest.java @@ -50,7 +50,6 @@ void testRun1() { heatEx.setUAvalue(1000); Separator sep = new Separator("sep", stream_Hot); - Stream oilOutStream = new Stream("oilOutStream", sep.getLiquidOutStream()); ThrottlingValve valv1 = new ThrottlingValve("valv1", oilOutStream); diff --git a/src/test/java/neqsim/processSimulation/processEquipment/util/GORfitterTest.java b/src/test/java/neqsim/processSimulation/processEquipment/util/GORfitterTest.java index fa38395e7..763625c99 100644 --- a/src/test/java/neqsim/processSimulation/processEquipment/util/GORfitterTest.java +++ b/src/test/java/neqsim/processSimulation/processEquipment/util/GORfitterTest.java @@ -64,26 +64,28 @@ void testMain() { // mimic MPM double gor_sm3gas_sm3oil = stream_2.getFluid().getPhase("gas").getFlowRate("Sm3/hr") - / stream_2.getFluid().getPhase("oil").getFlowRate("Sm3/hr"); + / stream_2.getFluid().getPhase("oil").getFlowRate("Sm3/hr"); double gor_sm3gas_sm3oil_corrected = stream_2.getFluid().getPhase("gas").getCorrectedVolume() / stream_2.getFluid().getPhase("oil").getCorrectedVolume(); - System.out.println("Stream 2 (results outside MPM) " + " GOR sm3/sm3 " + gor_sm3gas_sm3oil + " GOR Corrected by volume " - + gor_sm3gas_sm3oil_corrected); + System.out.println("Stream 2 (results outside MPM) " + " GOR sm3/sm3 " + gor_sm3gas_sm3oil + + " GOR Corrected by volume " + gor_sm3gas_sm3oil_corrected); System.out.println("Stream 2 (results outside MPM) getPhase(gas).getCorrectedVolume() " + stream_2.getFluid().getPhase("gas").getCorrectedVolume()); System.out.println("Stream 2 (results outside MPM) getPhase(oil).getCorrectedVolume() " + stream_2.getFluid().getPhase("oil").getCorrectedVolume()); - //Assertions.assertEquals(51.3073530232923, multiPhaseMeter.getMeasuredValue("GOR", ""), 1e-12); - // Assertions.assertEquals(3106.7708277963447, multiPhaseMeter.getMeasuredValue("GOR_std", ""), - // 1e-12); + // Assertions.assertEquals(51.3073530232923, multiPhaseMeter.getMeasuredValue("GOR", ""), + // 1e-12); + // Assertions.assertEquals(3106.7708277963447, multiPhaseMeter.getMeasuredValue("GOR_std", ""), + // 1e-12); Assertions.assertEquals(10.099999999999769, multiPhaseMeter2.getMeasuredValue("GOR", ""), 1e-12); Assertions.assertEquals(682.1045749623208, multiPhaseMeter2.getMeasuredValue("GOR_std", ""), - 1e-10); // the value of GOR sm3/sm3 3.48551599242607 is quite far if we take by flow getStandardFlow + 1e-10); // the value of GOR sm3/sm3 3.48551599242607 is quite far if we take by flow + // getStandardFlow Assertions.assertEquals(1000000.0, stream_2.getFlowRate("kg/hr"), 1e-12); } } diff --git a/src/test/java/neqsim/processSimulation/processSystem/CompressorModule.java b/src/test/java/neqsim/processSimulation/processSystem/CompressorModule.java index 0740b0804..f8a5e9dc3 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/CompressorModule.java +++ b/src/test/java/neqsim/processSimulation/processSystem/CompressorModule.java @@ -69,14 +69,14 @@ public void testProcess() { ThrottlingValve valve1 = new ThrottlingValve("valve oil", oilHeater.getOutletStream()); valve1.setOutletPressure(10.0, "bara"); - StreamInterface recycleScrubberStream = new Stream("Recycle stream", feedStream.clone()); + StreamInterface recycleScrubberStream = feedStream.clone("Recycle stream"); recycleScrubberStream.setFlowRate(1.0, "kg/hr"); ThreePhaseSeparator secondStageSeparator = new ThreePhaseSeparator("2nd stage separator", valve1.getOutletStream()); secondStageSeparator.addStream(recycleScrubberStream); - StreamInterface gasRecycleStream = new Stream("gas recycle stream", feedStream.clone()); + StreamInterface gasRecycleStream = feedStream.clone("gas recycle stream"); gasRecycleStream.setFlowRate(1.0, "kg/hr"); Mixer gasmixer = new Mixer("gas recycle mixer"); diff --git a/src/test/java/neqsim/processSimulation/processSystem/GlycolModulesTest.java b/src/test/java/neqsim/processSimulation/processSystem/GlycolModulesTest.java index e92c37321..73cd4ab8b 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/GlycolModulesTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/GlycolModulesTest.java @@ -216,8 +216,7 @@ public void runProcessTEG() throws InterruptedException { strippingGas.setTemperature(185.4402968739743, "C"); strippingGas.setPressure(1.1714901511485545, "bara"); - Stream gasToReboiler = (Stream) (strippingGas).clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 2, true, true); column.addFeedStream(glycol_flash_valve2.getOutStream(), 1); diff --git a/src/test/java/neqsim/processSimulation/processSystem/GlycolRigTest.java b/src/test/java/neqsim/processSimulation/processSystem/GlycolRigTest.java index 36e759ae6..f64537b49 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/GlycolRigTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/GlycolRigTest.java @@ -48,8 +48,7 @@ public void runTEGProcessTest() { strippingGas.setTemperature(55.0, "C"); strippingGas.setPressure(0.2, "barg"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); Stream TEGtoRegenerator = new Stream("\"TEG to regenerator\"", feedTEG); TEGtoRegenerator.setFlowRate(400.0, "kg/hr"); diff --git a/src/test/java/neqsim/processSimulation/processSystem/OilGasProcessTest.java b/src/test/java/neqsim/processSimulation/processSystem/OilGasProcessTest.java index ccc7ab6e4..46090e4c2 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/OilGasProcessTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/OilGasProcessTest.java @@ -75,8 +75,7 @@ public void runProcess() throws InterruptedException { ThrottlingValve valve2 = new ThrottlingValve("valve2", seprator2ndStage.getLiquidOutStream()); valve2.setOutletPressure(2.7); - StreamInterface recircstream1 = valve2.getOutletStream().clone(); - recircstream1.setName("oilRecirc1"); + StreamInterface recircstream1 = valve2.getOutletStream().clone("oilRecirc1"); recircstream1.setFlowRate(1e-6, "kg/hr"); neqsim.processSimulation.processEquipment.separator.ThreePhaseSeparator seprator3rdStage = @@ -148,7 +147,7 @@ public void runAntiSurgeProcess() throws InterruptedException { gas_from_separator.setFlowRate(7.0, "MSm3/day"); gas_from_separator.run(); - Stream recyclegasstream = new Stream("recycle gas stream", gas_from_separator.clone()); + Stream recyclegasstream = gas_from_separator.clone("recycle gas stream"); recyclegasstream.setFlowRate(1e-10, "MSm3/day"); recyclegasstream.run(); @@ -262,7 +261,7 @@ public void runAntiSurgeProcess2() throws InterruptedException { gas_from_separator.setTemperature(30.0, "C"); gas_from_separator.setFlowRate(7.0, "MSm3/day"); - Stream recyclegasstream = new Stream("Recycle gas", gas_from_separator.clone()); + Stream recyclegasstream = gas_from_separator.clone("Recycle gas"); recyclegasstream.setFlowRate(1e-10, "MSm3/day"); Mixer gasmixer = new Mixer("gas mixer"); diff --git a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemRunTransientTest.java b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemRunTransientTest.java index d1169071b..aa2b12957 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemRunTransientTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemRunTransientTest.java @@ -585,7 +585,7 @@ public void testAntiSurgeControl() { valve1.setPercentValveOpening(20); valve1.setCalculateSteadyState(false); - Stream resycstream = new Stream("recycle stream", stream1.clone()); + Stream resycstream = stream1.clone("recycle stream"); resycstream.setFlowRate(0.01, "kg/hr"); Separator separator1 = new Separator("separator_1"); diff --git a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemSerializationTest.java b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemSerializationTest.java index ef882e0b3..28b45f8dd 100644 --- a/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemSerializationTest.java +++ b/src/test/java/neqsim/processSimulation/processSystem/ProcessSystemSerializationTest.java @@ -192,8 +192,7 @@ public void runTEGProcessTest2() { strippingGas.setTemperature(180.0, "C"); strippingGas.setPressure(feedPressureStripGas, "bara"); - Stream gasToReboiler = (Stream) strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true); column.addFeedStream(glycol_flash_valve2.getOutletStream(), 1); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java index 70c81d10b..53526e0d5 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation.java @@ -107,8 +107,7 @@ public static void main(String[] args) { heatEx.setUAvalue(600.0); ThrottlingValve glycol_flash_valve2 = - new ThrottlingValve("LP flash valve", heatEx.getOutStream(0)); - glycol_flash_valve2.setName("Rich TEG LP flash valve"); + new ThrottlingValve("Rich TEG LP flash valve", heatEx.getOutStream(0)); glycol_flash_valve2.setOutletPressure(1.23); neqsim.thermo.system.SystemInterface stripGas = feedGas.clone(); @@ -120,8 +119,7 @@ public static void main(String[] args) { strippingGas.setTemperature(80.0, "C"); strippingGas.setPressure(1.23, "bara"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true); column.addFeedStream(glycol_flash_valve2.getOutletStream(), 0); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java index fafdf7022..4b6d2e72c 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillation3.java @@ -114,8 +114,7 @@ public static void main(String[] args) { strippingGas.setTemperature(80.0, "C"); strippingGas.setPressure(1.23, "bara"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true); column.addFeedStream(richGLycolHeater2.getOutletStream(), 0); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java index 94eb21e99..848f9f978 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationAaHa.java @@ -68,8 +68,8 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() new Stream("water saturated feed gas", saturatedFeedGas.getOutletStream()); HydrateEquilibriumTemperatureAnalyser hydrateTAnalyser = - new HydrateEquilibriumTemperatureAnalyser(waterSaturatedFeedGas); - hydrateTAnalyser.setName("hydrate temperature analyser"); + new HydrateEquilibriumTemperatureAnalyser("hydrate temperature analyser", + waterSaturatedFeedGas); neqsim.thermo.system.SystemInterface feedTEG = feedGas.clone(); feedTEG.setMolarComposition( @@ -97,13 +97,12 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() Stream richTEG = new Stream("rich TEG from absorber", absorber.getSolventOutStream()); /* - * WaterDewPointAnalyser waterDewPointAnalyser = new WaterDewPointAnalyser(dehydratedGas); - * waterDewPointAnalyser.setName("water dew point analyser"); + * WaterDewPointAnalyser waterDewPointAnalyser = new + * WaterDewPointAnalyser("water dew point analyser", dehydratedGas); */ HydrateEquilibriumTemperatureAnalyser waterDewPointAnalyser = - new HydrateEquilibriumTemperatureAnalyser(dehydratedGas); + new HydrateEquilibriumTemperatureAnalyser("water dew point analyser", dehydratedGas); waterDewPointAnalyser.setReferencePressure(70.0); - waterDewPointAnalyser.setName("water dew point analyser"); ThrottlingValve glycol_flash_valve = new ThrottlingValve("Rich TEG HP flash valve", richTEG); glycol_flash_valve.setOutletPressure(5.5); @@ -135,8 +134,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() heatEx.setUAvalue(390.0); ThrottlingValve glycol_flash_valve2 = - new ThrottlingValve("LP flash valve", heatEx.getOutStream(0)); - glycol_flash_valve2.setName("Rich TEG LP flash valve"); + new ThrottlingValve("Rich TEG LP flash valve", heatEx.getOutStream(0)); glycol_flash_valve2.setOutletPressure(1.23); neqsim.thermo.system.SystemInterface stripGas = feedGas.clone(); @@ -148,8 +146,7 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() strippingGas.setTemperature(80.0, "C"); strippingGas.setPressure(1.02, "bara"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true); column.addFeedStream(glycol_flash_valve2.getOutletStream(), 0); @@ -174,8 +171,8 @@ public static neqsim.processSimulation.processSystem.ProcessSystem getProcess() stripper.setNumberOfStages(4); stripper.setStageEfficiency(0.5); /* - * DistillationColumn stripper = new DistillationColumn(3, false, false); - * stripper.setName("TEG stripper"); stripper.addFeedStream(column.getLiquidOutStream(), 2); + * DistillationColumn stripper = new DistillationColumn("TEG stripper",3, false, false); + * stripper.addFeedStream(column.getLiquidOutStream(), 2); * stripper.getTray(0).addStream(strippingGas); */ Recycle recycleGasFromStripper = new Recycle("stripping gas recirc"); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java index f5af4ea55..c3e76e4fb 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationGFA.java @@ -195,8 +195,8 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { new Stream("water saturated feed gas", saturatedFeedGas.getOutletStream()); HydrateEquilibriumTemperatureAnalyser hydrateTAnalyser = - new HydrateEquilibriumTemperatureAnalyser(waterSaturatedFeedGas); - hydrateTAnalyser.setName("hydrate temperature analyser"); + new HydrateEquilibriumTemperatureAnalyser("hydrate temperature analyser", + waterSaturatedFeedGas); neqsim.thermo.system.SystemInterface feedTEG = feedGas.clone(); feedTEG.setMolarComposition( @@ -224,15 +224,13 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Stream richTEG = new Stream("rich TEG from absorber", absorber.getSolventOutStream()); - WaterDewPointAnalyser waterDewPointAnalyser2 = new WaterDewPointAnalyser(dehydratedGas); - waterDewPointAnalyser2.setName("water dew point analyser2"); + WaterDewPointAnalyser waterDewPointAnalyser2 = + new WaterDewPointAnalyser("water dew point analyser2", dehydratedGas); HydrateEquilibriumTemperatureAnalyser waterDewPointAnalyser = - new HydrateEquilibriumTemperatureAnalyser(dehydratedGas); - waterDewPointAnalyser.setName("water dew point analyser"); + new HydrateEquilibriumTemperatureAnalyser("water dew point analyser", dehydratedGas); - ThrottlingValve glycol_flash_valve = new ThrottlingValve("Flash valve", richTEG); - glycol_flash_valve.setName("Rich TEG HP flash valve"); + ThrottlingValve glycol_flash_valve = new ThrottlingValve("Rich TEG HP flash valve", richTEG); glycol_flash_valve.setOutletPressure(flashDrumPressure); Heater richGLycolHeaterCondenser = @@ -257,8 +255,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { heatEx.setUAvalue(UAvalueRichTEGHeatExchanger_2); ThrottlingValve glycol_flash_valve2 = - new ThrottlingValve("LP flash valve", heatEx.getOutStream(0)); - glycol_flash_valve2.setName("Rich TEG LP flash valve"); + new ThrottlingValve("Rich TEG LP flash valve", heatEx.getOutStream(0)); glycol_flash_valve2.setOutletPressure(reboilerPressure); neqsim.thermo.system.SystemInterface stripGas = feedGas.clone(); @@ -268,8 +265,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { strippingGas.setTemperature(strippingGasFeedTemperature, "C"); strippingGas.setPressure(reboilerPressure, "bara"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 3, true, true); column.addFeedStream(glycol_flash_valve2.getOutletStream(), 1); @@ -286,7 +282,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Stream gasToFlare = new Stream("gas to flare", sepregenGas.getGasOutStream()); - Stream liquidToTrreatment = new Stream("water to treatment", sepregenGas.getLiquidOutStream()); + Stream liquidToTreatment = new Stream("water to treatment", sepregenGas.getLiquidOutStream()); WaterStripperColumn stripper = new WaterStripperColumn("TEG stripper"); stripper.addSolventInStream(column.getLiquidOutStream()); @@ -334,7 +330,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { makeupCalculator.addInputVariable(dehydratedGas); makeupCalculator.addInputVariable(flashGas); makeupCalculator.addInputVariable(gasToFlare); - makeupCalculator.addInputVariable(liquidToTrreatment); + makeupCalculator.addInputVariable(liquidToTreatment); makeupCalculator.setOutputVariable(makeupTEG); StaticMixer makeupMixer = new StaticMixer("makeup mixer"); @@ -378,7 +374,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { operations.add(coolerRegenGas); operations.add(sepregenGas); operations.add(gasToFlare); - operations.add(liquidToTrreatment); + operations.add(liquidToTreatment); operations.add(strippingGas); operations.add(stripper); operations.add(recycleGasFromStripper); diff --git a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java index 8dec06fb1..fff5b760c 100644 --- a/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java +++ b/src/test/java/neqsim/processSimulation/util/example/TEGdehydrationProcessDistillationJS.java @@ -200,8 +200,8 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { new Stream("water saturated feed gas", saturatedFeedGas.getOutletStream()); HydrateEquilibriumTemperatureAnalyser hydrateTAnalyser = - new HydrateEquilibriumTemperatureAnalyser(waterSaturatedFeedGas); - hydrateTAnalyser.setName("hydrate temperature analyser"); + new HydrateEquilibriumTemperatureAnalyser("hydrate temperature analyser", + waterSaturatedFeedGas); neqsim.thermo.system.SystemInterface feedTEG = feedGas.clone(); feedTEG.setMolarComposition( @@ -230,10 +230,8 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { Stream richTEG = new Stream("rich TEG from absorber", absorber.getSolventOutStream()); HydrateEquilibriumTemperatureAnalyser waterDewPointAnalyser = - new HydrateEquilibriumTemperatureAnalyser(dehydratedGas); - waterDewPointAnalyser.setName("water dew point analyser"); - ThrottlingValve glycol_flash_valve = new ThrottlingValve("Flash valve", richTEG); - glycol_flash_valve.setName("Rich TEG HP flash valve"); + new HydrateEquilibriumTemperatureAnalyser("water dew point analyser", dehydratedGas); + ThrottlingValve glycol_flash_valve = new ThrottlingValve("Rich TEG HP flash valve", richTEG); glycol_flash_valve.setOutletPressure(flashDrumPressure); Heater richGLycolHeaterCondenser = @@ -263,8 +261,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { heatEx.setUAvalue(UAvalueRichTEGHeatExchanger_2); ThrottlingValve glycol_flash_valve2 = - new ThrottlingValve("LP flash valve", heatEx.getOutStream(0)); - glycol_flash_valve2.setName("Rich TEG LP flash valve"); + new ThrottlingValve("Rich TEG LP flash valve", heatEx.getOutStream(0)); glycol_flash_valve2.setOutletPressure(reboilerPressure); neqsim.thermo.system.SystemInterface stripGas = feedGas.clone(); @@ -274,8 +271,7 @@ public neqsim.processSimulation.processSystem.ProcessSystem getProcess() { strippingGas.setTemperature(strippingGasFeedTemperature, "C"); strippingGas.setPressure(reboilerPressure, "bara"); - Stream gasToReboiler = strippingGas.clone(); - gasToReboiler.setName("gas to reboiler"); + Stream gasToReboiler = strippingGas.clone("gas to reboiler"); DistillationColumn column = new DistillationColumn("TEG regeneration column", 1, true, true); column.addFeedStream(glycol_flash_valve2.getOutletStream(), 0);