251 heat generation in a slab when there is heat generation in the body the term q in the general equation is nonzero for one dimensional problem such a slab the conduction equation is q dx d t k 2 2 6 figure 3 temperature distribution in a slab with heat generation.