votca 2024.2-dev
|
Class to represent Atom/Site in electrostatic. More...
#include <staticsite.h>
Classes | |
struct | data |
Public Member Functions | |
StaticSite (Index id, std::string element, Eigen::Vector3d pos) | |
StaticSite (Index id, std::string element) | |
StaticSite (const data &d) | |
StaticSite (const QMAtom &atom, double charge) | |
virtual | ~StaticSite ()=default |
Index | getId () const |
Index | getRank () const |
const std::string & | getElement () const |
const Eigen::Vector3d & | getPos () const |
void | setMultipole (const Vector9d &multipole, Index rank) |
void | setCharge (double q) |
void | setPos (const Eigen::Vector3d &position) |
void | Translate (const Eigen::VectorXd &shift) |
virtual void | Rotate (const Eigen::Matrix3d &R, const Eigen::Vector3d &refPos) |
double | getCharge () const |
const Vector9d & | Q () const |
virtual Eigen::Vector3d | getDipole () const |
Eigen::Matrix3d | CalculateCartesianMultipole () const |
std::string | WriteMpsLine (std::string unit="bohr") const |
void | WriteData (data &d) const |
void | ReadData (const data &d) |
virtual void | setpolarization (const Eigen::Matrix3d &) |
virtual std::string | identify () const |
Static Public Member Functions | |
static Eigen::VectorXd | CalculateSphericalMultipole (const Eigen::Matrix3d &quad_cart) |
static void | SetupCptTable (CptTable &table) |
Protected Member Functions | |
StaticSite ()=default | |
virtual std::string | writepolarization () const |
Protected Attributes | |
Index | id_ = -1 |
std::string | element_ = "" |
Eigen::Vector3d | pos_ = Eigen::Vector3d::Zero() |
Index | rank_ = 0 |
Vector9d | Q_ = Vector9d::Zero() |
Friends | |
std::ostream & | operator<< (std::ostream &out, const StaticSite &site) |
Class to represent Atom/Site in electrostatic.
The units are atomic units, e.g. Bohr, Hartree.
Definition at line 37 of file staticsite.h.
|
inline |
Definition at line 59 of file staticsite.h.
|
inline |
Definition at line 62 of file staticsite.h.
|
inline |
Definition at line 65 of file staticsite.h.
|
inline |
Definition at line 67 of file staticsite.h.
|
virtualdefault |
|
protecteddefault |
Eigen::Matrix3d votca::xtp::StaticSite::CalculateCartesianMultipole | ( | ) | const |
Definition at line 37 of file staticsite.cc.
|
static |
Definition at line 54 of file staticsite.cc.
|
inline |
Definition at line 99 of file staticsite.h.
|
inlinevirtual |
Reimplemented in votca::xtp::PolarSite.
Definition at line 105 of file staticsite.h.
|
inline |
Definition at line 79 of file staticsite.h.
|
inline |
Definition at line 77 of file staticsite.h.
|
inline |
Definition at line 80 of file staticsite.h.
|
inline |
Definition at line 78 of file staticsite.h.
|
inlinevirtual |
Reimplemented in votca::xtp::PolarSite.
Definition at line 120 of file staticsite.h.
|
inline |
Definition at line 100 of file staticsite.h.
void votca::xtp::StaticSite::ReadData | ( | const data & | d | ) |
Definition at line 175 of file staticsite.cc.
|
virtual |
Reimplemented in votca::xtp::PolarSite.
Definition at line 66 of file staticsite.cc.
|
inline |
Definition at line 87 of file staticsite.h.
Definition at line 82 of file staticsite.h.
|
inlinevirtual |
Reimplemented in votca::xtp::PolarSite.
Definition at line 118 of file staticsite.h.
|
inline |
Definition at line 92 of file staticsite.h.
|
static |
Definition at line 134 of file staticsite.cc.
void votca::xtp::StaticSite::Translate | ( | const Eigen::VectorXd & | shift | ) |
Definition at line 83 of file staticsite.cc.
void votca::xtp::StaticSite::WriteData | ( | data & | d | ) | const |
Definition at line 155 of file staticsite.cc.
std::string votca::xtp::StaticSite::WriteMpsLine | ( | std::string | unit = "bohr" | ) | const |
Definition at line 100 of file staticsite.cc.
|
protectedvirtual |
Reimplemented in votca::xtp::PolarSite.
Definition at line 88 of file staticsite.cc.
|
friend |
Definition at line 122 of file staticsite.h.
|
protected |
Definition at line 132 of file staticsite.h.
|
protected |
Definition at line 131 of file staticsite.h.
|
protected |
Definition at line 133 of file staticsite.h.
|
protected |
Definition at line 136 of file staticsite.h.
|
protected |
Definition at line 134 of file staticsite.h.