Analysis of two phase flow in foam material flow field