Modeling of interaction between arc and macroparticle in vacuum trigatron