smooth flow (instead of xy speed)

Also, explain the math and the parameter a bit better.

It's still doing a flow jump after the initial layer, I think.
Needs debugging.