Generation technology for spray foam