Wavelet based simulation of thermal regenerator