![]() |
|
Defines the non-averaged directions on which spatial coarse-graining is applied (the x-direction for X); all other directions are averaged
over homogeneously.
More...
#include <X.h>
Inheritance diagram for CGCoordinates::X:Public Member Functions | |
| void | write (std::ostream &os) const |
| Writes the coordinates in human-readable form to an ostream. More... | |
| Mdouble | getDistanceSquared (const Vec3D &p) const |
| Returns the square of the distance between the particle p and the current CGPoint, in the non-averaged directions. More... | |
| void | setX (Mdouble x) |
| Returns the position of the current CGPoint, in the non-averaged directions. More... | |
| Mdouble | getX () const |
| Mdouble | getINormal (const BaseInteraction &c, const Vec3D &normal) const |
| For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards I. More... | |
| Mdouble | getPNormal (const BaseInteraction &c, const Vec3D &normal) const |
| For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards P. More... | |
| Mdouble | getCNormal (const BaseInteraction &c, const Vec3D &normal) const |
| For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards the contact point. More... | |
Public Member Functions inherited from CGCoordinates::BaseCoordinates | |
| virtual Mdouble | getWeight () |
Static Public Member Functions | |
| static void | writeNames (std::ostream &os) |
| Writes the coordinate names in human-readable form to an ostream. More... | |
| static Mdouble | getVolumeOfAveragedDimensions (const Vec3D &min, const Vec3D &max) |
| returns the factor the CGFunction has to be divided by, due to integrating the variables over the averaged dimensions, 1.0 for XYZ. More... | |
| static Mdouble | getLength (const Vec3D &p) |
| Returns the length of the input vector in the non-averaged directions. More... | |
| static bool | isResolvedIn (unsigned i) |
| static std::string | getName () |
Static Public Member Functions inherited from CGCoordinates::Base_X_Y_Z | |
| static Mdouble | getGaussPrefactor (Mdouble width, Mdouble cutoff) |
| Computes the prefactor of the Gauss CGFunction, which is dependent on the number of non-averaged dimensions. More... | |
| static Mdouble | getGaussIntegralPrefactor (Mdouble distance, Mdouble width, Mdouble cutoff) |
| Computes the prefactor of the Gauss line integral, which is dependent on the number of non-averaged dimensions. More... | |
| static void | normalisePolynomialCoefficients (std::vector< Mdouble > &coefficients, Mdouble cutoff) |
| Normalises the coefficients of Polynomial CGFunction such that the integral over all non-averaged dimensions is unity. More... | |
| static const unsigned | countVariables () |
Static Public Member Functions inherited from CGCoordinates::BaseCoordinates | |
| static Mdouble | getDomainVolume (const Vec3D &min, const Vec3D &max) |
Protected Attributes | |
| Mdouble | x_ |
Defines the non-averaged directions on which spatial coarse-graining is applied (the x-direction for X); all other directions are averaged
over homogeneously.
See XYZ for details.
| Mdouble X::getCNormal | ( | const BaseInteraction & | c, |
| const Vec3D & | normal | ||
| ) | const |
For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards the contact point.
References calibrate::c, WallFunction::normal(), and x_.
Returns the square of the distance between the particle p and the current CGPoint, in the non-averaged directions.
References p, mathsFunc::square(), and x_.
| Mdouble X::getINormal | ( | const BaseInteraction & | c, |
| const Vec3D & | normal | ||
| ) | const |
For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards I.
References calibrate::c, WallFunction::normal(), and x_.
Returns the length of the input vector in the non-averaged directions.
| [in] | p | vector whose length should be determined |
References boost::multiprecision::fabs(), and p.
| Mdouble X::getPNormal | ( | const BaseInteraction & | c, |
| const Vec3D & | normal | ||
| ) | const |
For the Interaction between particles/walls P and I, this function returns the dot product between the normal vector of the interaction and the branch vector from the current CGPoint towards P.
References calibrate::c, WallFunction::normal(), and x_.
returns the factor the CGFunction has to be divided by, due to integrating the variables over the averaged dimensions, 1.0 for XYZ.
| void X::setX | ( | Mdouble | x | ) |
Returns the position of the current CGPoint, in the non-averaged directions.
References plotDoE::x, and x_.
| void X::write | ( | std::ostream & | os | ) | const |
|
static |
|
protected |
The x-position of the current CGPoint.
Referenced by getCNormal(), getDistanceSquared(), getINormal(), getPNormal(), getX(), setX(), and write().