Changing the LAMMPS source code for applying electric field

No. This has been explained to you before: Two ACKS2-specific parameters - #5 by stamoor