2006-09-22 00:22:34 +08:00
|
|
|
"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
|
|
|
|
|
|
|
|
fix print command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2007-12-13 23:20:26 +08:00
|
|
|
fix ID group-ID print N string keyword value ... :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-12-13 23:39:21 +08:00
|
|
|
ID, group-ID are documented in "fix"_fix.html command :ulb,l
|
|
|
|
print = style name of this fix command :l
|
|
|
|
N = print every N steps :l
|
|
|
|
string = text string to print with optional variable names :l
|
|
|
|
zero or more keyword/value pairs may be appended :l
|
2009-12-22 01:51:05 +08:00
|
|
|
keyword = {file} or {append} or {screen} or {title} :l
|
2007-12-13 23:20:26 +08:00
|
|
|
{file} value = filename
|
2009-03-17 02:20:35 +08:00
|
|
|
{append} value = filename
|
2009-12-22 01:51:05 +08:00
|
|
|
{screen} value = {yes} or {no}
|
|
|
|
{title} value = string
|
|
|
|
string = text to print as 1st line of output file :pre
|
2007-12-13 23:39:21 +08:00
|
|
|
:ule
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2007-12-13 23:20:26 +08:00
|
|
|
fix extra all print 100 "Coords of marker atom = $x $y $z"
|
|
|
|
fix extra all print 100 "Coords of marker atom = $x $y $z" file coord.txt :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2007-12-13 23:20:26 +08:00
|
|
|
Print a text string every N steps during a simulation run. This can
|
|
|
|
be used for diagnostic purposes or as a debugging tool to monitor some
|
|
|
|
quantity during a run. The text string must be a single argument, so
|
|
|
|
it should be enclosed in double quotes if it is more than one word.
|
|
|
|
If it contains variables it must be enclosed in double quotes to
|
2008-01-03 03:25:15 +08:00
|
|
|
insure they are not evaluated when the input script line is read, but
|
|
|
|
will instead be evaluated each time the string is printed.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
See the "variable"_variable.html command for a description of {equal}
|
|
|
|
style variables which are the most useful ones to use with the fix
|
|
|
|
print command, since they are evaluated afresh each timestep that the
|
2008-01-03 03:25:15 +08:00
|
|
|
fix print line is output. Equal-style variables calculate formulas
|
|
|
|
involving mathematical operations, atom properties, group properties,
|
2008-03-01 09:13:20 +08:00
|
|
|
thermodynamic properties, global values calculated by a
|
2007-12-13 23:20:26 +08:00
|
|
|
"compute"_compute.html or "fix"_fix.html, or references to other
|
|
|
|
"variables"_variable.html.
|
|
|
|
|
2009-03-17 02:20:35 +08:00
|
|
|
If the {file} or {append} keyword is used, a filename is specified to
|
|
|
|
which the output generated by this fix will be written. If {file} is
|
|
|
|
used, then the filename is overwritten if it already exists. If
|
|
|
|
{append} is used, then the filename is appended to if it already
|
|
|
|
exists, or created if it does not exist.
|
2007-12-13 23:20:26 +08:00
|
|
|
|
|
|
|
If the {screen} keyword is used, output by this fix to the screen and
|
|
|
|
logfile can be turned on or off as desired.
|
2007-02-10 05:37:30 +08:00
|
|
|
|
2009-12-22 01:51:05 +08:00
|
|
|
The {title} keyword allow specification of the string that will be
|
|
|
|
printed as the first line of the output file, assuming the {file}
|
|
|
|
keyword was used. By default, the title line is as follows:
|
|
|
|
|
|
|
|
# Fix print output for fix ID :pre
|
|
|
|
|
|
|
|
where ID is replaced with the fix-ID.
|
|
|
|
|
2007-10-11 06:28:11 +08:00
|
|
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
No information about this fix is written to "binary restart
|
|
|
|
files"_restart.html. None of the "fix_modify"_fix_modify.html options
|
2007-10-11 06:28:11 +08:00
|
|
|
are relevant to this fix. No global scalar or vector or per-atom
|
|
|
|
quantities are stored by this fix for access by various "output
|
|
|
|
commands"_Section_howto.html#4_15. No parameter of this fix can be
|
|
|
|
used with the {start/stop} keywords of the "run"_run.html command.
|
|
|
|
This fix is not invoked during "energy minimization"_minimize.html.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
2007-12-13 23:20:26 +08:00
|
|
|
[Restrictions:] none
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"variable"_variable.html, "print"_print.html
|
|
|
|
|
2007-12-13 23:20:26 +08:00
|
|
|
[Default:]
|
|
|
|
|
2009-12-22 01:51:05 +08:00
|
|
|
The option defaults are no file output, screen = yes, and title string
|
|
|
|
as described above.
|