Direct numerical simulation of the thermal dehydration reaction in a TGA experiment