Solid thermal storage with PCM materials. Numerical investigations