Classification of the types of instability of vertical flows in geothermal systems