Formulation of a consistent pressure-dependent damage model with fracture energy as input