Daily Totals storing, with max min average total

This commit is contained in:
Patrick McDonagh
2017-02-03 16:41:42 -06:00
parent 2730d2ee0f
commit 73d376038c
27 changed files with 960 additions and 410 deletions

View File

@@ -48,12 +48,14 @@ public class Card {
private double tubingMovement;
private double strokeSpeed;
private double plungerTravel;
private double dailyProduction;
private double structuralLoading;
private double polishedRodHorsepower;
private double pumpHorsepower;
private double fluidBBLMoved;
private double waterBBLMoved;
private double oilBBLMoved;
private double gasMCFMoved;
private long strokeStartTime;
@@ -138,18 +140,62 @@ public class Card {
return tubingMovement;
}
public double getPlungerTravel() {
return plungerTravel;
}
public double getDailyProduction() {
return dailyProduction;
}
public double getStructuralLoading() {
return structuralLoading;
}
public double getPumpIntakePressure() {
return pumpIntakePressure;
}
public double getFluidLevel() {
return fluidLevel;
}
public double getStrokeSpeed() {
return strokeSpeed;
}
public double getPolishedRodHorsepower() {
return polishedRodHorsepower;
}
public double getPumpHorsepower() {
return pumpHorsepower;
}
public LPPair getSurfaceLoadMax() {
return surfaceLoadMax;
}
public LPPair getSurfaceLoadMin() {
return surfaceLoadMin;
}
public LPPair getDownholeLoadMax() {
return downholeLoadMax;
}
public LPPair getDownholeLoadMin() {
return downholeLoadMin;
}
public double getFluidBBLMoved() {
return fluidBBLMoved;
}
public double getWaterBBLMoved() {
return waterBBLMoved;
}
public double getOilBBLMoved() {
return oilBBLMoved;
}
public double getGasMCFMoved() {
return gasMCFMoved;
}
public int getNumPointsUsed() {
return numPointsUsed;
}
@@ -227,7 +273,8 @@ public class Card {
};
void calcStrokeData(int numSlices, double fluidGradient, double rodDepth, double anchorDepth, double tubingCSA,
double pumpArea, double frictionEstimate, double structuralRating)
double pumpArea, double frictionEstimate, double structuralRating,
double waterBBLRatio, double oilBBLRatio, double gasMCFRatio)
{
calculateSPM();
surfacePositionMax = positionMax(surfacePosition, surfaceLoad, numPointsUsed);
@@ -303,6 +350,11 @@ public class Card {
downholeNetStrokeLength = bottomCorner.getPosition() - downholePositionMin.getPosition();
fillageCalculated = (downholeNetStrokeLength / downholeAdjustedGrossStrokeLength) * 100.0;
fillageEstimated =(downholeNetStrokeLength / downholeGrossStrokeLength) * 100.0;
fluidBBLMoved = downholeNetStrokeLength * pumpArea * 0.00010307;
oilBBLMoved = fluidBBLMoved * oilBBLRatio;
waterBBLMoved = fluidBBLMoved * waterBBLRatio;
gasMCFMoved = fluidBBLMoved * gasMCFRatio;
if (fillageEstimated > 100)
fillageEstimated = 100.0;