A Treffetz spectral method for incomppressible viscous fluids