LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

fix_modify command

Syntax:

fix_modify fix-ID keyword value ... 

Examples:

fix_modify 3 temp myTemp
fix_modify 1 thermo yes energy no 

Description:

Modify one or more parameters of a previously defined fix. Not all fix styles support all parameters.

The temp keyword is used to determine how a fix computes temperature. The specified temperature ID must have been previously defined by the user via the temperature command. The default setting for temp is temperature ID = default. Fix styles that use the temp setting are temp/rescale, nvt, and npt.

The thermo and energy keywords enable a fix to compute and print quantities as part of the thermodynamic output to the screen and log file every so many timesteps (if they are defined as part of the fix). See the thermo_style command for how this printing is formatted. When the thermo keyword is set to yes, the fix prints one or more values. When the energy keyword is set to yes, the fix computes a contribution to the PotEng quantity (total potential energy) printed during thermodynamic output. The fixes that use this option include: fix nvt, fix npt, fix nph, fix temp/rescale, and fix wall/lj93. See the individual fix commands for more info on what is printed.

Restrictions: none

Related commands:

fix, temperature, thermo_style

Default:

The option defaults are temp = default, thermo = no, energy = no.