14
14
public class SeparatorResponse {
15
15
public String name ;
16
16
public Double gasLoadFactor ;
17
- public Double massflow ;
18
- public FluidResponse gasFluid , liquidFluid , oilFluid , waterFluid ;
17
+ public StreamResponse feed , gas , liquid , oil , water ;
19
18
20
19
/**
21
20
* <p>
@@ -27,17 +26,19 @@ public class SeparatorResponse {
27
26
*/
28
27
public SeparatorResponse (ThreePhaseSeparator inputSeparator ) {
29
28
name = inputSeparator .getName ();
30
- massflow = inputSeparator .getFluid ().getFlowRate ("kg/hr" );
31
29
gasLoadFactor = inputSeparator .getGasLoadFactor ();
30
+
31
+ feed = new StreamResponse (inputSeparator .getFeedStream ());
32
32
if (inputSeparator .getThermoSystem ().hasPhaseType ("aqueous" )) {
33
- waterFluid = new FluidResponse (inputSeparator .getWaterOutStream (). getFluid ());
33
+ water = new StreamResponse (inputSeparator .getWaterOutStream ());
34
34
}
35
35
if (inputSeparator .getThermoSystem ().hasPhaseType ("oil" )) {
36
- oilFluid = new FluidResponse (inputSeparator .getOilOutStream (). getFluid ());
36
+ oil = new StreamResponse (inputSeparator .getOilOutStream ());
37
37
}
38
38
if (inputSeparator .getThermoSystem ().hasPhaseType ("gas" )) {
39
- gasFluid = new FluidResponse (inputSeparator .getGasOutStream (). getFluid ());
39
+ gas = new StreamResponse (inputSeparator .getGasOutStream ());
40
40
}
41
+
41
42
}
42
43
43
44
/**
@@ -50,20 +51,15 @@ public SeparatorResponse(ThreePhaseSeparator inputSeparator) {
50
51
*/
51
52
public SeparatorResponse (Separator inputSeparator ) {
52
53
name = inputSeparator .getName ();
53
- massflow = inputSeparator .getFluid ().getFlowRate ("kg/hr" );
54
54
gasLoadFactor = inputSeparator .getGasLoadFactor ();
55
- if (inputSeparator .getThermoSystem (). hasPhaseType ( "aqueous" )) {
56
- waterFluid = new FluidResponse (inputSeparator .getThermoSystem ().phaseToSystem ("aqueous" ));
57
- }
58
- if ( inputSeparator .getThermoSystem ().hasPhaseType ("oil" )) {
59
- oilFluid = new FluidResponse (inputSeparator .getThermoSystem (). phaseToSystem ( "oil" ));
55
+ feed = new StreamResponse (inputSeparator .getFeedStream ());
56
+ if (inputSeparator .getThermoSystem ().hasPhaseType ("aqueous" )
57
+ || inputSeparator . getThermoSystem (). hasPhaseType ( "liquid" )
58
+ || inputSeparator .getThermoSystem ().hasPhaseType ("oil" )) {
59
+ liquid = new StreamResponse (inputSeparator .getLiquidOutStream ( ));
60
60
}
61
61
if (inputSeparator .getThermoSystem ().hasPhaseType ("gas" )) {
62
- gasFluid = new FluidResponse (inputSeparator .getGasOutStream ().getFluid ());
63
- }
64
- if (inputSeparator .getThermoSystem ().hasPhaseType ("oil" )
65
- || inputSeparator .getThermoSystem ().hasPhaseType ("aqueous" )) {
66
- liquidFluid = new FluidResponse (inputSeparator .getLiquidOutStream ().getFluid ());
62
+ gas = new StreamResponse (inputSeparator .getGasOutStream ());
67
63
}
68
64
}
69
65
}
0 commit comments