LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Adding attributes to an new atom style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Adding attributes to an new atom style

From: Stefan Paquay <stefanpaquay@...24...>
Date: Wed, 9 May 2018 11:15:04 -0400

If the way you are planning to use the additional info is compatible with fix property/atom, then that is usually the simplest way to go. This fix simply stores per-atom data and makes sure it is communicated properly across processors etc...
The code that needs this per-atom property can then grab this data by extracting the data from the fix.

On Wed, May 9, 2018 at 10:33 AM, Victor Koppejan - TNW <V.W.Koppejan@...1427...> wrote:

I wanted to add an attribute to the sphere style, a per atom scaling factor for the radius. To do so I created a new particle style. However to get proper access to the attribute I had to also add it to the atom base class and set class.

Is that correct way or is there another way that avoid changing the atom and set classes.

Thanks in advance,



Check out the vibrant tech community on one of the world's most
engaging tech sites,!
lammps-users mailing list