Lab IV · Crane hoist braking and trolley anti-sway
The hoist raising and lowering its rated load in four quadrants, the braking resistor, and the load as a pendulum: step against shaped trolley acceleration.
Objectives
As set by the Lab Works booklet:
- Simulate the four-quadrant torque and power of a crane hoist raising and lowering a rated load.
- Size a dynamic-braking resistor from the simulated peak regenerated power.
- Model the suspended load as a simple pendulum and simulate its sway response to a trolley acceleration profile.
- Design and simulate a shaped (anti-sway) acceleration profile and compare its residual sway with an unshaped (step) profile.
Background
Chapter 4 established that hoist torque follows (course eq. 4.1, with the motoring and generating exponent of Chapter 3), and that a load on a rope of length is a pendulum of natural period (course eq. 4.5), excited by the trolley acceleration. For small angles the sway angle under a trolley acceleration obeys (eq. 4.1 of the Lab Works booklet):
Anti-sway control shapes , for example with two acceleration pulses spaced by half the pendulum period ("input shaping"), so that the residual oscillation after the trolley reaches constant speed is cancelled.
Parameter sheet
| Parameter | Symbol | Value |
|---|---|---|
| Rated hoist load | 5000 kg | |
| Hoisting speed | 0.25 m/s | |
| Drum radius | 0.4 m | |
| Mechanical efficiency | 0.85 | |
| DC-link voltage | 620 V | |
| Rope (sling) length to load | 4 m | |
| Trolley target speed | 0.5 m/s | |
| Trolley acceleration time | 2 s |
Procedure
The booklet's five steps, with the names the checker looks for shown in code font.
- Set up the environment. Import NumPy and Matplotlib (already in the template).
- Define parameters. Set
m,v,R,eta,Udc,L,v_trolleyandt_a. - Implement the hoist model. Compute
P_loadandP_motorfor raising, the gear ratioi_gear, the motor torquesT_raiseandT_lower, the powerP_genreturned when lowering the same load at the same speed, and the braking resistorR_brake. - Implement the pendulum model. Write
simulate_sway(L, accel, t_end, dt=0.01)returning the arrayst, thetafor an acceleration functionaccel(t). Integrate with RK4 orscipy.integrate.solve_ivp: plain explicit Euler slowly pumps energy into an undamped oscillator. Then definestep_accel(unshaped),T_sway, andshaped_accel(your anti-sway profile), and computeresidual_unshapedandresidual_shaped: the largest once the trolley has stopped accelerating. - Plot and analyse. Plot the hoist torque and power for the raise and lower cycle, and for both trolley profiles, then answer the questions under the workspace.
The checker calls simulate_sway with a random rope length and acceleration step on every run, so it must work for any sensible input.
Report
One individual report and your code, in this order: Objective, Model, Parameters, Results, Discussion, Conclusion, Code, marked out of 20 (model 6, results and plots 5, discussion 6, report quality 3). The workspace builds it from your work.