Bound fillage calculations to 0-100%
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user