A model for lava flows with two thermal components