Algorithm for analysis of peristaltic annular flows