Mathematical modeling of radiant heating and cooling by massive thermal slab