[Math] time equation of acceleration along an arc

geometry

I'm developing a toolpath simulator for a milling machine.
The tool can move around a circular path at a constant speed value (called feedrate, norm of the speed vector). The tool arrives stopped on the circle, has to accelerate along the path, get to speed, maintain speed and brake to a standstill without departing from the cicular path and in a pre-determined angular distance. I use a trapezoidal speed, that means I cut the path in 3 phases: getting to speed with contant acceleration, constant speed then braking with constant deceleration to a stop. For now I'm only considering that acceleration, target speed, radius and arc length are in the right conditions to achieve that 3 parts motions.

The problem with circular motion is the radial acceleration, simply turning at constant "speed" involves an acceleration towards the center. In the case of a variable speed tool with a maximum acceleration admissible, we have to "discount" the radial acceleration from the motion acceleration to avoid exceeding the machine limits. I'm only considering the first phase where we get from zero to target speed.

My exact "open" question is: given the total arc length in radians, the radius, the target feedrate, the maximal admissible acceleration, assuming the arc is long enough to do all 3 phases as described above, I want to create a function that takes an angle in input (a fraction of the arc) and outputs the time at wich the tool will be there if it follows the above-described movement law.

So here is my thinking, I'll split acceleration in radial part $a_r$ and tangent part $a_t$:
$$a = \sqrt{a_r^2+a_t^2}$$
we are on a circle so:
$$a_r = \frac{v^2}R$$
we start at speed zero, and we can integrate the acceleration to get the speed:
$$v = a.t$$
$$a_r = \frac{a^2.t^2}R$$
we get:
$$a = \sqrt{\left(\frac{a^2.t^2}R\right)^2+a_t^2}$$
$a$ is the max acceleration, let's deduce $a_t$ the maximal "usable" acceleration from it:
$$a_t=\frac{\sqrt{a^2(R^2-a^2t^4)}}R$$

and that's my problem, when I integrate that to compute the speed, it gets out of hand: http://www.wolframalpha.com/input/?i=Integrate%5BSqrt%5Ba%5E2+%28R%5E2+-+a%5E2+t%5E4%29%5D%2FR%2C+t%5D

Best Answer

There is a slight mistake in your analysis towards the beginning. You assumed that the speed is equal to the total acceleration time the time. However the radial acceleration has no effect on the magnitude of the velocity in circular motion.

Therefore we can write,

$$ v(t) = a_t t $$

Now lets assume your target velocity is $v_{max}$ then we know ahead of time that the maximum radial acceleration will be,

$$ a_{r_{max}} = \frac{v_{max}^2}{R}$$

Since we also know the maximum total acceleration, $a_{max}$ we can easily compute the maximum allowed tangential acceleration.

$$(a_{max})^2 = (a_r)^2 + (a_t)^2$$ $$a_t = \sqrt{(a_{max})^2-(a_{r_{max}})^2}$$ $$a_t = \sqrt{(a_{max})^2-\left(\frac{V_{max}^2}{R}\right)^2}$$

We know that the quantity inside the square root is strictly positive because the radial acceleration never exceeds the total acceleration.

The speed on the first leg of the process is then,

$$ v_I(t) = a_t t ; t \leq V_{max}/a_t $$

The angular distance for this step is given by

$$ \Theta_I = \int_0^{V_{max}/a_t} v_I(t)/R dt = \frac{V_{max}^2}{2Ra_t} $$

The angular distance on the third step of the process should be the same since the time for decelleration and the average speed will remain the same.

$$ \Theta_{III} = \Theta_{I} = \frac{V_{max}^2}{2Ra_t} $$

On the second leg of the journey we travel at a constant speed. The amount of time this takes depends on how much of the arc is left. Let $\Delta \Theta$ be the total angle traveled then we have,

$$\Delta \Theta = \Theta_I + \Theta_{II} + \Theta_{III}$$

$$\Theta_{II} = \Delta \Theta - (\Theta_I + \Theta_{III})$$

$$\Theta_{II} = \Delta \Theta -\frac{V_{max}^2}{Ra_t}$$

The time to traverse this arc is then,

$$ \Delta T_{II} = \frac{\Theta_{II} R}{ V_{max}}$$

Thet total time is then the time elapsed for each of the three journeys,

$$ T_{total} = \left( \frac{V_{max}}{a_t}\right) + \left( \frac{\Theta_{II} R}{ V_{max}}\right) + \left( \frac{V_{max}}{a_t} \right)$$

$$T_{total} = \left( \frac{2V_{max}}{a_t}\right) + \left( \frac{\Theta_{II} R}{ V_{max}}\right) $$

Everything on the right side of this equation is known so all that is left is some simple substitutions. This is all assuming that the tangential acceleration is constant, if you are able to vary the tangential acceleration then a more general solution using elliptic integrals is possible.

Related Question