I want not to calculate forces for the atoms I want to keep “frozen”, mainly for the purpose of saving computational time. I thought this combination could do this:
I want not to calculate forces for the atoms I want to keep “frozen”, mainly for the purpose of saving computational time. I thought this combination could do this:
But the docs say it wouldn't work with long range which limits the actual
applicability.
well, you cannot have your cake and eat it. if you want to compute
long-range interactions accurately, you have to include those
interactions, because their reciprocal space counterparts will be
computed, too. you *may* exclude those, but you'll have to see, how
large the error is that you are introducing. so the only way to save
some time at full accuracy, would be to come up with a variant of the
corresponding pair style, that can cache the interactions and where
you then store the per atom contributions from the immobile pairs and
read them back. not impossible, but not trivial either.
Is there a way to set a static external force field in LAMMPS with energy (or force) being assigned to a coordinate mesh and read at the start from a file, for example?
My examination of the LAMMPS fixes suggest that the answer is currently 'No'... But if it was possible it would be basically a more straightforward and not so tricky solution for the problem, as long as the mesh is dense enough.