Thermal mass flow meter working principle