@@ -18,17 +18,6 @@ public class TwoPhaseSeparator extends Separator {
18
18
/** Serialization version UID. */
19
19
private static final long serialVersionUID = 1000 ;
20
20
21
- SystemInterface thermoSystem ;
22
-
23
- SystemInterface gasSystem ;
24
- SystemInterface waterSystem ;
25
- SystemInterface liquidSystem ;
26
- SystemInterface thermoSystemCloned ;
27
-
28
- StreamInterface inletStream ;
29
- StreamInterface gasOutStream ;
30
- StreamInterface liquidOutStream ;
31
-
32
21
/**
33
22
* Constructor for TwoPhaseSeparator.
34
23
*
@@ -43,68 +32,12 @@ public TwoPhaseSeparator(String name) {
43
32
* Constructor for TwoPhaseSeparator.
44
33
* </p>
45
34
*
46
- * @param name a {@link java.lang.String} object
47
- * @param inletStream a {@link neqsim.process.equipment.stream.StreamInterface} object
35
+ * @param name a {@link java.lang.String} object
36
+ * @param inletStream a {@link neqsim.process.equipment.stream.StreamInterface}
37
+ * object
48
38
*/
49
39
public TwoPhaseSeparator (String name , StreamInterface inletStream ) {
50
40
super (name , inletStream );
51
41
}
52
42
53
- /** {@inheritDoc} */
54
- @ Override
55
- public void setInletStream (StreamInterface inletStream ) {
56
- this .inletStream = inletStream ;
57
-
58
- thermoSystem = inletStream .getThermoSystem ().clone ();
59
- gasSystem = thermoSystem .phaseToSystem (thermoSystem .getPhases ()[0 ]);
60
- gasOutStream = new Stream ("gasOutStream" , gasSystem );
61
-
62
- thermoSystem = inletStream .getThermoSystem ().clone ();
63
- liquidSystem = thermoSystem .phaseToSystem (thermoSystem .getPhases ()[1 ]);
64
- liquidOutStream = new Stream ("liquidOutStream" , liquidSystem );
65
- }
66
-
67
- /** {@inheritDoc} */
68
- @ Override
69
- public StreamInterface getLiquidOutStream () {
70
- return liquidOutStream ;
71
- }
72
-
73
- /** {@inheritDoc} */
74
- @ Override
75
- public StreamInterface getGasOutStream () {
76
- return gasOutStream ;
77
- }
78
-
79
- /** {@inheritDoc} */
80
- @ Override
81
- public StreamInterface getGas () {
82
- return getGasOutStream ();
83
- }
84
-
85
- /** {@inheritDoc} */
86
- @ Override
87
- public StreamInterface getLiquid () {
88
- return getLiquidOutStream ();
89
- }
90
-
91
- /** {@inheritDoc} */
92
- @ Override
93
- public void run (UUID id ) {
94
- thermoSystem = inletStream .getThermoSystem ().clone ();
95
- gasSystem = thermoSystem .phaseToSystem (thermoSystem .getPhases ()[0 ]);
96
- gasSystem .setNumberOfPhases (1 );
97
- gasOutStream .setThermoSystem (gasSystem );
98
-
99
- thermoSystem = inletStream .getThermoSystem ().clone ();
100
- liquidSystem = thermoSystem .phaseToSystem (thermoSystem .getPhases ()[1 ]);
101
- liquidSystem .setNumberOfPhases (1 );
102
- liquidOutStream .setThermoSystem (liquidSystem );
103
- setCalculationIdentifier (id );
104
- }
105
-
106
- /** {@inheritDoc} */
107
- @ Override
108
- @ ExcludeFromJacocoGeneratedReport
109
- public void displayResult () {}
110
43
}
0 commit comments