62 void write(std::ostream& os)
const;
135 typename std::enable_if<std::is_base_of<CGCoordinates::RZ, typename T::CoordinatesType>::value,
void>::type
138 std::size_t n0 = nAll[0];
139 std::size_t n1 = nAll[2];
142 Mdouble start0 = min.
X + 0.5 * delta0;
143 Mdouble start1 = min.
Z + 0.5 * delta1;
144 points.resize(n0 * n1);
145 for (std::size_t
i = 0;
i < n0;
i++)
147 for (std::size_t j = 0; j < n1; j++)
149 points[
i * n1 + j].coordinates.setRZ(start0 + delta0 *
i, start1 + delta1 * j);
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 XY, XZ, and YZ classes.
Definition: Base_XY_XZ_YZ.h:49
Defines the non-averaged directions on which spatial coarse-graining is applied (the x- and z-directi...
Definition: RZ.h:51
static std::string getName()
Definition: RZ.cc:94
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: RZ.cc:69
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: RZ.cc:81
static Mdouble getLength(const Vec3D &p)
Returns the length of the input vector in the non-averaged directions.
Definition: RZ.cc:64
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: RZ.cc:43
void write(std::ostream &os) const
Writes the coordinates in human-readable form to an ostream.
Definition: RZ.cc:37
Mdouble z_
Definition: RZ.h:128
static bool isResolvedIn(unsigned i)
Definition: RZ.h:115
Mdouble getTangentialSquared(const BaseInteraction &c, Mdouble pNormal) const
For the Interaction between particles/walls P and I, this function returns the square of the minimum ...
Definition: RZ.cc:87
void setRZ(Mdouble x, Mdouble z)
Returns the position of the current CGPoint, in the non-averaged directions.
Definition: RZ.cc:48
Mdouble r_
Definition: RZ.h:124
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: RZ.cc:75
static void writeNames(std::ostream &os)
Writes the coordinate names in human-readable form to an ostream.
Definition: RZ.cc:32
Mdouble getDistanceSquared(const Vec3D &p) const
Returns the square of the distance between the particle p and the current CGPoint,...
Definition: RZ.cc:54
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:77
Mdouble Z
Definition: Vector.h:66
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