| | |
| | | { |
| | | public class PDEVCalcService |
| | | { |
| | | public static double GetMergePDEV(string connectionString, string modelId, double porosity, double sw, double speed) |
| | | public static double GetMergePDEV(string modelId, double porosity, double sw, double speed, double depth) |
| | | { |
| | | var farC = COMergeCalcService.GetFarMergeCResult(connectionString, modelId, porosity); |
| | | var farO = COMergeCalcService.GetFarMergeOResult(connectionString, modelId, porosity); |
| | | var farPDEV = CalcPDEV(farC, farO); |
| | | var farResult = COMergeCalcService.GetFarMergeCOResult(modelId, porosity, sw, speed, depth); |
| | | var farPDEV = CalcPDEV(farResult.Item1, farResult.Item2); |
| | | |
| | | var nearC = COMergeCalcService.GetNearMergeCResult(connectionString, modelId, porosity); |
| | | var nearO = COMergeCalcService.GetNearMergeOResult(connectionString, modelId, porosity); |
| | | var nearPDEV = CalcPDEV(nearC, nearO); |
| | | var nearResult = COMergeCalcService.GetNearMergeCOResult(modelId, porosity, sw, speed, depth); |
| | | var nearPDEV = CalcPDEV(nearResult.Item1, nearResult.Item2); |
| | | |
| | | return nearPDEV * 0.65 + farPDEV * 0.35; |
| | | } |