Development of large signal codes for modeling of multiple beam folded waveguide TWTs