OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Thermo Class Reference

Public Member Functions

 Thermo (SimInfo *info)
 
RealType getTranslationalKinetic ()
 
RealType getRotationalKinetic ()
 
RealType getElectronicKinetic ()
 
RealType getKinetic ()
 
RealType getPotential ()
 
potVec getSelectionPotentials ()
 
RealType getTotalEnergy ()
 
RealType getTemperature ()
 
RealType getElectronicTemperature ()
 
RealType getNetCharge ()
 
RealType getChargeMomentum ()
 
std::vector< Vector3dgetCurrentDensity ()
 
RealType getPressure ()
 
RealType getPressure (Snapshot *snap)
 
Mat3x3d getPressureTensor ()
 gives the pressure tensor in amu*fs^-2*Ang^-1
 
Mat3x3d getPressureTensor (Snapshot *snap)
 gives the pressure tensor in amu*fs^-2*Ang^-1 for a given snapshot
 
RealType getVolume ()
 
Vector3d getSystemDipole ()
 accumulate and return the simulation box dipole moment in C*m
 
Mat3x3d getSystemQuadrupole ()
 accumulate and return the simulation box dipole moment in debye Angstroms
 
Vector3d getHeatFlux ()
 
Vector3d getCom ()
 Returns the center of the mass of the whole system.
 
Vector3d getComVel ()
 Returns the velocity of center of mass of the whole system.
 
void getComAll (Vector3d &com, Vector3d &comVel)
 Returns the center of the mass and Center of Mass velocity of the whole system.
 
void getInertiaTensor (Mat3x3d &inertiaTensor, Vector3d &angularMomentum)
 Returns the inertia tensor and the total angular momentum for for the entire system.
 
Mat3x3d getBoundingBox ()
 Returns the Axis-aligned bounding box for the current system.
 
Vector3d getAngularMomentum ()
 Returns system angular momentum.
 
RealType getGyrationalVolume ()
 Returns volume of system as estimated by an ellipsoid defined by the radii of gyration.
 
void getGyrationalVolume (RealType &vol, RealType &detI)
 Overloaded version of gyrational volume that also returns det(I) so dV/dr can be calculated.
 
RealType getHullVolume ()
 
RealType getTaggedAtomPairDistance ()
 

Detailed Description

Definition at line 53 of file Thermo.hpp.

Constructor & Destructor Documentation

◆ Thermo()

OpenMD::Thermo::Thermo ( SimInfo * info)
inline

Definition at line 55 of file Thermo.hpp.

Member Function Documentation

◆ getAngularMomentum()

◆ getBoundingBox()

◆ getChargeMomentum()

RealType OpenMD::Thermo::getChargeMomentum ( )

Definition at line 302 of file Thermo.cpp.

◆ getCom()

◆ getComAll()

void OpenMD::Thermo::getComAll ( Vector3d & com,
Vector3d & comVel )

◆ getComVel()

◆ getCurrentDensity()

std::vector< Vector3d > OpenMD::Thermo::getCurrentDensity ( )

Definition at line 336 of file Thermo.cpp.

◆ getElectronicKinetic()

RealType OpenMD::Thermo::getElectronicKinetic ( )

Definition at line 216 of file Thermo.cpp.

◆ getElectronicTemperature()

RealType OpenMD::Thermo::getElectronicTemperature ( )

Definition at line 250 of file Thermo.cpp.

◆ getGyrationalVolume() [1/2]

RealType OpenMD::Thermo::getGyrationalVolume ( )

Returns volume of system as estimated by an ellipsoid defined by the radii of gyration.

Returns the Volume of the system based on a ellipsoid with semi-axes based on the radius of gyration V=4/3*Pi*R_1*R_2*R_3 where R_i are related to the principle inertia moments R_i = sqrt(C*I_i/N), this reduces to V = 4/3*Pi*(C/N)^3/2*sqrt(det(I)).

See S.E. Baltazar et. al. Comp. Mat. Sci. 37 (2006) 526-536.

Definition at line 1082 of file Thermo.cpp.

References OpenMD::SquareMatrix3< Real >::determinant(), OpenMD::SnapshotManager::getCurrentSnapshot(), getInertiaTensor(), OpenMD::SimInfo::getNGlobalIntegrableObjects(), and OpenMD::SimInfo::getSnapshotManager().

