beam modeling