adding functionality to compute flowrate in/out of elements