LIGGGHTS WWW Site - LIGGGHTS Documentation - LIGGGHTS Commands


fix property/global command

fix property/atom command



Syntax:

fix id group property/atom variablename style restartvalue comm_ghost_value comm_reverse_ghost_value defaultvalue(s)...
fix id group property/global variablename style stylearg defaultvalue(s)... 

fix property/global:

fix property/peratom:

LIGGGHTS vs. LAMMPS Info:

This command is not available in LAMMPS.

Description:

Fix property/atom reserves per-atom properties to be accessed by the user or other fixes. Style scalar reserves one value per atom, style vector multiple values per atoms, where the number of defaultvalues (that are assigned to the atoms at creation) determines the length of the vector . The group of atoms the fix is applied to is always "all", irrespective of which group is used for the fix command . If you want to assign different values for different groups, you can use the set command with keyword 'property/atom'.

Fix property/global reserves global properties to be accessed by the user or other fixes or pair styles. The number of defaultvalues determines the length of the vector / the number of matrix components . For style vector or atomtype, the user provides the number of vector components . For style matrix or atomtypepair, the user provides the number of matrix columns (nCols) .

Example: nCols= 2 and defaultvalues = 1 2 3 4 5 6 would be mapped into a matrix like
[ 1 2 ]
[ 3 4 ]
[ 5 6 ]
Note that the number of default values must thus be a multiple of nCols.
Note that vector and atomtype do the same thing, atomtype is just provided to make input scripts more readable .
Note that matrix and atomtypepair do the same thing, atomtype is just provided to make input scripts more readable .

Note that the group of atoms the fix is applied to is ignored (as the fix is not applied to atoms, but defines values of global scope).

Restart, fix_modify, output, run start/stop, minimize info:

Information about this fix is written to binary restart files if you set 'restartvalue' to “yes”.

The fix_modify energy option is supported by this fix to add the potential "energy" inferred by the added force to the system's potential energy as part of thermodynamic output. This is a fictitious quantity but is needed so that the minimize command can include the forces added by this fix in a consistent manner. I.e. there is a decrease in potential energy when atoms move in the direction of the added force.

Fix property/atom computes a scalar (for style scalar) or a vector of values (for style vector), which can be accessed by various output commands.

No parameter of this fix can be used with the start/stop keywords of the run command.

Restrictions: none

Related commands:

set, pair_gran

Default: none