How Can I Implement Dynamic Max/Min Control in Simulink for a 2 D.O.F System?

  • Thread starter Thread starter 19dan87
  • Start date Start date
  • Tags Tags
    Control Simulink
Click For Summary

Discussion Overview

The discussion revolves around implementing dynamic maximum and minimum control in Simulink for a two degrees of freedom (2 D.O.F) system, specifically in the context of modeling vibration with damping. Participants explore how to set control values based on varying upper and lower limits throughout a simulation.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes the need for a control mechanism that adjusts based on dynamic maximum (Fmax) and minimum (Fmin) values, which change over time during the simulation.
  • Another participant suggests using a saturation block to set upper and lower limits for the control value, proposing that Fd could be the single input.
  • A later reply clarifies that a simple saturation block may not suffice due to the complexity of the model involving semi-active damping and skyhook control, where the control force must be adjusted based on the relative velocity.
  • Participants discuss the need to account for scenarios where the relative velocity could affect the limits, indicating that Fmax and Fmin may need to be swapped based on the sign of the relative velocity.
  • One participant recommends investigating a dynamic saturation block to accommodate the changing limits based on the equations provided.

Areas of Agreement / Disagreement

Participants express differing views on the adequacy of a simple saturation block for the problem at hand, with some advocating for a more complex solution involving dynamic limits. The discussion remains unresolved regarding the best approach to model the control mechanism in Simulink.

Contextual Notes

Participants highlight limitations related to the need for dynamic adjustments of Fmax and Fmin, the potential for negative values affecting control limits, and the complexity of the control force calculations. These factors contribute to the uncertainty in finding a straightforward solution.

19dan87
Messages
5
Reaction score
0
I am modelling the vibration of a 2 D.O.F system with damping in Simulink.

I want to set up control such that if the control value is between two values (max and min) then it sets the control value to the specified input but if it is outside the max and min interval then the control value is set to the max or min as appropriate.

eg.

Fd> Fmax , then set to Fmax
Fd< Fmin , then set to Fmin

If not set to Fd.

Fmax and Fmin will vary slightly throughout the simulation so can not use a max/min since they vary with time during the simulation.

Any ideas how it will be best to do this. Basically going to be three inputs into the block from the system which need to be evaluated and then the appropriate input set as the output.

I have tried IF blocks but they won't work properly for the simulation.

Thanks

Dan
 
Engineering news on Phys.org
What you are describing is a saturation block. Basically, you can set your upper and lower limits of the saturation to Fmax and Fmin respectively, with Fd as your single input.

I do not see why you would want 3 inputs unless you have Fmax and Fmin as simulink block constants. Which in that case you can simply hard code it into the upper and lower limits of the saturation block directly and throw away your Fmax and Fmin constant blocks.
 
Hi Viscousflow thanks for the reply. The saturation block was what I was describing but unfortunately I didn't think through the problem I was modelling properly and a simple saturation block will not work.

I am modelling Semi active damping with skyhook control. (MR damper with 2 DOF)

I want the control force to be; Fsky=Csky*x1
Ales the control force falls outside the Fmax and Fmin limits then I want to set the control force to Fmax or Fmin.

Fmax= sgn(Fy) + C(x1-x2) , sgn(Fy) is simply the offset force
Fmin= C(x1-x2)

The force-velocity diagram in the link below will help visualize the problem I am describing.
http://postimage.org/image/9rqiokn8/

Now 2 problems arise when using the saturation block alone.

(x1-x2) can be negative meaning I would have to swap the upper and lower limits around for the case when the relative velocity is negative.

Also If Fmax and Fmin are negative but the control force Fsky (Fd on the diagram) is positive and still between the +Fmax and +Fmin then I want the control force to be set to Fsky.

Any ideas how it would be best to model this problem in Simulink. Any suggestions would be very helpful. Thanks.
 
Well in that case, investigate the dynamic saturation block. You can place your equations into the upper and lower limit blocks to have moving limits.
 

Similar threads

Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
3
Views
2K
Replies
4
Views
8K