Can G-Commanded Centrifuge Motion Be Controlled with Additional Constraints?

In summary, the speaker is seeking help with a problem they are having with their company's centrifuge that operates between 1.4 G and 9 G. They are trying to follow an arbitrary G profile and have tried using different equations to calculate the required speed of the arm, but are having trouble with decreasing G commands. They are looking for a solution that will meet their additional constraints and ensure smooth and accurate control of the centrifuge. They have tried implementing various control methods, but have not been successful and are seeking advice from experts in the forum.
  • #1
KLoux
176
1
Hello. A few of us at my company have been trying to solve this problem for a few weeks now, without success, and so now I turn to the brilliant minds of the people who frequent this forum for help :-)

We operate a centrifuge that spins between 1.4 G and 9 G. The command that we send to our motion control algorithm is a G command, so our algorithm takes the G command and computes the required speed of the arm to reach that desired G level. For steady-state, this is easy and we use the following equation:

[tex]
\omega = \sqrt{ \frac{ g }{ R } \sqrt{ G_c_m_d^2 - 1 } }
[/tex]

which is derived from

[tex]
G_a_c_t^2 = \left( \frac{ \omega^2 R }{ g } \right)^2 + 1
[/tex]

where [tex]g[/tex] is the acceleration due to gravity, [tex]R[/tex] is the arm length, and [tex]G[/tex] is the commanded or actual G level.

We are often required to follow an arbitrary G profile, however, and the arm's tangential acceleration comes into play. The new equation that describes the machine's G level is this:

[tex]
G_a_c_t^2 = \left( \frac{ \omega^2 R }{ g } \right)^2 + \left( \frac{ \alpha R }{ g } \right)^2 + 1
[/tex]

This is of course quartic in [tex]\omega[/tex] instead of quadratic, as is true when tangential acceleration is neglected. We have tried making the substitution [tex]\omega = \omega_0 + \alpha \triangle t[/tex] and solving for alpha as well as the substitution [tex]\alpha = \frac{ \omega - \omega_0 }{ \triangle t }[/tex], where [tex]\omega_0[/tex] is the arm speed calculated at the previous frame and [tex]\triangle t[/tex] is the time elapsed between frames. In both cases, we can solve the resulting quartic equation, and we get two real roots and two complex roots. Ignoring the complex roots leaves us with two choices. In case of an increasing G command, we can choose either of the remaining roots, and it gives us a satisfactory solution, where as the G command reaches a plateau, the tangential term is reduced to zero and the solution of this equation matches the solution of the simpler equation above.

The problem is in the case of a decreasing G command. There are still only two real solutions. Depending on the shape of the curve we are trying to follow, we must choose one root or the other, and sometimes it is necessary to switch between the two to avoid reaching a point where all four roots are complex. Unfortunately, while we are capable of doing this, in most cases we can even decide when to switch roots, and the magnitude of the G forces that are generated match the command exactly, the machine motion is unacceptable. For example, the centrifuge will start deccelerating rapidly, so that the arm actually stops and changes direction and all of the acceleration is a result of the tangential acceleration of the arm. There would then be a step change the speed or acceleration (or both) to correct the speed and give a more reasonable number. This, of course, is a solution that we cannot implement. There is no case in which the arm speed should be less than the speed required to generate 1.4 G.

1. If a solution exists for the onset, a solution must exist for the offset, right? I know I can take the desired curve, flip it around in time, find the time history of the rotation rate that generates the correct curve, and flip that around again to get a solution that works. It will work every time. Why can't I do this in real-time?

2. Is there a way that I can impose my additional constraints on the arm speed and acceleration (no step changes in speed, no speed less than the 1.4 G speed, etc.) and solve the problem such that these constraints are met?

Thank you in advance for your help!

-Kerry
 
Mathematics news on Phys.org
  • #2
Kerry I don’t think the problem is so much the maths as it is the type of controller you’re trying to implement. From what you post I think you're essentially trying to implement a "one step" controller. This is where you compute the required input to get some desired output and try to get there in one step. You know it might not really get you exactly there in one step but you figure that after that step you can re-measure the relevant variables and calculate another step and so one.

There are other control methods that are inherently more stable. The simplest of course being a basic proportional feed back controller. For example something as simple as this:

[tex] w^{*} = w + k (G^{*} - G)[/tex]

Where w* is the speed command you send to your centrifuge and w is the measured present speed. Similarly G* is the "G_command" sent to (that is, the input to) your controller and G is the computed present G (based on your measured present variables, omega and alpha etc).

In a way this is like the opposite extreme of the one step control but in practice it often works quite well. Typically you would adjust the parameter "k" to get it as fast and accurate as possible without the controller getting too close to unstable. Obviously lots of other enhancements are possible to that most basic feedback controller; I'm just suggesting you try some sort of control algorithm along these lines.
 
  • #3
uart, thanks for the reply. I assure you this is not a control problem. Our control laws only come into play only after the desired arm speed has been calculated, in fact, the output of the algorithm that I am asking for help with becomes the input to our controller. We implement multiple rate and acceleration limiters and filters to ensure that the command to the machine is smooth and within our equipment's capabilities.

Taking tangential acceleration into account is something that we don't currently do. We use the simpler version of the equation without tangential acceleration to drive our machine. This results in a slightly higher acceleration level during the transients, since the arm speed alone is generating the desired accelerations.

Thanks for the suggestion!

-Kerry
 
  • #4
