Okay, I've done some more research and found the answer to my original question (it was on wikipedia all the time, I just missed it). The function is:
v = sqrt(g/r) * tanh(t*sqrt(g*r)), where r is a constant that depends on various factors that don't matter at this stage. This is easily...