Gravitational effects on flames spreading over thick solid surfaces