Hello, I'm trying to figure out a general physics problem here and I'm trying to relate energy held in a rotating shaft to be dissipated by a torsional spring. Let's say I have energy E (Joules), shaft outer diameter D, and torsional spring capacity T. T is what I'm designing for with all properties relatively open, subject only to the constraint of the spring's ID (fully loaded) never less than D and it's OD (unloaded) never greater than 4D. Wire thickness, leg length, and number of active legs are all "change as needed." Assume that the shaft dissipates the energy directly in torsion through a 100% efficient clutch. I'm looking for guidance on how to design the spring for this layout. I would like to be able to design it in terms of rotational deflection of the spring.