In this paper, we present an application of the homogenization method to the analysis of Resin Transfer Molding (RTM) and Structural Reaction Injection Molding (SRIM). RTM and SRIM are relatively new molding processes for manufacturing continuous fiber reinforced polymer composites. First, the mold flow is analyzed. In the molding process, the resin experiences significant temperature changes as it fills the mold and forms a free boundary with air as it pushes out the air. In addition, the flow domain is the mold cavity packed with fiber perform, which is a porous medium. Here, the homogenization method is used to model the non-isothermal flow through porous media with free boundaries. A computer program is developed which is capable of simulating a three-dimensional mold flow using the finite element approximation. An example is provided for a three-dimensional part. Then, an analysis of the residual stress developed in the curing stage is given. The curing stage starts when the mold is completely filled...