26 #ifndef STATISTICSPOINT_H
27 #define STATISTICSPOINT_H
77 this->
gb->setCGShape(CG_type);
83 return this->
gb->getCGShape();
89 this->
gb->setCGWidth2(new_);
95 return this->
gb->getCGWidthSquared();
101 return this->
gb->getCGWidth();
107 return this->
gb->getCutoff();
113 return this->
gb->getCutoff2();
119 return this->
gb->getXMaxStat();
125 return this->
gb->getYMaxStat();
131 return this->
gb->getZMaxStat();
137 return this->
gb->getXMinStat();
143 return this->
gb->getYMinStat();
149 return this->
gb->getZMinStat();
153 void getN(
int& nx_,
int& ny_,
int& nz_)
155 this->
gb->getN(nx_, ny_, nz_);
161 return gb->evaluatePolynomial(r);
167 return gb->evaluatePolynomialGradient(r);
173 return gb->evaluateIntegral(n1, n2, t);
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
CG_TYPE
enum used to store the type of coarse-graining function used
Definition: StatisticsPoint.h:31
@ HeavisideSphere
Definition: StatisticsPoint.h:32
@ Polynomial
Definition: StatisticsPoint.h:32
@ Gaussian
Definition: StatisticsPoint.h:32
std::ostream & operator<<(std::ostream &os, const StatisticsPoint< T > &stat)
Implementation of a 3D matrix.
Definition: Matrix.h:38
Implementation of a 3D symmetric matrix.
Definition: MatrixSymmetric.h:37
This class is used to extract statistical data from MD simulations.
Definition: StatisticsVector.h:62
void setZero()
Sets all elements to zero.
Definition: Vector.cc:43
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73
This class stores statistical values for a given spatial position; to be used in combination with Sta...
Definition: StatisticsPoint.h:47
StatisticsPoint< T > & operator+=(const StatisticsPoint< T > &P)
Defines a plus operator needed to average values ( )
CG_TYPE getCGShape() const
see StatisticsVector::getCGShape
Definition: StatisticsPoint.h:81
Vec3D crossNonAveraged(Vec3D P, Vec3D &Q)
Returns the cross product of two vectors in the coordinates that are not averaged about.
Mdouble CG_function_2D(const Vec3D &PI)
StatisticsPoint< T > & operator-=(const StatisticsPoint< T > &P)
Defines a plus operator needed to calculate variance.
Mdouble getYMinStat()
see StatisticsVector::getYMinStat
Definition: StatisticsPoint.h:141
Mdouble CG_integral_gradient_1D(Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance)
std::string print_sqrt() const
Outputs root of statistical variables in human-readable format.
Mdouble getCutoff2()
see StatisticsVector::getCutoff2
Definition: StatisticsPoint.h:111
Mdouble evaluatePolynomial(Mdouble r)
see StatisticsVector::evaluatePolynomial
Definition: StatisticsPoint.h:159
Mdouble CG_invvolume
Prefactor of CG function which depends on $w.
Definition: StatisticsPoint.h:339
MatrixSymmetric3D MomentumFlux
Momentum flux, .
Definition: StatisticsPoint.h:309
void setCGInverseVolume()
sets CG_invvolume
Vec3D CG_integral_gradient(Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance)
StatisticsPoint< T > getSquared()
Squares all statistical variables; needed for variance.
Mdouble getYMaxStat()
see StatisticsVector::getYMaxStat
Definition: StatisticsPoint.h:123
Mdouble getCGWidth() const
see StatisticsVector::getCGWidth
Definition: StatisticsPoint.h:99
Vec3D CG_gradient(const Vec3D &P, const Mdouble phi)
Matrix3D NormalStress
Stress from normal forces, .
Definition: StatisticsPoint.h:315
std::string write_variable_names()
Outputs names of statistical variables in computer-readable format.
std::string write() const
Outputs statistical variables in computer-readable format.
Matrix3D ContactCoupleStress
Definition: StatisticsPoint.h:336
Mdouble getXMaxStat()
see StatisticsVector::getXMaxStat
Definition: StatisticsPoint.h:117
Vec3D EnergyFlux
Energy flux, .
Definition: StatisticsPoint.h:313
Mdouble getCGWidthSquared() const
see StatisticsVector::getCGWidthSquared
Definition: StatisticsPoint.h:93
Mdouble getZMaxStat()
see StatisticsVector::getZMaxStat
Definition: StatisticsPoint.h:129
void set_Gaussian_invvolume(int dim)
sets CG_invvolume if CG_type=Gaussian
Mdouble Nu
Particle volume fraction, .
Definition: StatisticsPoint.h:299
MatrixSymmetric3D DisplacementMomentumFlux
Momentum flux from linear displacement, .
Definition: StatisticsPoint.h:311
double compute_Gaussian_invvolume(int dim)
computes CG_invvolume if CG_type=Gaussian
Vec3D NormalTraction
Traction from normal forces, .
Definition: StatisticsPoint.h:319
Mdouble evaluateIntegral(Mdouble n1, Mdouble n2, Mdouble t)
see StatisticsVector::evaluateIntegral
Definition: StatisticsPoint.h:171
void setCGWidth2(Mdouble new_)
see StatisticsVector::setCGWidth2
Definition: StatisticsPoint.h:87
Matrix3D LocalAngularMomentumFlux
Definition: StatisticsPoint.h:335
Matrix3D TangentialStress
Stress from tangential forces, .
Definition: StatisticsPoint.h:317
MatrixSymmetric3D Displacement
Linear displacement, .
Definition: StatisticsPoint.h:307
StatisticsPoint()
Constructor sets sensible values.
Definition: StatisticsPoint.h:53
Mdouble evaluatePolynomialGradient(Mdouble r)
see StatisticsVector::evaluatePolynomialGradient
Definition: StatisticsPoint.h:165
std::string print() const
Outputs statistical variables in human-readable format.
Vec3D LocalAngularMomentum
Definition: StatisticsPoint.h:334
void getN(int &nx_, int &ny_, int &nz_)
see StatisticsVector::get_n
Definition: StatisticsPoint.h:153
void set_Polynomial_invvolume(int dim)
sets CG_invvolume if CG_type=Polynomial
Mdouble getXMinStat()
see StatisticsVector::getXMinStat
Definition: StatisticsPoint.h:135
MatrixSymmetric3D Fabric
Fabric tensor, .
Definition: StatisticsPoint.h:323
Mdouble CG_integral_2D(Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance, Mdouble &rpsi_scalar)
Mdouble CG_function_1D(const Vec3D &PI)
Mdouble getCutoff()
see StatisticsVector::getCutoff
Definition: StatisticsPoint.h:105
void setCGShape(const char *CG_type)
see StatisticsVector::setCGShape
Definition: StatisticsPoint.h:75
Vec3D CollisionalHeatFlux
Definition: StatisticsPoint.h:326
Vec3D getPosition() const
returns Position
Definition: StatisticsPoint.h:208
Mdouble dotNonAveraged(const Vec3D &P, const Vec3D &Q)
Returns the dot product of two vectors in the coordinates that are not averaged about.
Mdouble CG_integral(Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance, Vec3D &rpsi)
Returns the value of the coarse graining integral .
Mdouble CG_function(const Vec3D &PI)
Returns the value of the course graining function phi(P,PI)
Mdouble Density
Density, .
Definition: StatisticsPoint.h:301
Mdouble Potential
Definition: StatisticsPoint.h:332
static void set_gb(StatisticsVector< T > *new_gb)
see StatisticsVector::setCGShape
Definition: StatisticsPoint.h:69
void set_Heaviside_invvolume()
sets CG_invvolume if CG_type=HeaviSideSphere
Vec3D Momentum
Momentum, .
Definition: StatisticsPoint.h:303
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
Definition: StatisticsPoint.h:342
Mdouble getCGInverseVolume()
returns CG_invvolume
Definition: StatisticsPoint.h:184
StatisticsPoint< T > & operator/=(const Mdouble a)
Defines a division operator needed to average values ( )
StatisticsPoint(const StatisticsPoint &other)
Copy constructor; simply copies everything.
Definition: StatisticsPoint.h:61
Vec3D clearAveragedDirections(Vec3D P)
Returns a vector where the averaged directions are zero.
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
Definition: StatisticsPoint.h:346
Vec3D TangentialTraction
Traction from tangential forces, .
Definition: StatisticsPoint.h:321
Vec3D DisplacementMomentum
Momentum from linear displacement, , where , with the time intervall between outputs.
Definition: StatisticsPoint.h:305
Mdouble Dissipation
Definition: StatisticsPoint.h:329
void setPosition(Vec3D new_)
sets Position
Definition: StatisticsPoint.h:202
StatisticsPoint< T > & operator=(const StatisticsPoint< T > &P)
Defines a equal operator needed for copy constructor.
Matrix3D matrixCrossNonAveraged(Vec3D P, Matrix3D &Q)
Returns the cross product of two vectors in the coordinates that are not averaged about.
Vec3D Position
Position at which evaluation occurs.
Definition: StatisticsPoint.h:348
void firstTimeAverage(const int n)
Defines a division operator needed to time-average values (because the displacement does not have a v...
Mdouble getZMinStat()
see StatisticsVector::getZMinStat
Definition: StatisticsPoint.h:147
void set_zero()
Sets all statistical variables to zero.
Mdouble getDistanceSquaredNonAveraged(const Vec3D &P)
returns the coarse graining distance in the coordinates that are not averaged about
Mdouble CG_integral_1D(Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance, Mdouble &rpsi_scalar)