LIGGGHTS Academic
24.01

User Documentation

  • 1. Introduction
  • 2. Getting Started
  • 3. Commands
  • 4. Contact models
  • 5. Packages
  • 6. Accelerating LAMMPS performance
  • 7. How-to discussions
  • 8. How-to for superquadric particles
  • 9. Example problems
  • 10. Performance & scalability
  • 11. Additional tools
  • 12. Modifying & extending LAMMPS
  • 13. Python interface to LAMMPS
  • 14. Errors
  • 15. Future and history

Index

  • Tutorials
  • Commands
    • angle_coeff command
    • angle_style command
    • atom_modify command
    • atom_style command
    • balance command
    • bond_coeff command
    • bond_style command
    • boundary command
    • box command
    • change_box command
    • clear command
    • coarsegraining command
    • communicate command
    • compute command
    • compute_modify command
    • create_atoms command
    • create_box command
    • create_multisphere_clump command
    • delete_atoms command
    • delete_bonds command
    • dielectric command
    • dihedral_coeff command
    • dihedral_style command
    • dimension command
    • displace_atoms command
    • dump command
    • dump image command
    • dump movie command
    • dump molfile command
    • dump image command
    • dump movie command
    • dump_modify command
    • dump molfile command
    • dump custom/vtk command
    • echo command
    • extract_surface command
    • extrude_surface command
    • fix command
    • fix_modify command
    • group command
    • group2ndx command
    • if command
    • improper_coeff command
    • improper_style command
    • include command
    • jump command
    • kspace_modify command
    • kspace_style command
    • label command
    • lattice command
    • log command
    • mass command
    • min_modify command
    • min_style command
    • minimize command
    • modify_timing command
    • neb command
    • neigh_modify command
    • neighbor command
    • newton command
    • next command
    • package command
    • pair_coeff command
    • pair_modify command
    • pair_style command
    • pair_write command
    • partition command
    • prd command
    • print command
      • Syntax
      • Examples
      • Description
      • Restrictions
      • Related commands
      • Default
    • processors command
    • quit command
    • read_data command
    • read_dump command
    • read_restart command
    • region command
    • replicate command
    • rerun command
    • reset_timestep command
    • restart command
    • run command
    • run_style command
    • set command
    • shell command
    • special_bonds command
    • suffix command
    • tad command
    • temper command
    • thermo command
    • thermo_log command
    • thermo_modify command
    • thermo_style command
    • timestep command
    • uncompute command
    • undump command
    • unfix command
    • units command
    • variable command
    • velocity command
    • write_data command
    • write_dump command
    • write_restart command
  • Computes
  • Fixes
  • Pair Styles
  • Granular Models
  • Bond Styles
  • Angle Styles
  • Dihedral Styles
  • Improper Styles
 
LIGGGHTS Academic
  • Docs »
  • Commands »
  • print command
  • Website Commands

Next Previous

print command¶

Syntax¶

print string keyword value:pre

  • string = text string to print, which may contain variables

  • zero or more keyword/value pairs may be appended

  • keyword = file or append or screen

    file value = filename
    append value = filename
    screen value = yes or no

Examples¶

print "Done with equilibration" file info.dat
print Vol=$v append info.dat screen no
print "The system volume is now $v"
print 'The system volume is now $v'

Description¶

Print a text string to the screen and logfile. One line of output is generated. 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, they will be evaluated and their current values printed.

If the file or append keyword is used, a filename is specified to which the output 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.

If the screen keyword is used, output to the screen and logfile can be turned on or off as desired.

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 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 command. Third, the print command could appear in a section of the input script that is looped over (see the jump and next commands).

See the variable 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 or fix, or references to other variables.

Restrictions¶

none

Related commands¶

fix print, variable

Default¶

The option defaults are no file output and screen = yes.

Next Previous

© Copyright 2018 JKU Linz, DCS Computing GmbH and Sandia Corporation.

Built with Sphinx using a theme provided by Read the Docs.