Maximum Recoverable Work for a Rigid Heat Conductor with Memory