#include <Dipole.h>
◆ Dipole()
33 Multipole(p, squaredFactorials, location),
Mdouble strength_
Definition: Dipole.h:48
Vec3D velocity_
Definition: Dipole.h:47
Multipole(int p, NumericalVector<> *squaredFactorials, Vec3D location)
Definition: Multipole.cc:33
◆ computeMultipoleExpansion()
void Dipole::computeMultipoleExpansion |
( |
| ) |
|
|
finalvirtual |
Reimplemented from Multipole.
41 size_t nTerms = (
p_ + 1) * (
p_ + 1);
49 multipoleExpansionCoefficients[1] = 1.0 / std::sqrt(2.0) * (-s1 + s2 /
constants::i);
50 multipoleExpansionCoefficients[2] = s3;
51 multipoleExpansionCoefficients[3] = -1.0 / (sqrt(2.0)) * (s1 + s2 /
constants::i);
double Mdouble
Definition: GeneralDefine.h:34
NumericalVector< std::complex< Mdouble > > multipoleExpansionCoefficients_
Definition: Multipole.h:74
int p_
Definition: Multipole.h:71
Definition: NumericalVector.h:64
Mdouble getComponent(int index) const
Returns the requested component of this Vec3D.
Definition: Vector.cc:194
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
References Vec3D::getComponent(), constants::i, Multipole::multipoleExpansionCoefficients_, Multipole::p_, strength_, and velocity_.
◆ getLocation()
Vec3D Dipole::getLocation |
( |
| ) |
|
|
inline |
◆ strength_
◆ velocity_
The documentation for this class was generated from the following files: