Capturing brittle-to-ductile transitions in porous rocks via meso-scale informed constitutive modelling | Synapse