Skip to content

Commit

Permalink
add water production report
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Jul 15, 2023
1 parent 5b9abfb commit 537ad12
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,29 @@ public double getOilProdution(String unit) {
return volume;
}

/**
* <p>
* getWaterProdution.
* </p>
*
* @param unit a {@link java.lang.String} object
* @return a double
*/
public double getWaterProdution(String unit) {
double volume = 0.0;
for (int i = 0; i < gasProducer.size(); i++) {
volume += gasProducer.get(i).getStdWaterProduction();
}
for (int i = 0; i < oilProducer.size(); i++) {
volume += oilProducer.get(i).getStdWaterProduction();
}
if (unit.equals("Sm3/sec")) {
} else if (unit.equals("Sm3/day")) {
volume = volume * 60.0 * 60 * 24;
}
return volume;
}

/** {@inheritDoc} */
@Override
public void runTransient(double dt, UUID id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,24 @@ public double getStdOilProduction() {
}
return volume;
}

/**
* <p>
* getStdWaterProduction.
* </p>
*
* @return a double
*/
public double getStdWaterProduction() {
SystemInterface locStream = (stream.getFluid()).clone();
locStream.setTemperature(288.15);
locStream.setPressure(1.01325);
ThermodynamicOperations ops = new ThermodynamicOperations(locStream);
ops.TPflash();
double volume = Double.NaN;
if (locStream.hasPhaseType("aqueous")) {
volume = locStream.getPhase("aqueous").getVolume("m3");
}
return volume;
}
}

0 comments on commit 537ad12

Please sign in to comment.