Text this: Energy methods of structural analysis