Efficient three-dimensional FEM based algorithm for the solution of convection in partly porous domains