Particle Acceleration in the Process of Eruptive Opening and Reconnection of Magnetic Fields