Three dimensional potential flows