Modeling of smart materials with thermal effects: Dynamic and quasi-static evolution