2024-07-04 11:02:45 +05:00
|
|
|
// using AsbCloudDb.Model;
|
2023-10-20 11:03:14 +05:00
|
|
|
//
|
|
|
|
// namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
|
|
|
|
// {
|
|
|
|
//
|
|
|
|
// public class DetectorSlide : DetectorAbstract
|
|
|
|
// {
|
|
|
|
// public DetectorSlide()
|
|
|
|
// : base(WellOperationCategory.IdSlide) { }
|
|
|
|
//
|
|
|
|
// protected override bool DetectBegin(DetectableTelemetry[] telemetry, int position, DetectedOperation? previousOperation)
|
|
|
|
// {
|
|
|
|
// var point0 = telemetry[position];
|
|
|
|
// var delta = point0.WellDepth - point0.BitDepth;
|
|
|
|
// if (delta > 0.03d)
|
|
|
|
// return false;
|
|
|
|
//
|
|
|
|
// if (point0.Pressure < 25)
|
|
|
|
// return false;
|
|
|
|
//
|
|
|
|
// return true;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// protected override int DetectEnd(DetectableTelemetry[] telemetry, int position, DetectedOperation? previousOperation)
|
|
|
|
// {
|
|
|
|
// var point0 = telemetry[position];
|
|
|
|
// var delta = point0.WellDepth - point0.BitDepth;
|
|
|
|
// if (delta > 0.03d)
|
|
|
|
// return IdReasonOfEnd_DeltaDepthIsHi;
|
|
|
|
//
|
|
|
|
// if (point0.Pressure < 25)
|
|
|
|
// return IdReasonOfEnd_PressureIsLo;
|
|
|
|
//
|
|
|
|
// if (!DeviatesFromBegin(telemetry, t => t.WellDepth, position, 150, 0.003))
|
|
|
|
// return IdReasonOfEnd_WellDepthDeviates;
|
|
|
|
//
|
|
|
|
// return IdReasonOfEnd_NotDetected;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// protected override bool IsValid(DetectableTelemetry[] telemetry, int begin, int end)
|
|
|
|
// => IsValidByWellDepthIncreasing(telemetry, begin, end);
|
|
|
|
//
|
|
|
|
// protected override double CalcValue(DetectableTelemetry[] telemetry, int begin, int end)
|
|
|
|
// => CalcRop(telemetry, begin, end);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
//
|