An analysis of the plane influence separating the interaction space from the electron beam-forming region is made by the particle-particle simulation method with the delay effect. During the simulation, it was shown that the boundary conditions on the surface have a significant effect on the electron beam dynamics in a longitudinal magnetic field and affect the time of formation of the virtual cathode and the particle velocity in the interaction space.