forked from lijiext/lammps
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
:link(ld,Manual.html)
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
:line
|
|
|
|
print command :h3
|
|
|
|
[Syntax:]
|
|
|
|
print str1 str2 ... :pre
|
|
|
|
str1,str2,...,strN = one or more text strings to print, which may contain variables :ul
|
|
|
|
[Examples:]
|
|
|
|
print Done with equilibration
|
|
print The system volume is now $v
|
|
print "The system volume is now $v" :pre
|
|
|
|
[Description:]
|
|
|
|
Print one or more text strings to the screen and logfile. The
|
|
individual text strings are effectively concatenated into a single
|
|
string, and one line of output is generated. Thus the 2nd and 3rd
|
|
examples above are equivalent. If variables are included in any of
|
|
the strings, they will be evaluated and their current values printed.
|
|
|
|
If you want the print command to be executed multiple times (with
|
|
changing variable values), there are 3 options. First, consider using
|
|
the "fix print"_fix_print.html command, which will print a string
|
|
periodically during a simulation. Second, the print command can be
|
|
used as an argument to the {every} option of the "run"_run.html
|
|
command. Third, the print command could appear in a section of the
|
|
input script that is looped over (see the "jump"_jump.html and
|
|
"next"_next.html commands).
|
|
|
|
See the "variable"_variable.html command for a description of {equal}
|
|
style variables which are typically the most useful ones to use with
|
|
the print command. Equal-style variables can calculate formulas
|
|
involving mathematical operations, atom properties, group properties,
|
|
thermodynamic properties, global values calculated by a
|
|
"compute"_compute.html or "fix"_fix.html, or references to other
|
|
"variables"_variable.html.
|
|
|
|
[Restrictions:] none
|
|
|
|
[Related commands:]
|
|
|
|
"fix print"_fix_print.html, "variable"_variable.html
|
|
|
|
[Default:] none
|