SPARTA
  • 1. Introduction
    • 1.1 What is SPARTA
    • 1.2 SPARTA features
    • General features
    • Models
    • Geometry
    • Gas-phase collisions and chemistry
    • Surface collisions and chemistry
    • Performance
    • Diagnostics
    • Output
    • Pre- and post-processing
    • 1.3 Grids and surfaces in SPARTA
    • 1.4 Open source distribution
    • 1.5 Acknowledgments and citations
  • 2. Getting Started
    • 2.1 What's in the SPARTA distribution
    • 2.2 Making SPARTA
    • 2.3 Making SPARTA with optional packages
    • 2.4 Building SPARTA as a library
      • Static library:
      • Shared library:
      • Additional requirement for using a shared library:
      • Calling the SPARTA library:
    • 2.5 Testing SPARTA
    • 2.6 Running SPARTA
    • 2.7 Command-line options
    • 2.8 SPARTA screen output
  • 3. Commands
    • 3.1 SPARTA input script
    • 3.2 Parsing rules
    • 3.3 Input script structure
    • 3.4 Commands listed by category
    • 3.5 Individual commands
    • Fix styles
    • Compute styles
    • Collide styles
    • Surface collide styles
    • Surface reaction styles
  • 4. Packages
    • FFT package
    • KOKKOS package
    • VTK package
  • 5. Accelerating SPARTA performance
    • 5.1 Measuring performance
    • 5.2 Packages with optimized styles
    • 5.3 KOKKOS package
  • 6. How-to discussions
    • 6.1 2d simulations
    • 6.2 Axisymmetric simulations
    • 6.3 Running multiple simulations from one input script
    • 6.4 Output from SPARTA (stats, dumps, computes, fixes, variables)
      • Global/per-particle/per-grid/per-surf/pre-tally data
      • Scalar/vector/array data
      • Statistical output
      • Dump file output
      • Fixes that write output files
      • Computes that process output quantities
      • Computes that generate values to output
      • Fixes that generate values to output
      • Variables that generate values to output
      • Summary table of output options and data flow between commands
    • 6.5 Visualizing SPARTA snapshots
    • 6.6 Library interface to SPARTA
    • 6.7 Coupling SPARTA to other codes
    • 6.8 Details of grid geometry in SPARTA
    • 6.9 Details of surfaces in SPARTA
    • 6.10 Restarting a simulation
    • 6.11 Using the ambipolar approximation
    • 6.12 Using multiple vibrational energy levels
    • 6.13 Surface elements: explicit, implicit, distributed
    • 6.14 Implicit surface ablation
    • 6.15 Transparent surface elements
    • 6.16 Visualizing SPARTA output with ParaView
    • 6.17 Custom per-particle, per-grid, per-surf attributes
    • 6.18 Variable timestep simulations
    • 6.19 Details of particles in SPARTA
  • 7. Example problems
  • 8. Performance & scalability
  • 9. Additional tools
    • dump2cfg tool
    • dump2xyz tool
    • grid_refine tool
    • implicit_grid tool
    • jagged tools
    • log2txt tool
    • logplot tool
    • paraview tools
    • stl2surf tool
    • surf_create tool
    • surf_transform tool
  • 10. Modifying & extending SPARTA
    • 10.1 Compute styles
    • 10.2 Fix styles
    • 10.3 Region styles
    • 10.4 Collision styles
    • 10.5 Surface collision styles
    • 10.6 Chemistry styles
    • 10.7 Dump styles
    • 10.8 Input script commands
  • 11. Python interface to SPARTA
    • 11.1 Building SPARTA as a shared library
    • 11.2 Installing the Python wrapper into Python
    • 11.3 Extending Python with MPI to run in parallel
    • 11.4 Testing the Python-SPARTA interface
      • Test SPARTA and Python in serial:
      • Test SPARTA and Python in parallel:
      • Running Python scripts:
    • 11.5 Using SPARTA from Python
    • 11.6 Example Python scripts that use SPARTA
    • 11.7 Calling Python from SPARTA
  • 12. Errors
    • 12.1 Common problems
    • 12.2 Reporting bugs
    • 12.3 Error & warning messages
    • Errors:
    • Warnings:
  • 13. Future and history
    • 13.1 Coming attractions
    • 13.2 Past versions
  • adapt_grid command
  • balance_grid command
  • bound_modify command
  • boundary command
  • clear command
  • collide command
  • collide_modify command
  • compute command
  • compute boundary command
  • compute count command
  • compute count/kk command
  • compute distsurf/grid command
  • compute distsurf/grid/kk command
  • compute dt/grid command
  • compute dt/grid/kk command
  • compute eflux/grid command
  • compute eflux/grid/kk command
  • compute fft/grid command
  • compute fft/grid/kk command
  • compute gas/collision/grid command
  • compute gas/collision/tally command
  • compute gas/reaction/grid command
  • compute reaction/tally command
  • compute grid command
  • compute grid/kk command
  • compute isurf/grid command
  • compute isurf/grid/kk command
  • compute ke/particle command
  • compute ke/particle/kk command
  • compute lambda/grid command
  • compute lambda/grid/kk command
  • compute pflux/grid command
  • compute pflux/grid/kk command
  • compute property/grid command
  • compute property/grid/kk command
  • compute property/surf command
  • compute property/surf/kk command
  • compute react/boundary command
  • compute react/boundary/kk command
  • compute react/isurf/grid command
  • compute react/isurf/grid/kk command
  • compute react/surf command
  • compute react/surf/kk command
  • compute reduce command
  • compute reduce/kk command
  • compute sonine/grid command
  • compute sonine/grid/kk command
  • compute surf command
  • compute surf/kk command
  • compute surf/collision/tally command
  • compute surf/reaction/tally command
  • compute temp command
  • compute temp/kk command
  • compute thermal/grid command
  • compute thermal/grid/kk command
  • compute tvib/grid command
  • create_box command
  • create_grid command
  • create_isurf command
  • create_particles command
  • create_particles/kk command
  • custom command
  • dimension command
  • dump command
  • dump image command
  • dump image command
  • dump movie command
    • Rendering of particles
    • Rendering of grid cells
    • Rendering of surface elements
  • dump_modify command
  • dump particle/vtk command
  • dump grid/vtk command
  • dump surf/vtk command
  • echo command
  • fix command
  • fix ablate command
  • fix adapt command
  • fix adapt/kk command
  • fix ambipolar command
  • fix ambipolar command/kk
  • fix ave/grid command
  • fix ave/grid/kk command
  • fix ave/histo command
  • fix ave/histo/kk command
  • fix ave/histo/weight command
  • fix ave/histo/weight/kk command
  • fix ave/surf command
  • fix ave/time command
  • fix balance command
  • fix balance/kk command
  • fix controller command
  • fix custom command
  • fix dt/reset command
  • fix emit/face command
  • fix emit/face/kk command
  • fix emit/face/file command
  • fix emit/surf command
  • fix field/grid command
  • fix field/particle command
  • fix grid/check command
  • fix grid/check/kk command
  • fix halt command
  • fix move/surf command
  • fix move/surf/kk command
  • fix print command
  • fix surf/temp command
  • fix temp/global/rescale command
  • fix temp/global/rescale/kk command
  • fix temp/rescale command
  • fix temp/rescale/kk command
  • fix vibmode command
  • global command
  • group command
  • if command
  • include command
  • jump command
  • label command
  • log command
  • mixture command
  • move_surf command
  • next command
  • package command
  • partition command
  • print command
  • python command
  • quit command
  • react command
  • react_modify command
  • read_grid command
  • read_isurf command
  • read_particles command
  • read_restart command
  • read_surf command
  • region command
  • remove_surf command
  • reset_timestep command
  • restart command
  • run command
  • scale_particles command
  • seed command
  • shell command
  • species command
  • species_modify command
  • stats command
  • stats_modify command
  • stats_style command
  • suffix command
  • surf_collide command
  • surf_modify command
  • surf_react command
  • surf_react adsorb command
  • surf_react adsorb command
  • surf_react adsorb/kk command
  • timestep command
  • uncompute command
  • undump command
  • unfix command
  • units command
  • variable command
    • Math Operators
    • Math Functions
    • Special Functions
    • Particle Vectors
    • Grid Vectors
    • Compute References
    • Fix References
    • Custom Attribute References
    • Surface Collision and Surface Reaction Model References
    • Variable References
  • write_grid command
  • write_isurf command
  • write_restart command
  • write_surf command
SPARTA
  • print command

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"
print 'Done with equilibration'
print "Done with equilibration" file info.dat

compute myTemp temp
variable t equal c_myTemp
print "The system temperature is now $t"

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 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 (e.g. 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, 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.

Previous Next

© Copyright Sandia National Laboratories.

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