Recent site activity

APBS‎ > ‎User guide‎ > ‎Running APBS‎ > ‎Input files‎ > ‎

PRINT input file section

This is a very simple section that allows linear combinations of calculated properties to be written to standard output.

The syntax of this section is
PRINT {what} [id op id op...] END 

The first mandatory argument is what, the quantity to manipulate or print. This variable is a string that can assume the following values:
  • energy Print energies as calculated with an earlier calcenergy ELEC command. Warning: this keyword is deprecated and will be removed soon. Please use elecEnergy or apolEnergy as appropriate to obtain the desired energy output. For now, use of this keyword will return the old results of elecEnergy.
  • force Print forces as calculated with an earlier calcforce ELEC command. Warning: this keyword is deprecated and will be removed soon. Please use elecForce or apolForce as appropriate to obtain the desired energy output.
  • elecEnergy  Print electrostatic energies as calculated with an earlier calcenergy ELEC command.
  • elecForce  Print forces as calculated with an earlier calcforce ELEC command.
  • apolEnergy  Print energies as calculated with an earlier calcenergy APOLAR command.
  • apolForce  Print forces as calculated with an earlier calcforce APOLAR command.
The next arguments are a series of id op id op id op ... id commands where every id is immediately followed by an op and another id. These options have the following form:
  • id  This is a variable string or integer denoting the ID of a particular ELEC or APOLAR calculation. String values of id are assume to correspond to the optional "names" that can be assigned to ELEC or APOLAR calculations. Integer values of id are assumed to corresponding to the sequentially-assigned integer IDs for ELEC or APOLAR calculations. These IDs start at 1 and are incremented independently for each new ELEC or AOPLAR calculation.
  • op  Specify the arithmetic operation to be performed on the calculated quantities:
    • + Addition
    • - Subtraction
Given these options, a typical PRINT declaration might look like:
# Energy change due to binding
print energy complex - ligand - protein end
# Energy change due to solvation
print energy solvated - reference end 
# Solvation energy change due to binding
print energy complex_solv - complex_ref - ligand_solv + ligand_ref - protein_solv + protein_ref end 

See the examples/ directory provided with the APBS distribution for more examples.
Comments