Modeling the packing stage in injection molding of thermoplastics