Friday, September 8, 2017

Field Weakening, Part 1

Previously on Motor Diddlers, we learned how to optimize the torque produced by an IPM operating in the current-limited regime. We can't stay in this regime forever; at higher RPM's, all motors enter a voltage-limited operating regime.

What's surprising is how quickly IPM's become voltage-limited. Using the data from the last post, we can plot the maximum achievable current versus speed:



The "base speed" of the motor is very low, about 800 rad/s (2500 RPM). Furthermore, we quickly run out of volts past base speed; the motor cannot turn much faster than 1500 rad/s (5000 RPM) if we constrain ourselves to the MTPA trajectory. This is a result of the much higher inductance of an IPM; at high electrical frequencies this inductive impedance limits how much current we can put into the stator.

Fortunately, we can use this higher inductance to our advantage. Recall that Vq=RsIq+ωLdId+ωλ; this means that if Id is negative, we can cancel out the ωλ term (what would conventionally be called "back EMF" in a surface PM machine) in the expression for Vq. On a surface PM machine, this current would be wasted; however, if Ld<Lq, the (LdLq)IdIq term in the torque equation will generated positive torque! Furthermore, the Ld/λ ratio is often an order of magnitude higher for IPM's, which greatly reduces the amount of d-axis current required to cancel out the flux linkage. This is, in a nutshell, why IPM's field weaken much better than their surface PM counterparts.

It is fairly straightforward to compute the optimal field-weakening trajectory:

Starting from the motor equations τ=32np(λIq+(LdLq)IdIq)Vd=RsIdωLqIqVq=RsIq+ωLdId+ωλVs=V2d+V2qIs=I2d+I2q
we note that in the voltage limited operating regime, maximum torque must be achieved when the voltage vector is on the boundary of the allowable area, in which case the optimization problem becomes an equality: {32np(λIq+(LdLq)IdIq)=τ0(RsIdωLqIq)2+(RsIq+ωLdId+ωλ)2=V20
If we ignore saturation, this system is the intersection of a constant-torque hyperbola (which is independent of speed) and a series of shrinking ellipses.


This system is polynomial (and in fact only a quartic) and can be solved in many ways. For example, one element of the reduced Groebner basis of the ideal generated by the two equations is the very long (LdLq)2(R2s+L2qw2)I4q+(L2qλ2ω2+R2sλ2+(LdLq)2(2Rsτ0ωV20))I2q2λτ0(R2s+LdLqω2)+R2sτ20+L2dτ20ω2
where we have included the factor of 3/2np in τ0 for brevity's sake. The roots of this polynomial are easily found with a variety of numeric or analytic methods; in the case of multiple real solutions the correct one is the (Id,Iq) vector with the shortest length.
Unfortunately, the system is no longer polynomial if the motor saturates (that is, Ld and Lq are functions ld(Id,Iq), lq(Id,Iq) of the axis currents). In order to solve the system in this case, we will have to turn to more complicated (and less reliable) numeric methods, the nature of which will be the subject of the next post in this series.

Sunday, September 3, 2017

Focusing on the Ground

Suppose we have a view camera and we wish to focus on a horizontal plane. More precisely, let the center of the lens O be a above the ground, and suppose the rear standard makes an angle θ with respect to the horizontal. We wish to find the angle α that the front standard must be tilted at to focus on the ground.

By the Scheimpflug rule. the rear standard, front standard, and horizontal intersect at a point S. By the hinge rule, the front focal plane, the horizontal, and the plane through O parallel to the rear standard are concurrent; this is true if and only if the intersection point H of the horizontal and the plane parallel to the rear standard lies at a distance f from the front standard, where f is the focal length of the lens.

We have:
OS=a/tanαOH=a/tanθSH=OSOH=a(1/tanα1/tanθ)=a(cosαsinαcosθsinθ)

This means:
f=SHsinα=asinα(cosαsinαcosθsinθ)fa=cosαcosθsinθsinαfasinθ=cosαsinθsinαcosθ=sin(θα)θα=arcsin(fasinθ)α=θarcsin(fasinθ)

In other words, the angle between the front and rear standards is arcsin(fasinθ). This is pretty neat; in particular, for small magifications we can say the ratio of  of the sines of the angles is approximately equal to the magnification of the camera.