Skip to content

Commit

Permalink
fix: flow rate adjuster phases (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sviatose authored Jul 15, 2024
1 parent b30c815 commit 59c7b10
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ public void run(UUID id) {
logger.error(ex.getMessage(), ex);
}

SystemInterface gasFluid = adjustedFluid.phaseToSystem("gas").clone();
SystemInterface oilFluid = adjustedFluid.phaseToSystem("oil").clone();
SystemInterface gasFluid = adjustedFluid.phaseToSystem(0).clone();
SystemInterface oilFluid = adjustedFluid.phaseToSystem(1).clone();

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

if (desiredWaterFlow > 0.0){
SystemInterface waterFluid = adjustedFluid.phaseToSystem("aqueous").clone();
SystemInterface waterFluid = adjustedFluid.phaseToSystem(2).clone();
waterFluid.initPhysicalProperties();
waterDensity = waterFluid.getDensity("kg/m3");

Expand Down

0 comments on commit 59c7b10

Please sign in to comment.