Formation-Grain-Size Prediction Whilst Drilling: A Key Factor in Intelligent Sand Control Completions