Numerical simulation of interfacial flows in micropores