Laminar flow in a curved pipe with varying curvature