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
Closed-cell (aka two-pound foam) is denser than open-cell at about 2 pounds per cubic foot. Its R-Value is between 6-6.5 per inch. As a result, this kind of foam is much more expensive than its counterpart. The reason closed-cell doesn't need a vapor retarder is because it already has one. It's permeance is 0.8 perm, which means it can handle cold climates without the use of an additional board or drywall. Closed-cell uses hydroflurocarbons (HFCs) as part of its makeup. However, this material has been known to have a high global warming effect. If you want a green insulation solution, this is not the material to use. A way to avoid this and still use closed-cell is by installing it alongside fiberglass batts.