| | |
| | | { |
| | | public static ErrorRatioResult GetErrorRatioResult() { return new ErrorRatioResult(); } |
| | | |
| | | private static ErrorRatio GetErrorRatio(string connectionString, string modelID, int porosity) |
| | | private static ErrorRatio GetFirstErrorRatio(string connectionString, string modelID, double porosity, double sw, double speed) |
| | | { |
| | | var coWOLRepository = new COWOLRepository(connectionString); |
| | | var cWolRes = coWOLRepository.GetWOL(modelID, 0); |
| | | var oWolRes = coWOLRepository.GetWOL(modelID, 100); |
| | | |
| | | return new ErrorRatio { }; |
| | | |
| | | var mergePDEV = PDEVCalcService.GetMergePDEV(connectionString, modelID, porosity, speed); |
| | | |
| | | var poroFiledName = $"WLPu" + porosity; |
| | | var property = cWolRes.GetType().GetProperty(poroFiledName); |
| | | |
| | | var errorRatio = mergePDEV / ((double)property.GetValue(cWolRes) - (double)property.GetValue(cWolRes)); |
| | | |
| | | return new ErrorRatio { Pass = 1, ErrorRatioValue = errorRatio, Porosity = porosity }; |
| | | } |
| | | } |
| | | } |