Accurately computes friction in well and checks for stored values on updateTaper

This commit is contained in:
Patrick McDonagh
2017-02-10 14:58:16 -06:00
parent 5b060cf6af
commit a8c3a9d90b
3 changed files with 218 additions and 204 deletions

View File

@@ -23,7 +23,7 @@ public class FluidShot {
FluidShot(double fluidLevel, double fluidGradient, double downholeLoadSpan, double totalDepth, double pumpArea){
this.fluidLevel = fluidLevel;
pumpIntakePressure = fluidLevel / fluidGradient;
pumpIntakePressure = fluidLevel * fluidGradient;
frictionEstimate = downholeLoadSpan - (fluidGradient * totalDepth - pumpIntakePressure) * pumpArea;

View File

@@ -742,6 +742,10 @@ public class Well {
theoreticalMaxFluidLoad = fluidGradient* rodDepthTotal* pumpArea;
frictionEstimate = 0.10 * rodDepthTotal;
double dbFrictionEstimate = db.getLatestFrictionEstimate();
if (dbFrictionEstimate != -1){
frictionEstimate = dbFrictionEstimate;
}
}
private double position(int p)