I am trying to design a cam profile like in the above image. There are 2 equations I have come up with that define variable "c". The problem, however, is that variables a, b & c are known values and it is angle θ that I need to know. The 2 arcs on either end of the straight line are equal. The radius of the arcs and the angle θ change when any of the variables are changed.
The 2 equations I have so far:
c=2asinθ(1−cosθ)+b.sinθcosθ
c=2[asinθ−√(asinθ)2−a2]+b.sinθcosθ
I can't for the life of me manage to rearrange the equation to make θ the subject!
If anyone is an algebra whiz, any help would be much appreciated!
Cheers.
EDIT
Ok, so after a bit of geometric shenanigans, I have come up with some different equations to help solve this but and still struggling to rearrange it. (However, I had to replace θ with x as I couldn't get θ to work with the program I drew this with!)
By drawing a chord for the arc, we can show that the angle of the chord is half that of the slope. What I really need to find is the length of either e or d, where d+e=c2
Using the half angle formula I get:
tanx=2tanx21−tan2x2
Which can be written as:
c−2eb=2ea1−e2a2
Simplifying to:
c−2eb=2aea2−e2
My problem now, is that I can't simplify it to get e on its own!
If anyone has any ideas, that would be awesome!
Answer
Considering the first equation
c=2asin(θ)(1−cos(θ))+bsin(θ)cos(θ)
using the tangent half-angle substitution, we end with
c=2t(−at2+a+b)1−t2 that is to say
2at3−ct2−2t(a+b)+c=0 that you can solve using Cardano method.
Probably easier would be Newton method for solving the cubic equation. Starting using t0=0, we should have t1=c2(a+b) and
t2=c3(b−a)+4c(a+b)38(a+b)4−2c2(a−2b)(a+b)
tn+1=4at3n−ct2n−c2(3at2n−ctn−(a+b))
Similarly, if θ is small, we could expand the first equation as Taylor series
c=(a+b)θ+a+4b12θ3+a+16b120θ5+17(a+64b)20160θ7+O(θ9) and use series reversion to get
θ=ca+b−(a+4b)12(a+b)4c3+(a2+2ab+16b2)80(a+b)7c5+O(c7)
Edit
Still assuming small values fo θ, we could build at θ=0 the [2,2] Padé approximant and get for the whole
f(θ)=2asin(θ)(1−cos(θ))+bsin(θ)cos(θ)−c the approximation
f(θ)≃−c+(a+b)θ+c(a+4b)12(a+b)θ21−(a+4b)12(a+b)θ2 Solving the quadratic
θ≃2(√3c2(a+4b)(a+b)+9(a+b)4−3(a+b)2)c(a+4b) which seems interesting.
Let us try it for a=1 and b=4. Give θ a value to compute c and recompute the estimate θ∗ from (1). The table below reproduces results (in degrees).
(θcθ∗50.437285.00001100.8802910.0003151.3351015.0020201.8085320.0082252.3086225.0249302.8453030.0617353.4314335.1324404.0843440.2567454.8284345.4605505.6996350.7782556.7537356.2542608.0829061.9466)
Update
After comments, it is quite sure that we can make better knowing that the area of interest is around θ=π4. To stay "simple", writing the [1,1] Padé approximant, we should get
θ≃π4+α+βcγ+δc where
α=2((6√2−8)a2+√2ab+b2)
β=2(√2−2)a−2b
γ=2(√2−2)a2+3(5√2−8)ab−2b2
δ=(4−3√2)a−2b Applied to the case
a=π16012360=16π3b=π16050360=200π9c=80 this would give
θ≃π4+90(6√2−37)+(337+366√2)π(1161√2−2497)π−90(13+9√2)≈0.761710 which converted to degrees would give 43.6427 while the exact solution would be θ=0.7617146 corresponding to 43.6430. Not too bad.
Keeping a=16π3 and b=200π9 and varying c over a quite large range, here are some results.
(cθapproxθexact6035.154035.25696537.477937.52447039.659139.67597541.710341.71428043.642743.64308545.466645.46659047.190647.18949548.822848.816510050.370450.3528)
New update
We could still do much better at the price of a quadratic equation. Around a given angle θ0, develop the rhs of the original equation as a [2,2] Padé approximant and solve for θ. I shall not give here the formulae but just the results for the last worked case (θ0=π4,a=16π3,b=200π9)
(cθapproxθexact6035.25653535.2568566537.52433137.5244187039.67590139.6759177541.71423241.7142338043.64302943.6430298545.46654045.4665409047.18940047.1894009548.81648148.81647810050.35278150.352763)
No comments:
Post a Comment