Solutions of an inverse laminar natural convection problem by subdomain and Galerkin methods