Two phase flow approach in unsteady cavitation modeling