[lammps-users] How to add a magnetic field in LAMMPS?

Hello everyone,

I like to add a magnetic field in my simulations.
Anybody can tell me which command is for magnetic field?
Thanks.
Have nice holidays!

Houyang

Hello everyone,

I like to add a magnetic field in my simulations.
Anybody can tell me which command is for magnetic field?

none. you will have to implement it. it would also depend
on the shape of the magnetic field.

you can probably use fix efield as a template.

i remember a discussion on the subject a while ago.
please search the mailing list archives to see if you
can find some additional information.

cheers,
    axel.

Hi, Axel,
I see. Thanks.
Happy thanksgiving!
Houyang

yes - if you use fix efield as a starting
point to create fix bfield, you will see that
it is possible to specify a spatially and time
dependent magnetic field, that you could
then apply to generate a force based on
the charge and velocity of each atom.

Steve

Thanks, Steve.
I will try it myself first.
Thanks
Houyang