Finite element solution for advection and natural convection flows