LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

print command

Syntax:

print args 

Examples:

print The system volume is now $v 

Description:

Print the list of arguments as a line of text to the screen and/or logfile. If variables are included in the arguments, they will be evaluated and their values printed. Note that if variables are included, the print string should not be enclosed in double quotes, else it will prevent the variables from being evaluated.

By using the print command in a section of the input script that is looped over (see the jump command), and by including variables of the equal style (see the variable command), a string with changing values can be printed.

Restrictions: none

Related commands:

fix print, variable

Default: none