The Sun: dynamics and topology in the upper convection layer