- 1.7
- 1.6
- 1.5
- Beta
- Examples (for 1.6a)
- Misc
Calculate energies for models and trajectory frames. All printing commands refer to the last energy calculated for either the model or a trajectory frame.
Syntax:
double ecut( | ); |
double ecut( | cutoff); |
double | cutoff; |
Return (or set and return) the cutoff radius used in calculation of the electrostatics for a system.
For example:
ecut(15.0);
sets the electrostatic cutoff radius to 15.0 Å.
Syntax:
void elec( | type = "none"); |
string | type = "none"; |
void elec( | "coulomb"); |
| "coulomb"; |
void elec( | "ewald", | |
| alpha, | ||
| kx, | ||
| ky, | ||
kz); |
| "ewald"; |
double | alpha; |
int | kx; |
int | ky; |
int | kz; |
void elec( | "ewaldauto", | |
precision); |
| "ewaldauto"; |
double | precision; |
Set the style of electrostatic energy calculation to use, either no electrostatics, coulombic (non-periodic) electrostatics, or Ewald-based electrostatics. For the latter, either the various parameters may be defined explicitly (when "ewald" is the chosen method) or may be estimated for the current system by using "ewaldauto".
Syntax:
double frameenergy( | ); |
Calculate energy of the current frame of the trajectory associated with the current model.
For example:
double energy = frameenergy();
Syntax:
double modelenergy( | ); |
Calculate the energy of the current model, which can then be printed out (in whole or by parts) by the other subcommands.
For example:
double e = modelenergy();
Syntax:
void printelec( | ); |
Prints out the electrostatic energy decomposition matrix.
For example:
printelec();
Syntax:
void printinter( | ); |
Prints out the total inter-pattern energy decomposition matrix.
For example:
printinter();
Syntax:
void printintra( | ); |
Prints out the total intramolecular energy decomposition matrix.
For example:
printintra();
Syntax:
void printenergy( | ); |
Prints the elements of the calculated energy in a list.
For example:
printenergy();
Syntax:
void printsummary( | ); |
Print out a one-line summary of the calculated energy.
For example:
printsummary();

