applied electromagnetic field in lammps


I have been studying fix_efield.cpp to understand how lammps implements an applied electromagnetic field. Am I correct in my understanding that the application of the electromagnetic field does not factor into the pressure calculation? I see no reference to something like ev_tally to modify the virial in fix_field.cpp. Thanks!

Correct. But I don’t think any external forces normally modify

the virial/pressure calculation.