A superelastic shape-memory-alloy beam model