Mathematical analysis for wetting on rough surface