A computer simulation of rigid polyurethane foam formation