Study of imbibition in various geometries using phase field method