How to apply magnetic field in lammps

Dear all,
I want to ask that is there a way I can apply magnetic field in my simulation. I have a box of water and magnetic particle (Fe) arranged in a random manner. I want to see how the interaction changes between them when a magnetic field of certain strength is applied to them. Is there anyway to do this in lammps. I learnt about the spin package but having trouble in applying it. If anybody wants to know which equation I am using for the magnetic field I can give that.

Thank you,

Hi Devargya,

Maybe the following work can provide some points to your problem.

I hope it helps!


Thanks, I’ll check it out.