Theoretical study and design of a CARM type millimeter wave source