How do I get an emissive material to follow the pipes? (To show where the fuel of the pipes flow)

The title says it all. Is there a way to do this? Here are the meshes that I want to do it on. I guess the biggest problem is making the “animation” turn in the corners.