A thermo-elastic beam theory via Principle of Virtual Powers