Fiber orientation in simple injection moldings. Part I: Theory and numerical methods