We propose a model to explain lava tube formation by the growth of crust slabs from the levees of a channel toward its center, involving solid surface fragments. The flow dynamics are described with the steady state solution of the Navier-Stokes equation in a rectangular channel, for a Newtonian, homogeneous, isotropic and incompressible fluid. The cooling of a lava flow is described by the mechanism of heat conduction into the atmosphere. The presence of levees is taken into account both in the dynamical and in the thermal model. As long as the flow cools, a solid layer forms at the surface, much thicker near the levees than at the center of the channel. The crust that has formed breaks under the effects of the applied stresses. Solid bloc...