A model for simulating adaptive, dynamic flows on networks: Application to petroleum infrastructure. (January 2018)