Spray foam insulation or spray polyurethane foam (SPF) is an alternative to traditional building insulation such as fiberglass. A two-component mixture composed of isocyanate and polyol resin comes together at the tip of a gun, and forms an expanding foam that is sprayed onto roof tiles, concrete slabs, into wall cavities, or through holes drilled in into a cavity of a finished wall. http://m.youtube.com/watch?v=ggLAUsiuI_o
Small imperfections in the building envelope (holes, cracks, gaps) not properly sealed will eventually lead to poor building performance or worse, moisture accumulation, allergen/pathogen growth, and very possibly structural failure. The solid nature and sealing capability of closed-cell spray foam, inhibits moisture-driven elements. Two inches of closed-cell spray polyurethane foam insulation will minimize air infiltration, exfiltration, convection, conduction and control solar driven moisture in the building envelope.
There are two main types of spray foam to consider: open-cell and closed-cell. Open-cell spray foam has a lower R-value per inch and because of this, typically a lower price tag. The soft, low-density material is used for interior applications. Its high permeability allows for moisture to pass through, which contributes to bi-directional drying of the assembly, but it may not be ideal for all applications or climates. https://m.youtu.be/ggLAUsiuI_o
Note: The practice of foam insulating the attic has raised eyebrows in the building industry because "standard" roofing techniques call for the attic to be ventilated; however, in a vented attic situation it will become approximately 130 degrees in the summer. There's no reason for an air-conditioning and vent-ductwork to have to work in that type of severe conditions. By applying Icynene right on the underside of the roof deck, the severe temperatures no longer exist in the attic. In short, the attic is now a "conditioned" space of the house that is just as comfortable as any other room in the home. This is called a "Compact Roof", which means you can frame right up against it. The one drawback of using expanded foam on the inside of the roof is that this will cause the temperature of the shingles to rise, but how much is not yet known. And how much damage a rise in temperatures could cause is debatable.
Roof Spray Foam Insulation