Yes I understand that you already have a speed control loop, what I'm suggesting is that you try implementing a G control loop outside of this. This is a common situation in control systems where the output of the "outer" control loop provides the input to the second (the inner) control loop. In this case the G-controller is the outer loop, and it's output (w*) provides the input (target speed) to the inner loop of the speed controller.

Anyway if you don't want to try this method then I suggest that you simply limit the slew-rate more for the negative speed ramp (that is, reduce the maximum deceleration).
 
  • #5
BTW. I still don't really see what the problem is regarding choosing the correct root. You're just solving the following equation right?

[tex] \left( \frac{ \omega^2 R }{ g } \right)^2 = G_{act}^2 - \left( \frac{ \alpha R }{ g } \right)^2 - 1 [/tex]

So the solution can be expressed as two nested square-roots (the square-root of a square root) if I'm following correctly. So the choice of roots seems trivial to me, the root of the inner square-root should always be chosen as positive and the root of the outer square-root should always be chosen such that the sign of w remains unchanged. I don't see any real reason for ever changing the direction of rotation so that means just choosing the positive square-root in each case.

Anyway it's becasue I can't see any real problem with the current mathematical calculations that makes me think that the real problem is somewhere else. I believe that the real problem is the coupling of variables that is occurring between the calculated speed reference (w) and the tangential acceleration. My suggestions above are really aimed at addressing this issue.
 
  • #6
I am solving that equation, but I need to know [tex]\alpha[/tex] and [tex]\omega[/tex] at the same instant in time. I need to make a substitution for either [tex]\alpha[/tex] in terms of [tex]\omega[/tex] or [tex]\omega[/tex] in terms of [tex]\alpha[/tex] to do this. This introduces quartic and cubic terms to the equation, thus making choosing the roots non-trivial.

I now see what you mean about the controller solution. I might consider this if it turns out that there is no closed form solution the this problem, but my belief is that there is a closed-form solution. Perhaps it was confusing to add the "act" and "cmd" subscripts to the equations in my OP, but all of these calculations are done without any feedback from the machine - I only meant to show how the equations were derived. Yes, I could add another loop to the controller, but I would like to consider this solution only as a last resort.

Thanks!

-Kerry
 
  • #7
Maybe I just worked this out too quickly but, check my math here:

Assuming you're comfortable with approximating instantaneous acceleration with
[tex]
\dot{\omega}=\frac{\omega - \omega_o}{\Delta t}
[/tex]

then:

[tex]
G^2 = 1 + \left( \frac{\omega^2 R}{g}\right)^2 + \left( \frac{\dot{\omega R}}{g}\right)^2
[/tex]
[tex]
\omega^2 + \dot{\omega} = \frac{g}{R}\sqrt{G^2-1}
[/tex]

The term on the RHS is just a number computed from your known command profile. (I'll call the RHS K from now on so I don't have to type so much.)

[tex]
\omega^2 + \frac{1}{\Delta t}\omega - \left( \frac{\omega_o}{\Delta t} + K \right) = 0
[/tex]

which is just quadratic in speed and solvable (you know your sample rate and your using the last measurement of speed as omega_o). You should get two real roots, right? And you would always choose the positive root.

As you have discussed above, it may be a problem to use a speed controller to control G; hopefully your speed measurement is not too noisy and that approximation of acceleration works out.
 
  • #8
Hmm, jamesrc, I think your algebra is wrong...

[tex]\sqrt{A^2 + B^2} \neq A^2 + B^2[/tex]

I made the same approximation for acceleration. It is necessary to make an approximation (although, not necessarily that one) because we are using a digital control system and only know the acceleration instantaneously.

Thanks for the reply.

-Kerry
 
  • #9
Woops, I knew I scribbled that out too fast. That'll teach me to post on a message board when I'm supposed to be working. Sorry about that.
 
Last edited:

1. What is a centrifuge?

A centrifuge is a laboratory instrument that uses centrifugal force to separate substances of different densities. It works by rapidly spinning a sample at high speeds, causing heavier particles to move towards the bottom and lighter particles to move towards the top.

2. What is the equation for centrifugal force?

The equation for centrifugal force is F = m * ω^2 * r, where F is the centrifugal force, m is the mass of the object being spun, ω is the angular velocity of the centrifuge, and r is the distance from the center of rotation to the object.

3. How does the radius affect the centrifugal force?

The radius has a direct impact on the centrifugal force – the larger the radius, the greater the centrifugal force. This is because a larger radius increases the distance from the center of rotation, resulting in a greater lever arm and therefore a stronger force.

4. What is the relationship between centrifugal force and angular velocity?

The relationship between centrifugal force and angular velocity is directly proportional. This means that as the angular velocity increases, the centrifugal force also increases, and vice versa.

5. How does the mass of the sample affect the centrifuge motion?

The mass of the sample does not directly affect the centrifuge motion. However, a larger mass may require a higher centrifugal force to achieve the desired separation, which can be achieved by increasing the angular velocity or radius of the centrifuge.

Similar threads

  • Introductory Physics Homework Help
Replies
2
Views
549
  • Introductory Physics Homework Help
Replies
9
Views
636
  • Advanced Physics Homework Help
Replies
2
Views
765
Replies
1
Views
833
  • Special and General Relativity
2
Replies
36
Views
3K
  • Introductory Physics Homework Help
Replies
10
Views
902
  • Special and General Relativity
Replies
29
Views
1K
  • Introductory Physics Homework Help
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
28
Views
2K
  • Introductory Physics Homework Help
Replies
10
Views
2K
Back
Top