A model for heat transfer in cohesive cracks