Spontaneous imbibition in porous media: comparisons between a dynamic pore-network model and a VOF direct numerical simulation model