Heat conduction with heat generation in slab