When I had the roof leak I dried the foam under the carpet by lifting up the carpet and propping it up with some wooden blocks, I then ran the heaters to blow on the footwells and ran a dehumidifier with the windows closed, I had to run it for 24 hours straight to dry it all up but my carpets...