Text this: Finite element analysis of rock compaction with capillary effect