Allen-Cahn & Cahn-Hilliard dissipative dynamics in consolidating porous media