Thermal dynamic models using z-transform coefficients: an algorithm to improve the reliability of simulations