[lammps-users] variable fix efield

Dear LAMMPS users,
I am using the new variable efield functionality, but observed what appears to be a bug. As a test, I used the following commands:

variable efieldz equal -0.05258022
fix efield saltwater efield 0. 0. v_efieldz

But when I visualized my results, it appears the electric field is applied in the x-direction rather than the z-direction. I looked into fix_efield.cpp, but I am not all that familiar with C++. Should line 56 be “ystr” and line 65 be “zstr”? Thanks.

Jonathan

yes - a bug - fixed it with the 2Jul10 patch

Thanks,
Steve

Great, thanks Steve!

Jonathan