Definition at line 37 of file cluster.h.
Public Member Functions | |
void | addAtom (const Atom &atom) |
void | calculateCentreMass () |
void | calculateKineticEnergy () |
void | calculatePotentialEnergy () |
void | clear () |
Cluster (const Cluster &cluster) | |
Cluster () | |
double | kineticEnergyTotal () const |
Cluster & | operator= (const Cluster &rhs) |
const Atom & | operator[] (int index) const |
Atom & | operator[] (int index) |
Coordinate | positionCentreMass () const |
double | potentialEnergyTotal () const |
void | read (string baseName) |
void | setKineticEnergyTotal (double kineticEnergyTotal) |
void | setPositionCentreMass (Coordinate positionCentreMass) |
void | setPotentialEnergyTotal (double potentialEnergyTotal) |
void | setVelocityCentreMass (Coordinate velocityCentreMass) |
int | size () const |
Coordinate | velocityCentreMass () const |
void | write (string baseName) |
Static Public Attributes | |
static const int | PRECISION = 10 |
static const int | WIDTH = 18 |
Private Attributes | |
vector< Atom > | m_atoms |
double | m_kineticEnergyTotal |
Coordinate | m_positionCentreMass |
double | m_potentialEnergyTotal |
Coordinate | m_velocityCentreMass |
Friends | |
ostream & | operator<< (ostream &outStream, const Cluster &cluster) |
bool | operator== (const Cluster &lhs, const Cluster &rhs) |
|
A default constructor. Definition at line 30 of file cluster.cpp. References m_kineticEnergyTotal, and m_potentialEnergyTotal. |
|
Copy constructor.
Definition at line 35 of file cluster.cpp. |
|
Adds an atom into the cluster.
Definition at line 233 of file cluster.cpp. References m_atoms. Referenced by FCC_Lattice::createLattice(). |
|
The cluster's positional and velocity centre of mass are calculated. Definition at line 129 of file cluster.cpp. References m_atoms, m_positionCentreMass, m_velocityCentreMass, and size(). Referenced by FCC_Lattice::createLattice(), MDLJ_Simulation::run(), and MCLJ_Simulation::run(). Here is the call graph for this function: |
|
Calculates the kinetic energy of the cluster and for each atom. Definition at line 116 of file cluster.cpp. References m_atoms, and m_kineticEnergyTotal. Referenced by MDLJ_Simulation::run(). |
|
Calculates the potential energy of the cluster and for each atom. Definition at line 80 of file cluster.cpp. References m_atoms, m_potentialEnergyTotal, Coordinate::x, Coordinate::y, and Coordinate::z. Referenced by MDLJ_Simulation::run(), and MCLJ_Simulation::run(). |
|
Clears the cluster. Definition at line 197 of file cluster.cpp. References m_atoms, m_kineticEnergyTotal, m_positionCentreMass, m_potentialEnergyTotal, and m_velocityCentreMass. Referenced by FCC_Lattice::createLattice(), interactiveRun(), nonInteractiveRun(), and operator=(). |
|
An accessor for the total kinetic energy.
Definition at line 45 of file cluster.cpp. References m_kineticEnergyTotal. Referenced by operator=(), and MDLJ_Simulation::run(). |
|
Assignment operator for a cluster.
Definition at line 208 of file cluster.cpp. References clear(), kineticEnergyTotal(), m_atoms, m_kineticEnergyTotal, m_positionCentreMass, m_potentialEnergyTotal, m_velocityCentreMass, positionCentreMass(), potentialEnergyTotal(), size(), and velocityCentreMass(). Here is the call graph for this function: |
|
Constant Subscript operator for the cluster.
Definition at line 228 of file cluster.cpp. References m_atoms. |
|
Subscript operator for the cluster.
Definition at line 223 of file cluster.cpp. References m_atoms. |
|
An accessor for the centre of mass' position.
Definition at line 50 of file cluster.cpp. References m_positionCentreMass. Referenced by RadialDensityHistogram::acquire(), MDLJ_Simulation::adjustPosCenMass(), FCC_Lattice::adjustPosCenMass(), and operator=(). |
|
An accessor for the total potential energy.
Definition at line 40 of file cluster.cpp. References m_potentialEnergyTotal. Referenced by MDLJ_Simulation::calculateAccelerations(), operator=(), MDLJ_Simulation::run(), and MCLJ_Simulation::run(). |
|
Reads in the position and velocity of a previous cluster.
Definition at line 144 of file cluster.cpp. References m_atoms, and Atom::properties. Referenced by interactiveRun(), and nonInteractiveRun(). |
|
A modifier for the total kinetic energy.
Definition at line 65 of file cluster.cpp. References m_kineticEnergyTotal. Referenced by MDLJ_Simulation::calculateVelocities(). |
|
A modifier for the centre of mass' position.
Definition at line 70 of file cluster.cpp. References m_positionCentreMass. Referenced by FCC_Lattice::createLattice(). |
|
A modifier for the total potential energy.
Definition at line 60 of file cluster.cpp. References m_potentialEnergyTotal. Referenced by MDLJ_Simulation::calculateAccelerations(). |
|
A modifier for the centre of mass' velocity.
Definition at line 75 of file cluster.cpp. References m_velocityCentreMass. |
|
Gives the current size of the cluster.
Definition at line 203 of file cluster.cpp. References m_atoms. Referenced by RadialDistributionFunction::acquire(), RadialDensityHistogram::acquire(), PotentialEnergyHistogram::acquire(), KineticEnergyHistogram::acquire(), MDLJ_Simulation::adjustPosCenMass(), FCC_Lattice::adjustPosCenMass(), MDLJ_Simulation::calculateAccelerations(), calculateCentreMass(), MDLJ_Simulation::calculatePositions(), MDLJ_Simulation::calculateVelocities(), interactiveRun(), operator<<(), operator=(), operator==(), MCLJ_Simulation::potentialEnergyDifference(), MDLJ_Simulation::run(), MCLJ_Simulation::run(), selectSimulation(), and MD_Simulation::writeAverages(). |
|
An accessor for the centre of mass' velocity.
Definition at line 55 of file cluster.cpp. References m_velocityCentreMass. Referenced by operator=(). |
|
Writes out the position and velocity of the cluster.
Definition at line 169 of file cluster.cpp. References m_atoms, and PRECISION. Referenced by createCluster(), interactiveRun(), and nonInteractiveRun(). |
|
Outputs the contents of the cluster in the format of:
Definition at line 238 of file cluster.cpp. |
|
Equivelant operator for the cluster.
Definition at line 261 of file cluster.cpp. |
|
Definition at line 199 of file cluster.h. Referenced by addAtom(), calculateCentreMass(), calculateKineticEnergy(), calculatePotentialEnergy(), clear(), operator=(), operator[](), read(), size(), and write(). |
|
Definition at line 197 of file cluster.h. Referenced by calculateKineticEnergy(), clear(), Cluster(), kineticEnergyTotal(), operator=(), operator==(), and setKineticEnergyTotal(). |
|
Definition at line 191 of file cluster.h. Referenced by calculateCentreMass(), clear(), operator=(), operator==(), positionCentreMass(), and setPositionCentreMass(). |
|
Definition at line 195 of file cluster.h. Referenced by calculatePotentialEnergy(), clear(), Cluster(), operator=(), operator==(), potentialEnergyTotal(), and setPotentialEnergyTotal(). |
|
Definition at line 193 of file cluster.h. Referenced by calculateCentreMass(), clear(), operator=(), operator==(), setVelocityCentreMass(), and velocityCentreMass(). |
|
Definition at line 44 of file cluster.h. Referenced by operator<<(), MDLJ_Simulation::run(), MCLJ_Simulation::run(), RadialDistributionFunction::write(), RadialDensityHistogram::write(), PotentialEnergyHistogram::write(), KineticEnergyHistogram::write(), and write(). |
|
Definition at line 49 of file cluster.h. Referenced by MDLJ_Simulation::run(), and MCLJ_Simulation::run(). |