Dipole center.
More...
#include <Site.h>
|
| Dipole (double x, double y, double z, double eMyx, double eMyy, double eMyz, double absMy) |
| Constructor. More...
|
|
void | readXML (XMLfileUnits &xmlconfig) |
| Read in XML configuration for a Dipole and all its included objects. More...
|
|
double | absMy () const |
|
void | setAbyMy (double my) |
|
double | ex () const |
|
double | ey () const |
|
double | ez () const |
|
std::array< double, 3 > | e () const |
|
double | abs () const |
|
void | write (std::ostream &ostrm) const |
| write to stream More...
|
|
void | setOrientationVectorByPolarAngles (const double &theta_deg, const double &phi_deg) |
| set orientation vector using polar angles More...
|
|
void | setAbs (double abs) |
|
void | setE (int d, double e) |
|
void | normalize_e () |
|
double | rx () const |
|
double | ry () const |
|
double | rz () const |
|
std::array< double, 3 > | r () const |
|
double | m () const |
|
void | setR (int d, double r) |
|
void | setM (double m) |
|
|
| OrientedSite (double x=0., double y=0., double z=0., double m=0., double ex=0., double ey=0., double ez=0., double abs=0.) |
| Constructor. More...
|
|
| Site (double x=0., double y=0., double z=0., double m=0.) |
| Constructor. More...
|
|
std::array< double, 3 > | _e |
|
double | _abs |
|
std::array< double, 3 > | _r |
|
double | _m |
|
Dipole center.
Electrical dipole with dipole moment
.
◆ Dipole()
Dipole::Dipole |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
eMyx, |
|
|
double |
eMyy, |
|
|
double |
eMyz, |
|
|
double |
absMy |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | x | relative x coordinate |
[in] | y | relative y coordinate |
[in] | z | relative z coordinate |
[in] | eMyx | x coordinate of the dipole moments normal |
[in] | eMyy | y coordinate of the dipole moments normal |
[in] | eMyz | z coordinate of the dipole moments normal |
[in] | absMy | dipole moments absolute value |
◆ absMy()
double Dipole::absMy |
( |
| ) |
const |
|
inline |
get the absolute value of the dipole moment.
◆ readXML()
Read in XML configuration for a Dipole and all its included objects.
The following xml object structure is handled by this method:
<site>
<dipolemoment>
<x>DOUBLE</x> <y>DOUBLE</y> <z>DOUBLE</z>
<theta>DOUBLE</theta> <phi>DOUBLE</phi>
<abs>DOUBLE</abs>
</dipolemoment>
</site>
Reimplemented from Site.
◆ setAbyMy()
void Dipole::setAbyMy |
( |
double |
my | ) |
|
|
inline |
set the absolute value of the dipole moment
- Note
- after setting components of the orientation vector normalization has to be performed manually using the normalize_e() method.
The documentation for this class was generated from the following file: