diff --git a/src/main/java/neqsim/fluidmechanics/flownode/FlowNode.java b/src/main/java/neqsim/fluidmechanics/flownode/FlowNode.java index 408fc67aba..887f1a6c42 100644 --- a/src/main/java/neqsim/fluidmechanics/flownode/FlowNode.java +++ b/src/main/java/neqsim/fluidmechanics/flownode/FlowNode.java @@ -16,7 +16,6 @@ import neqsim.fluidmechanics.flownode.fluidboundary.heatmasstransfercalc.FluidBoundaryInterface; import neqsim.fluidmechanics.flownode.fluidboundary.interphasetransportcoefficient.InterphaseTransportCoefficientBaseClass; import neqsim.fluidmechanics.flownode.fluidboundary.interphasetransportcoefficient.InterphaseTransportCoefficientInterface; -import neqsim.fluidmechanics.flownode.twophasenode.TwoPhaseFlowNode; import neqsim.fluidmechanics.geometrydefinitions.GeometryDefinitionInterface; import neqsim.thermo.ThermodynamicConstantsInterface; import neqsim.thermo.system.SystemInterface; diff --git a/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorAlg.java b/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorAlg.java index c4e537a642..e5deb6ac3c 100644 --- a/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorAlg.java +++ b/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorAlg.java @@ -11,7 +11,6 @@ * @version $Id: $Id */ public class EnhancementFactorAlg extends EnhancementFactor { - /** *
* Constructor for EnhancementFactorAlg. diff --git a/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorNumeric.java b/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorNumeric.java index 5cb09b2b0d..ee4aa0886a 100644 --- a/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorNumeric.java +++ b/src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/heatmasstransfercalc/nonequilibriumfluidboundary/filmmodelboundary/reactivefilmmodel/enhancementfactor/EnhancementFactorNumeric.java @@ -13,7 +13,6 @@ * @version $Id: $Id */ public class EnhancementFactorNumeric extends EnhancementFactor { - /** *
* Constructor for EnhancementFactorNumeric. diff --git a/src/main/java/neqsim/fluidmechanics/flowsolver/onephaseflowsolver/onephasepipeflowsolver/OnePhaseFixedStaggeredGrid.java b/src/main/java/neqsim/fluidmechanics/flowsolver/onephaseflowsolver/onephasepipeflowsolver/OnePhaseFixedStaggeredGrid.java index eec636dc03..45a6f2e14b 100644 --- a/src/main/java/neqsim/fluidmechanics/flowsolver/onephaseflowsolver/onephasepipeflowsolver/OnePhaseFixedStaggeredGrid.java +++ b/src/main/java/neqsim/fluidmechanics/flowsolver/onephaseflowsolver/onephasepipeflowsolver/OnePhaseFixedStaggeredGrid.java @@ -9,7 +9,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import Jama.Matrix; -import neqsim.fluidmechanics.flownode.FlowNode; import neqsim.mathlib.generalmath.TDMAsolve; /** diff --git a/src/main/java/neqsim/process/equipment/compressor/Compressor.java b/src/main/java/neqsim/process/equipment/compressor/Compressor.java index 7537fa1ce5..fa7936b407 100644 --- a/src/main/java/neqsim/process/equipment/compressor/Compressor.java +++ b/src/main/java/neqsim/process/equipment/compressor/Compressor.java @@ -357,7 +357,6 @@ public void run(UUID id) { / MW), n / (n - 1.0)); setOutletPressure(pressureRatio * getInletPressure()); - } if (useOutTemperature) diff --git a/src/main/java/neqsim/process/equipment/compressor/CompressorChartAlternativeMapLookupExtrapolate.java b/src/main/java/neqsim/process/equipment/compressor/CompressorChartAlternativeMapLookupExtrapolate.java index 58271bb7b4..8edefe0f2e 100644 --- a/src/main/java/neqsim/process/equipment/compressor/CompressorChartAlternativeMapLookupExtrapolate.java +++ b/src/main/java/neqsim/process/equipment/compressor/CompressorChartAlternativeMapLookupExtrapolate.java @@ -20,16 +20,17 @@ public class CompressorChartAlternativeMapLookupExtrapolate /** Logger object for class. */ static Logger logger = LogManager.getLogger(CompressorChartAlternativeMapLookupExtrapolate.class); - /** * {@inheritDoc} * + *
* Retrieves the closest reference speeds to the given speed from the compressor chart values. The * method returns a list containing one or two speeds: - If the given speed matches a reference * speed, the list contains only that speed. - If the given speed is between two reference speeds, * the list contains both speeds. - If the given speed is less than the lowest reference speed, * the list contains the lowest reference speed. - If the given speed is greater than the highest * reference speed, the list contains the highest reference speed. + *
*/ @Override public ArrayList- * ProcessModel class. + * ProcessModel class. Manages a collection of processes that can be run in steps or continuously. *
- * - * Manages a collection of processes that can be run in steps or continuously. - * - * */ public class ProcessModel implements Runnable { - /** Logger object for class. */ static Logger logger = LogManager.getLogger(ProcessModel.class); private Map
* test run with energy stream input.
diff --git a/src/test/java/neqsim/process/equipment/heatexchanger/MultiStreamHeatExchangerTest.java b/src/test/java/neqsim/process/equipment/heatexchanger/MultiStreamHeatExchangerTest.java
index 98bcc58a02..1e1274d36f 100644
--- a/src/test/java/neqsim/process/equipment/heatexchanger/MultiStreamHeatExchangerTest.java
+++ b/src/test/java/neqsim/process/equipment/heatexchanger/MultiStreamHeatExchangerTest.java
@@ -72,12 +72,10 @@ void testRun1() {
assertEquals(97.992627692, heatEx.getOutStream(2).getTemperature("C"), 1e-3);
assertEquals(69.477801, heatEx.getOutStream(0).getTemperature("C"), 1e-3);
assertEquals(1000, heatEx.getUAvalue(), 0.1);
-
}
@Test
void testRun2() {
-
neqsim.process.processmodel.ProcessSystem operations =
new neqsim.process.processmodel.ProcessSystem();
@@ -160,7 +158,5 @@ void testRun2() {
assertEquals(-26.931795168, separator2.getFluid().getTemperature("C"), 1e-3);
assertEquals(17.37650429489, heatEx.getOutStream(1).getTemperature("C"), 1e-3);
-
}
-
}
diff --git a/src/test/java/neqsim/process/equipment/pump/PumpChartTest.java b/src/test/java/neqsim/process/equipment/pump/PumpChartTest.java
index d65a42db91..c201e97eb8 100644
--- a/src/test/java/neqsim/process/equipment/pump/PumpChartTest.java
+++ b/src/test/java/neqsim/process/equipment/pump/PumpChartTest.java
@@ -2,7 +2,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
-import neqsim.process.equipment.pump.PumpChart;
public class PumpChartTest {
@Test
diff --git a/src/test/java/neqsim/process/equipment/pump/PumpTest.java b/src/test/java/neqsim/process/equipment/pump/PumpTest.java
index 4f538aabff..8904d3926c 100644
--- a/src/test/java/neqsim/process/equipment/pump/PumpTest.java
+++ b/src/test/java/neqsim/process/equipment/pump/PumpTest.java
@@ -2,7 +2,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
-import neqsim.process.equipment.pump.Pump;
import neqsim.process.equipment.stream.Stream;
/**
diff --git a/src/test/java/neqsim/process/equipment/separator/SeparatorTest.java b/src/test/java/neqsim/process/equipment/separator/SeparatorTest.java
index 175f23fd8f..56b326523b 100644
--- a/src/test/java/neqsim/process/equipment/separator/SeparatorTest.java
+++ b/src/test/java/neqsim/process/equipment/separator/SeparatorTest.java
@@ -89,7 +89,6 @@ public void testSimpleSeparator() {
fluid1.setTemperature(55.0, "C");
fluid1.setPressure(55.0, "bara");
-
Stream feedStream = new Stream("feed fluid", fluid1);
Separator separator1 = new Separator("sep1", feedStream);
@@ -98,13 +97,10 @@ public void testSimpleSeparator() {
processOps.add(separator1);
processOps.run();
-
Assertions.assertEquals(0.06976026260, feedStream.getFluid().getPhase(PhaseType.OIL).getBeta(),
1e-5);
Assertions.assertEquals(0.06976026260, separator1.getFluid().getPhase(PhaseType.OIL).getBeta(),
1e-5);
-
-
}
}
diff --git a/src/test/java/neqsim/process/equipment/stream/StreamTest.java b/src/test/java/neqsim/process/equipment/stream/StreamTest.java
index 2581763165..222e978e42 100644
--- a/src/test/java/neqsim/process/equipment/stream/StreamTest.java
+++ b/src/test/java/neqsim/process/equipment/stream/StreamTest.java
@@ -6,7 +6,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import neqsim.process.equipment.stream.Stream;
import neqsim.process.processmodel.ProcessSystem;
import neqsim.thermo.system.SystemSrkEos;
diff --git a/src/test/java/neqsim/process/equipment/stream/VirtualStreamTest.java b/src/test/java/neqsim/process/equipment/stream/VirtualStreamTest.java
index 588640caeb..2b672ec894 100644
--- a/src/test/java/neqsim/process/equipment/stream/VirtualStreamTest.java
+++ b/src/test/java/neqsim/process/equipment/stream/VirtualStreamTest.java
@@ -3,8 +3,6 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import neqsim.process.equipment.stream.Stream;
-import neqsim.process.equipment.stream.VirtualStream;
import neqsim.process.processmodel.ProcessSystem;
import neqsim.thermo.system.SystemSrkEos;
diff --git a/src/test/java/neqsim/process/equipment/util/FlowSetterTest.java b/src/test/java/neqsim/process/equipment/util/FlowSetterTest.java
index 16d4ca8cb8..427efc734d 100644
--- a/src/test/java/neqsim/process/equipment/util/FlowSetterTest.java
+++ b/src/test/java/neqsim/process/equipment/util/FlowSetterTest.java
@@ -5,7 +5,6 @@
import neqsim.process.equipment.separator.ThreePhaseSeparator;
import neqsim.process.equipment.stream.Stream;
import neqsim.process.equipment.stream.StreamInterface;
-import neqsim.process.equipment.util.FlowSetter;
import neqsim.process.measurementdevice.MultiPhaseMeter;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
diff --git a/src/test/java/neqsim/process/equipment/util/GORfitterTest.java b/src/test/java/neqsim/process/equipment/util/GORfitterTest.java
index d031146228..18db7cadce 100644
--- a/src/test/java/neqsim/process/equipment/util/GORfitterTest.java
+++ b/src/test/java/neqsim/process/equipment/util/GORfitterTest.java
@@ -3,7 +3,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import neqsim.process.equipment.stream.Stream;
-import neqsim.process.equipment.util.GORfitter;
import neqsim.process.measurementdevice.MultiPhaseMeter;
import neqsim.thermo.ThermodynamicConstantsInterface;
import neqsim.thermo.system.SystemInterface;
diff --git a/src/test/java/neqsim/process/equipment/util/MPFMfitterTest.java b/src/test/java/neqsim/process/equipment/util/MPFMfitterTest.java
index f6345d7191..0a49f91858 100644
--- a/src/test/java/neqsim/process/equipment/util/MPFMfitterTest.java
+++ b/src/test/java/neqsim/process/equipment/util/MPFMfitterTest.java
@@ -3,7 +3,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import neqsim.process.equipment.stream.Stream;
-import neqsim.process.equipment.util.MPFMfitter;
import neqsim.process.measurementdevice.MultiPhaseMeter;
import neqsim.thermo.ThermodynamicConstantsInterface;
import neqsim.thermo.system.SystemInterface;
diff --git a/src/test/java/neqsim/process/measurementdevice/pHProbeTest.java b/src/test/java/neqsim/process/measurementdevice/pHProbeTest.java
index 49309d9b09..0704c512ae 100644
--- a/src/test/java/neqsim/process/measurementdevice/pHProbeTest.java
+++ b/src/test/java/neqsim/process/measurementdevice/pHProbeTest.java
@@ -7,7 +7,6 @@
import org.junit.jupiter.api.Test;
import neqsim.process.equipment.stream.Stream;
import neqsim.process.equipment.stream.StreamInterface;
-import neqsim.process.measurementdevice.pHProbe;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPAstatoil;
diff --git a/src/test/java/neqsim/process/processmodel/CombinedModelsTest.java b/src/test/java/neqsim/process/processmodel/CombinedModelsTest.java
index 100dd98bf0..0cdb68e55f 100644
--- a/src/test/java/neqsim/process/processmodel/CombinedModelsTest.java
+++ b/src/test/java/neqsim/process/processmodel/CombinedModelsTest.java
@@ -71,7 +71,6 @@ public ProcessSystem getinletModel() {
};
public ProcessSystem getCompressorProcess(StreamInterface gasFeedStream) {
-
neqsim.process.equipment.compressor.Compressor compressor1 =
new neqsim.process.equipment.compressor.Compressor("Compressor1", gasFeedStream);
compressor1.setPolytropicEfficiency(0.56);
@@ -89,7 +88,6 @@ public ProcessModel getCombinedModel() {
ProcessSystem compressorProcess = getCompressorProcess(
((ThreePhaseSeparator) inletProcess.getUnit("1st stage separator")).getGasOutStream());
-
ProcessModel combinedProcess = new ProcessModel();
combinedProcess.add("feed process", inletProcess);
combinedProcess.add("compressor process", compressorProcess);
@@ -122,7 +120,6 @@ public void testCombinedProcess() {
((Compressor) (fullProcess.get("compressor process")).getUnit("Compressor1"))
.setOutletPressure(100.0, "bara");
-
try {
fullProcess.run();
} catch (Exception ex) {
@@ -133,7 +130,5 @@ public void testCombinedProcess() {
((Compressor) fullProcess.get("compressor process").getUnit("Compressor1"))
.getOutletStream().getTemperature("C"),
0.1);
-
}
-
}
diff --git a/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java b/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java
index ec6cca92ba..f63502093c 100644
--- a/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java
+++ b/src/test/java/neqsim/process/processmodel/CompressorModuleTest.java
@@ -155,11 +155,9 @@ public void testProcess() {
feedStream.setFlowRate(204094, "kg/hr");
operations.run();
-
assertTrue(seccondStageCompressor.isSurge(seccondStageCompressor.getPolytropicFluidHead(),
seccondStageCompressor.getInletStream().getFlowRate("m3/hr")));
-
double pressurespeedclac = seccondStageCompressor.getOutletPressure();
double speedcomp = seccondStageCompressor.getSpeed();
diff --git a/src/test/java/neqsim/process/processmodel/LargeCombinedModelsTest.java b/src/test/java/neqsim/process/processmodel/LargeCombinedModelsTest.java
index 6e09b0a21b..e2664e1c3e 100644
--- a/src/test/java/neqsim/process/processmodel/LargeCombinedModelsTest.java
+++ b/src/test/java/neqsim/process/processmodel/LargeCombinedModelsTest.java
@@ -35,7 +35,6 @@ public class LargeCombinedModelsTest {
ProcessInput inp = new ProcessInput();
public static class ProcessInput {
-
private List
* testtestBubpAcid.
@@ -114,15 +111,13 @@ public void testtestBubpaceticacid() {
assertEquals(0.999088711628, testSystem.getPressure(), 0.001);
assertEquals(817.50556, testSystem.getDensity("kg/m3"), 0.001);
-
double t = 373.0;
double vapp =
Math.exp(50.323 + -5378.2 / t + -4.2030 * Math.log(t) + 3.4697e-6 * Math.pow(t, 2)) / 1e5;
assertEquals(0.9857520491, vapp, 0.001);
- double dens = 1.938 / (0.24225 * (1 + Math.pow(1 - t / 588, 0.24435)));// * 46.025;
-
+ // double dens = 1.938 / (0.24225 * (1 + Math.pow(1 - t / 588, 0.24435)));// * 46.025;
// assertEquals(1002.54762, dens, 0.001);
String scheme = testSystem.getPhase(PhaseType.AQUEOUS).getComponent(0).getAssociationScheme();
diff --git a/src/test/java/neqsim/thermo/util/gerg/GERG2008Test.java b/src/test/java/neqsim/thermo/util/gerg/GERG2008Test.java
index de3c4fb537..896eac018c 100644
--- a/src/test/java/neqsim/thermo/util/gerg/GERG2008Test.java
+++ b/src/test/java/neqsim/thermo/util/gerg/GERG2008Test.java
@@ -8,8 +8,6 @@
import org.netlib.util.doubleW;
import org.netlib.util.intW;
-
-
public class GERG2008Test {
private GERG2008 gerg;
@@ -94,6 +92,5 @@ public void testPropertiesGERG() {
assertTrue(Kappa.val != 0);
assertTrue(A.val != 0);
assertEquals(0.83232372466, Z.val, 1e-5);
-
}
}
diff --git a/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java b/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java
index 2db8b750a3..abd4a7686d 100644
--- a/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java
+++ b/src/test/java/neqsim/thermo/util/readwrite/EclipseFluidReadWriteTest.java
@@ -114,6 +114,5 @@ void testReadFluidR() throws IOException {
testOps.TPflash();
// testSystem.prettyPrint();
// Assertions.assertEquals(0.9270363530, testSystem.getBeta(0), 1e-6);
-
}
}
diff --git a/src/test/java/neqsim/thermodynamicoperations/flashops/TPgradientFlashTest.java b/src/test/java/neqsim/thermodynamicoperations/flashops/TPgradientFlashTest.java
index 06a6a8ed00..9959027f55 100644
--- a/src/test/java/neqsim/thermodynamicoperations/flashops/TPgradientFlashTest.java
+++ b/src/test/java/neqsim/thermodynamicoperations/flashops/TPgradientFlashTest.java
@@ -38,8 +38,7 @@ void testRun() {
@Test
void testGradient() {
-
- double depth = 1000.0;
+ // double depth = 1000.0;
double temperature = 273.15 + 70;
double pressure = 80.0;
@@ -50,7 +49,6 @@ void testGradient() {
testSystem.addComponent("hydrogen", 1.0);
testSystem.addComponent("methane", 8.0);
testSystem.addComponent("propane", 1.0);
-
testSystem.createDatabase(true);
testSystem.setMixingRule(2);
@@ -70,7 +68,5 @@ void testGradient() {
// .println(newSystem.getComponent("hydrogen").getx() + " " + newSystem.getPressure());
}
assertEquals(0.0964169380341, x_h2.get(6), 1e-4);
-
}
-
}