Simulation of a Phased-Array Antenna in Waveguide