A two-phase model is presented for simulating the post-filling stage of injection molding of amorphous and semicrystalline materials. A finite-element scheme with quadratic shape function for the pressure is proposed. The melt is considered in terms of Hele-Shaw flow for a non-Newtonian fluid using a modified-Cross model with either an Arrhenius-type or WLF-type functional form to describe the viscosity under nonisothermal conditions; the compressible behavior of the polymer is assumed to obey either a double-domain Tait or single domain Spencer-Gilmore equation of state. The interfacial energy balance equation including the latent-heat effect for semicrystalline materials is coupled with the transient energy equation for the solid and melt phases in order to predict the solidified layer and temperature profile. Two well-characterized materials, namely a commercial-grade PP and PS, were used in the present work. Good agreement is obtained between the present simulation and experimental pressure traces from this study and from previous investigation in the literature. The effects of compressibility, viscosity model, and thermal properties upon the predicted pressure field are also considered.