Development and validation of a time-dependent large-signal simulation code for gyroklystron amplifier