The global attractor for a class of extensible beams with nonlocal weak damping