Self-driving systems for internal flows of materials