Text this: Extension of Hamilton’s Principle for the Problem of Thermodiffusion in Solid.