Analysis of beams and frames