The most direct way to do this I think would be to follow the previous suggestion, apply a distributed torque along the beam. You could achieve this other ways, with rigid links that get loaded, or perhaps by changing the detailing in the member properties. I'm not sure about the second one.