Development of a panel method for the study of three dimensional potential flows for wings, contractions and ducts