◆ getGyrationalVolume() [2/2]

void OpenMD::Thermo::getGyrationalVolume ( RealType & vol,
RealType & detI )

Overloaded version of gyrational volume that also returns det(I) so dV/dr can be calculated.

Definition at line 1108 of file Thermo.cpp.

References OpenMD::SquareMatrix3< Real >::determinant(), OpenMD::SnapshotManager::getCurrentSnapshot(), getInertiaTensor(), OpenMD::SimInfo::getNGlobalIntegrableObjects(), and OpenMD::SimInfo::getSnapshotManager().

◆ getHeatFlux()

Vector3d OpenMD::Thermo::getHeatFlux ( )

Definition at line 693 of file Thermo.cpp.

◆ getHullVolume()

RealType OpenMD::Thermo::getHullVolume ( )

Definition at line 1190 of file Thermo.cpp.

◆ getInertiaTensor()

void OpenMD::Thermo::getInertiaTensor ( Mat3x3d & inertiaTensor,
Vector3d & angularMomentum )

Returns the inertia tensor and the total angular momentum for for the entire system.

Return inertia tensor for entire system and angular momentum Vector.

Parameters
[out]inertiaTensorthe inertia tensor
[out]angularMomentumthe angular momentum vector

[ Ixx -Ixy -Ixz ] I =| -Iyx Iyy -Iyz | [ -Izx -Iyz Izz ]

Definition at line 895 of file Thermo.cpp.

References OpenMD::SimInfo::beginMolecule(), OpenMD::cross(), OpenMD::StuntDouble::getA(), OpenMD::RectMatrix< Real, Row, Col >::getArrayPointer(), OpenMD::Vector< Real, Dim >::getArrayPointer(), getComAll(), OpenMD::SnapshotManager::getCurrentSnapshot(), OpenMD::StuntDouble::getI(), OpenMD::StuntDouble::getJ(), OpenMD::StuntDouble::getMass(), OpenMD::StuntDouble::getPos(), OpenMD::SimInfo::getSnapshotManager(), OpenMD::StuntDouble::getVel(), OpenMD::StuntDouble::isDirectional(), and OpenMD::SimInfo::nextMolecule().

Referenced by getGyrationalVolume(), getGyrationalVolume(), and OpenMD::Velocitizer::removeAngularDrift().

◆ getKinetic()

RealType OpenMD::Thermo::getKinetic ( )

Definition at line 152 of file Thermo.cpp.

◆ getNetCharge()

RealType OpenMD::Thermo::getNetCharge ( )

Definition at line 263 of file Thermo.cpp.

◆ getPotential()

RealType OpenMD::Thermo::getPotential ( )

Definition at line 164 of file Thermo.cpp.

◆ getPressure() [1/2]

RealType OpenMD::Thermo::getPressure ( )

Definition at line 413 of file Thermo.cpp.

◆ getPressure() [2/2]

RealType OpenMD::Thermo::getPressure ( Snapshot * snap)

Definition at line 433 of file Thermo.cpp.

◆ getPressureTensor() [1/2]

◆ getPressureTensor() [2/2]

Mat3x3d OpenMD::Thermo::getPressureTensor ( Snapshot * snap)

◆ getRotationalKinetic()

RealType OpenMD::Thermo::getRotationalKinetic ( )

Definition at line 104 of file Thermo.cpp.

◆ getSelectionPotentials()

potVec OpenMD::Thermo::getSelectionPotentials ( )

Definition at line 172 of file Thermo.cpp.

◆ getSystemDipole()

◆ getSystemQuadrupole()

◆ getTaggedAtomPairDistance()

RealType OpenMD::Thermo::getTaggedAtomPairDistance ( )

Definition at line 1134 of file Thermo.cpp.

◆ getTemperature()

RealType OpenMD::Thermo::getTemperature ( )

Definition at line 193 of file Thermo.cpp.

◆ getTotalEnergy()

RealType OpenMD::Thermo::getTotalEnergy ( )

Definition at line 180 of file Thermo.cpp.

◆ getTranslationalKinetic()

RealType OpenMD::Thermo::getTranslationalKinetic ( )

Definition at line 68 of file Thermo.cpp.

◆ getVolume()

RealType OpenMD::Thermo::getVolume ( )

Definition at line 408 of file Thermo.cpp.


The documentation for this class was generated from the following files: