Numerical Modeling of Nonlinear Thermodynamics in SMA Wires