Study for Permanent Mold Design Technology and Porosity Defect Prediction Method by Multi-Phase Flow Numerical Simulations