42 void write(std::ostream& os)
const;
118 std::size_t n0 = nAll[0];
119 std::size_t n1 = nAll[1];
124 points.resize(n0 * n1);
125 for (std::size_t
i = 0;
i < n0;
i++)
127 for (std::size_t
j = 0;
j < n1;
j++)
129 points[
i * n1 +
j].coordinates.setXY(start0 + delta0 *
i, start1 + delta1 *
j);
int i
Definition: BiCGSTAB_step_by_step.cpp:9
float * p
Definition: Tutorial_Map_using.cpp:9
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Contains common member functions of the XY, XZ, and YZ classes.
Definition: Base_XY_XZ_YZ.h:29
Defines the non-averaged directions on which spatial coarse-graining is applied (the x- and y-directi...
Definition: XY.h:31
static Mdouble getLength(const Vec3D &p)
Returns the length of the input vector in the non-averaged directions.
Definition: XY.cc:43
void setXY(Mdouble x, Mdouble y)
Returns the position of the current CGPoint, in the non-averaged directions.
Definition: XY.cc:27
Mdouble getDistanceSquared(const Vec3D &p) const
Returns the square of the distance between the particle p and the current CGPoint,...
Definition: XY.cc:33
static void writeNames(std::ostream &os)
Writes the coordinate names in human-readable form to an ostream.
Definition: XY.cc:11
Mdouble x_
Definition: XY.h:104
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: XY.cc:60
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: XY.cc:66
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: XY.cc:54
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: XY.cc:22
void write(std::ostream &os) const
Writes the coordinates in human-readable form to an ostream.
Definition: XY.cc:16
Mdouble y_
Definition: XY.h:108
static bool isResolvedIn(unsigned i)
Definition: XY.h:95
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: XY.cc:48
static std::string getName()
Definition: XY.cc:73
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:56
Definition: Kernel/Math/Vector.h:30
#define min(a, b)
Definition: datatypes.h:22
#define max(a, b)
Definition: datatypes.h:23
Scalar * y
Definition: level1_cplx_impl.h:128
The class in this namespace contain the position of a CGPoint, in the non-averaged directions,...
Definition: Base_X_Y_Z.h:21
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:81
squared absolute value
Definition: GlobalFunctions.h:87
void normal(const Vector< double > &x, Vector< double > &normal)
Definition: free_surface_rotation.cc:65
int c
Definition: calibrate.py:100
type
Definition: compute_granudrum_aor.py:141
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
list x
Definition: plotDoE.py:28
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2