Enviar por SMS: Optimal design of curved and bifurcated flow pipes