votca 2024.2-dev
|
Container for segments and box and atoms. More...
#include <topology.h>
Public Member Functions | |
Topology ()=default | |
Topology (const Topology &top) | |
Topology & | operator= (const Topology &top) |
Segment & | AddSegment (std::string segment_name) |
Segment & | getSegment (Index id) |
const Segment & | getSegment (Index id) const |
std::vector< Segment > & | Segments () |
const std::vector< Segment > & | Segments () const |
Eigen::Vector3d | PbShortestConnect (const Eigen::Vector3d &r1, const Eigen::Vector3d &r2) const |
const Eigen::Matrix3d & | getBox () const |
double | BoxVolume () const |
void | setBox (const Eigen::Matrix3d &box, csg::BoundaryCondition::eBoxtype boxtype=csg::BoundaryCondition::typeAuto) |
QMNBList & | NBList () |
const QMNBList & | NBList () const |
Index | getStep () const |
void | setStep (Index step) |
double | getTime () const |
void | setTime (double time) |
void | WriteToCpt (CheckpointWriter &w) const |
void | WriteToPdb (std::string filename) const |
void | ReadFromCpt (CheckpointReader &r) |
double | GetShortestDist (const Segment &seg1, const Segment &seg2) const |
std::vector< const Segment * > | FindAllSegmentsOnMolecule (const Segment &seg1, const Segment &seg2) const |
Private Member Functions | |
csg::BoundaryCondition::eBoxtype | AutoDetectBoxType (const Eigen::Matrix3d &box) |
Static Private Member Functions | |
static constexpr int | topology_version () |
Private Attributes | |
std::vector< Segment > | segments_ |
std::unique_ptr< csg::BoundaryCondition > | bc_ = nullptr |
QMNBList | nblist_ |
double | time_ |
Index | step_ |
Container for segments and box and atoms.
Definition at line 41 of file topology.h.
|
default |
votca::xtp::Topology::Topology | ( | const Topology & | top | ) |
Definition at line 37 of file topology.cc.
Segment & votca::xtp::Topology::AddSegment | ( | std::string | segment_name | ) |
Definition at line 65 of file topology.cc.
|
private |
Definition at line 103 of file topology.cc.
|
inline |
Definition at line 65 of file topology.h.
std::vector< const Segment * > votca::xtp::Topology::FindAllSegmentsOnMolecule | ( | const Segment & | seg1, |
const Segment & | seg2 ) const |
Definition at line 149 of file topology.cc.
|
inline |
Definition at line 64 of file topology.h.
Definition at line 55 of file topology.h.
Definition at line 56 of file topology.h.
Definition at line 134 of file topology.cc.
|
inline |
Definition at line 75 of file topology.h.
|
inline |
Definition at line 77 of file topology.h.
|
inline |
Definition at line 70 of file topology.h.
|
inline |
Definition at line 71 of file topology.h.
Definition at line 49 of file topology.cc.
Eigen::Vector3d votca::xtp::Topology::PbShortestConnect | ( | const Eigen::Vector3d & | r1, |
const Eigen::Vector3d & | r2 ) const |
Definition at line 129 of file topology.cc.
void votca::xtp::Topology::ReadFromCpt | ( | CheckpointReader & | r | ) |
Definition at line 198 of file topology.cc.
|
inline |
Definition at line 58 of file topology.h.
|
inline |
Definition at line 59 of file topology.h.
void votca::xtp::Topology::setBox | ( | const Eigen::Matrix3d & | box, |
csg::BoundaryCondition::eBoxtype | boxtype = csg::BoundaryCondition::typeAuto ) |
Definition at line 74 of file topology.cc.
|
inline |
Definition at line 76 of file topology.h.
|
inline |
Definition at line 78 of file topology.h.
|
inlinestaticconstexprprivate |
Definition at line 103 of file topology.h.
void votca::xtp::Topology::WriteToCpt | ( | CheckpointWriter & | w | ) | const |
Definition at line 183 of file topology.cc.
void votca::xtp::Topology::WriteToPdb | ( | std::string | filename | ) | const |
Definition at line 171 of file topology.cc.
|
private |
Definition at line 94 of file topology.h.
|
private |
Definition at line 95 of file topology.h.
|
private |
Definition at line 92 of file topology.h.
|
private |
Definition at line 98 of file topology.h.
|
private |
Definition at line 97 of file topology.h.