#include <lennardJones.h>
Inheritance diagram for LennardJones:

Public Types | |
Enums | |
| enum | FormatType { A_B_FORMAT, EPSILON_R_FORMAT, SLATER_KIRKWOOD_FORMAT } |
Public Member Functions | |
| virtual bool | extractSection (ForceFieldParameters ¶meters, const String §ion_name) throw () |
| Reads a parameter section from an INI file. | |
| virtual bool | extractSection (Parameters ¶meters, const String §ion_name) throw () |
| Reads a parameter section from an INI file. | |
| bool | hasParameters (Atom::Type I, Atom::Type J) const throw () |
| Queries whether a parameter set is defined for the given atom types. | |
| Values | getParameters (Atom::Type I, Atom::Type J) const throw () |
| Returns the parameters for a given atom type combination. | |
| bool | assignParameters (Values ¶meters, Atom::Type I, Atom::Type J) const throw () |
| Assign the parameters for a given atom type combination. | |
Constructors and Destructors | |
| LennardJones () throw () | |
| Default constructor. | |
| LennardJones (const LennardJones &lj) throw () | |
| Copy constructor. | |
| virtual | ~LennardJones () throw () |
| Destructor. | |
| virtual void | clear () throw () |
| Clear method. | |
Assignment | |
| const LennardJones & | operator= (const LennardJones &lj) throw () |
| Assignment operator. | |
Predicates | |
| bool | operator== (const LennardJones &lj) const throw () |
| Equality operator. | |
Protected Attributes | |
| Size | number_of_atom_types_ |
| std::vector< float > | A_ |
| std::vector< float > | B_ |
| std::vector< float > | N_ |
| std::vector< float > | Aij_ |
| std::vector< float > | Bij_ |
| std::vector< bool > | is_defined_ |
| FormatType | format_ |
| std::vector< String > | names_ |
This section reads parameters for a Lennard Jones potental (usually a 6-12 Potential). Parameters may be given in three different formats (no mixing of formats is allowed).
If the Slater-Kirkwood format is used, the values for
and
are calculated as follows (see e.g. Brooks et al., J. Comput. Chem, 4(2):187-217 (1983))
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Assign the parameters for a given atom type combination. If no parameters are defined for this combination, false is returned and nothing is changed. |
|
|
Clear method.
Reimplemented from ParameterSection. |
|
||||||||||||
|
Reads a parameter section from an INI file. This method reads the section given in section_name from ini_file, interprets (if given) a format line, reads the data from this section according to the format, and builds some datastructures for fast and easy acces to the data.
Reimplemented from ParameterSection. |
|
||||||||||||
|
Reads a parameter section from an INI file. This method reads the section given in section from ini, interprets (if given) a format line, reads the data from this section according to the format, and builds some datastructures for fast and easy access to this data. |
|
||||||||||||
|
Returns the parameters for a given atom type combination.
|
|
||||||||||||
|
Queries whether a parameter set is defined for the given atom types.
|