Multiscale Investigation And Numerical Modeling Of Imbibition, Drainage And Drying Of A Macroporous Medium