Device for the production of cellular materials