#include <periodicBoundary.h>
Classes |
|
struct | Default |
Default values. More... |
|
Public Types |
|
Type definitions
|
|
typedef std::pair< Size, Size > | AtomIndexPair |
typedef std::vector < AtomIndexPair > |
AtomIndexArray |
Public Member Functions |
|
Constructors and Destructors
|
|
PeriodicBoundary () | |
Default constructor. |
|
PeriodicBoundary (const ForceField &force_field) | |
Constructor. |
|
PeriodicBoundary (const PeriodicBoundary &periodic_boundary) | |
Copy constructor. |
|
virtual | ~PeriodicBoundary () |
Destructor. |
|
Assignment
|
|
PeriodicBoundary & | operator= (const PeriodicBoundary &periodic_boundary) |
Assignment operator. |
|
virtual void | clear () |
Clear method. |
|
Setup Methods
|
|
bool | setup () |
Sets up the periodic box. |
|
Size | generateMoleculesVector () |
Generate the vector of molecules of
the system. |
|
Accessors
|
|
void | enable () |
Enable periodic boundary
conditions. |
|
void | disable () |
Disable periodic boundary
conditions. |
|
SimpleBox3 | getBox () const |
Retrieve the box
dimensions. |
|
void | setBox (const SimpleBox3 &box) |
Set the box dimensions. |
|
Size | addSolvent (const String &filename) const |
Fill the defined box with a solvent.
|
|
Size | removeSolvent () const |
Removes all solvent molecules This
method removes all molecules that have the property
Molecule::PROPERTY__PERIODIC_BOX_SOLVENT set from
the force field's system. |
|
Predicates
|
|
bool | isEnabled () const |
Returns true if the periodic
boundary is enabled. |
|
Periodic boundary methods
|
|
void | updateMolecules () |
Checks which molecules are inside
the box. |
|
Public Attributes |
|
Variables
|
|
Options * | options |
Periodic Boundary options. |
Molecular Mechanics: class representing periodic boundary conditions.
Size BALL::PeriodicBoundary::addSolvent | ( | const String & | filename | ) | const |
Fill the defined box with a solvent.
This method fills the defined box with solvent molecules. If no box is defined, no solvent is added. The neccessary solvent box template is either taken from the options (solvent_file) or a default is assumed.
bool BALL::PeriodicBoundary::isEnabled | ( | ) | const |
Size BALL::PeriodicBoundary::removeSolvent | ( | ) | const |
Removes all solvent molecules This method removes all molecules that have the property Molecule::PROPERTY__PERIODIC_BOX_SOLVENT set from the force field's system.
The number of removed solvent molecules is returned.
void BALL::PeriodicBoundary::setBox | ( | const SimpleBox3 & | box | ) |
void BALL::PeriodicBoundary::updateMolecules | ( | ) |
Checks which molecules are inside the box.
If the center of mass of a molecule leaves the box, it is inserted on the other side.
Periodic Boundary options.
This is usually a pointer to the options of the force field the PeriodicBoundary object is contained in.