The central axis line of a well or a pipeline with a position vector  at each point of trajectory given as:

{\bf r} = {\bf r}(l)

where

space coordinates with -ccordinate facing down to the Earth Centre

intake pipeline coordinates 

pipeline length from inflow point