Robert Naini, your Spray Foam Advisor, talks about some of the limitations of spray foam related to heat producing devices and how to handle difficult areas, like around fireplace flues.
By the way, if you have not already done so, subscribe to my blog to keep in touch.