Hi,
'
Thanks for your question. I have had a quick look at your code. I
think the issue is that when you look at the flows from ther faces, ones
that are in the east and north direction are positive and the west and
south direction negative. The easiest way to work out the flow from a
grid square is to take the highest absolute value. The better way would
be to work out which flows are leaving a grid square and then work out
total flow out = sqrt (x^2 + y^2) if the flow out was in two
directions. You could potentially also work have arrows with magnitude
of the flow and the direction, if you want a really nice plot.
The face numbers are east (face 1), north (face 2), west (face 3) and south (face 4).
Best wishes,
Steve