read csv files
flow calculation