63 void write(std::ostream& os)
const;
143 typename std::enable_if<std::is_base_of<CGCoordinates::R, typename T::CoordinatesType>::value,
void>::type
147 std::size_t
n = nAll[0];
162 delta = (-min.
X - start) /
n;
164 logger(
WARN,
"r should be positive, but x-limits are not;"
165 "grid is set within % <r<%", start, start + delta * (
n + 1));
167 start += 0.5 * delta;
169 for (std::size_t
i = 0;
i <
n;
i++)
171 points[
i].coordinates.setR(start + delta *
i);
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::WARN > WARN
Warning log level.
Definition: Logger.cc:54
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Contains common member functions of the X, Y, and Z classes.
Definition: Base_X_Y_Z.h:49
Defines the non-averaged directions on which spatial coarse-graining is applied (the x-direction for ...
Definition: R.h:52
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 th...
Definition: R.cc:67
Mdouble getDistanceSquared(const Vec3D &p) const
Returns the square of the distance between the particle p and the current CGPoint,...
Definition: R.cc:62
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 ave...
Definition: R.cc:42
Mdouble r_
Definition: R.h:135
const Mdouble getR() const
Definition: R.h:88
static std::string getName()
Definition: R.cc:129
static void writeNames(std::ostream &os)
Writes the coordinate names in human-readable form to an ostream.
Definition: R.cc:32
static void normalisePolynomialCoefficients(std::vector< Mdouble > &coefficients, Mdouble cutoff)
Normalises the coefficients of Polynomial CGFunction such that the integral over all non-averaged dim...
Definition: R.cc:108
Mdouble getWeight() override
Definition: R.cc:118
void setR(Mdouble r)
Returns the position of the current CGPoint, in the non-averaged directions.
Definition: R.cc:47
void write(std::ostream &os) const
Writes the coordinates in human-readable form to an ostream.
Definition: R.cc:37
static Mdouble getLength(const Vec3D &p)
Returns the length of the input vector in the non-averaged directions.
Definition: R.cc:57
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 th...
Definition: R.cc:91
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 th...
Definition: R.cc:79
static Mdouble getDomainVolume(const Vec3D &min, const Vec3D &max)
Definition: R.cc:123
static bool isResolvedIn(unsigned i)
Definition: R.h:126
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:77
Mdouble X
the vector components
Definition: Vector.h:66
The class in this namespace contain the position of a CGPoint, in the non-averaged directions,...
Definition: Base_X_Y_Z.h:41
std::enable_if< std::is_base_of< CGCoordinates::O, typename T::CoordinatesType >::value, void >::type spaceEvenly(Vec3D min, Vec3D max, std::vector< std::size_t > nAll, std::vector< T > &points)
Definition: O.h:101
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51