Bound fillage calculations to 0-100%

This commit is contained in:
Patrick McDonagh
2017-04-06 12:08:53 -05:00
parent f63826b9b5
commit 80784376e0
3 changed files with 168 additions and 63 deletions

View File

@@ -366,9 +366,15 @@ public class Card {
if (fillageEstimated > 100)
fillageEstimated = 100.0;
if (fillageEstimated < 0.0)
fillageEstimated = 0.0;
if (fillageCalculated > 100)
fillageCalculated = 100.0;
if (fillageCalculated < 0.0)
fillageCalculated = 0.0;
fluidLoad = downholeLoadSpan - frictionEstimate;
pumpIntakePressure = fluidGradient * rodDepth - (fluidLoad / pumpArea);
//printf("PIP = %f * %f - (%f / %f) = %f\n", fluidGradient, rodDepth, fluidLoad, pumpArea, pumpIntakePressure);