Canonical formalism, fundamental equation, and generalized thermomechanics for irreversible fluids with heat transfer.