Morphodynamics of flow through the heart