Thermoelastic and thermoplastic response of a double‐layer porous space containing a decaying heat source