Simulation of mold filling and prediction of gas entrapment on practical high pressure die castings