Skip to content

Commit 59c7b10

Browse files
authored
fix: flow rate adjuster phases (#1045)
1 parent b30c815 commit 59c7b10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/neqsim/processSimulation/processEquipment/util/FlowRateAdjuster.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ public void run(UUID id) {
116116
logger.error(ex.getMessage(), ex);
117117
}
118118

119-
SystemInterface gasFluid = adjustedFluid.phaseToSystem("gas").clone();
120-
SystemInterface oilFluid = adjustedFluid.phaseToSystem("oil").clone();
119+
SystemInterface gasFluid = adjustedFluid.phaseToSystem(0).clone();
120+
SystemInterface oilFluid = adjustedFluid.phaseToSystem(1).clone();
121121

122122
double temperature = inStream.getTemperature("C");
123123
double pressure = inStream.getPressure("bara");
124124

125125
if (desiredWaterFlow > 0.0){
126-
SystemInterface waterFluid = adjustedFluid.phaseToSystem("aqueous").clone();
126+
SystemInterface waterFluid = adjustedFluid.phaseToSystem(2).clone();
127127
waterFluid.initPhysicalProperties();
128128
waterDensity = waterFluid.getDensity("kg/m3");
129129

0 commit comments

Comments
 (0)