MercuryDPM  Alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StatisticsPoint< T > Struct Template Reference

This class stores statistical values for a given spatial position; to be used in combination with StatisticsVector. More...

#include <StatisticsPoint.h>

Public Member Functions

 StatisticsPoint ()
 Constructor sets sensible values. More...
 
 StatisticsPoint (const StatisticsPoint &other)
 Copy constructor; simply copies everything. More...
 
void setCGShape (const char *CG_type)
 see StatisticsVector::setCGShape More...
 
CG getCGShape () const
 see StatisticsVector::getCGShape More...
 
void setCGWidth2 (Mdouble new_)
 see StatisticsVector::setCGWidth2 More...
 
Mdouble getCGWidthSquared () const
 see StatisticsVector::getCGWidthSquared More...
 
Mdouble getCGWidth () const
 see StatisticsVector::getCGWidth More...
 
Mdouble getCutoff ()
 see StatisticsVector::getCutoff More...
 
Mdouble getCutoff2 ()
 see StatisticsVector::getCutoff2 More...
 
Mdouble getXMaxStat ()
 see StatisticsVector::getXMaxStat More...
 
Mdouble getYMaxStat ()
 see StatisticsVector::getYMaxStat More...
 
Mdouble getZMaxStat ()
 see StatisticsVector::getZMaxStat More...
 
Mdouble getXMinStat ()
 see StatisticsVector::getXMinStat More...
 
Mdouble getYMinStat ()
 see StatisticsVector::getYMinStat More...
 
Mdouble getZMinStat ()
 see StatisticsVector::getZMinStat More...
 
void getN (int &nx_, int &ny_, int &nz_)
 see StatisticsVector::get_n More...
 
Mdouble evaluatePolynomial (Mdouble r)
 see StatisticsVector::evaluatePolynomial More...
 
Mdouble evaluatePolynomialGradient (Mdouble r)
 see StatisticsVector::evaluatePolynomialGradient More...
 
Mdouble evaluateIntegral (Mdouble n1, Mdouble n2, Mdouble t)
 see StatisticsVector::evaluateIntegral More...
 
void setCGInverseVolume ()
 sets CG_invvolume More...
 
int nonaveragedDim ()
 
double averagingVolume ()
 
Mdouble getCGInverseVolume ()
 returns CG_invvolume More...
 
void set_Gaussian_invvolume (int dim)
 sets CG_invvolume if CG_type=Gaussian More...
 
double compute_Gaussian_invvolume (int dim)
 computes CG_invvolume if CG_type=Gaussian More...
 
void set_Heaviside_invvolume ()
 sets CG_invvolume if CG_type=HeaviSideSphere More...
 
void set_Polynomial_invvolume (int dim)
 sets CG_invvolume if CG_type=Polynomial More...
 
void setPosition (Vec3D new_)
 sets Position More...
 
Vec3D getPosition () const
 returns Position More...
 
void set_zero ()
 Sets all statistical variables to zero. More...
 
StatisticsPoint< T > getSquared ()
 Squares all statistical variables; needed for variance. More...
 
StatisticsPoint< T > & operator= (const StatisticsPoint< T > &P)
 Defines a equal operator needed for copy constructor. More...
 
StatisticsPoint< T > & operator+= (const StatisticsPoint< T > &P)
 Defines a plus operator needed to average values ( $ \bar{v} = (\sum_{i=1}^n v_i)/n $ ) More...
 
StatisticsPoint< T > & operator-= (const StatisticsPoint< T > &P)
 Defines a plus operator needed to calculate variance. More...
 
StatisticsPoint< T > & operator/= (const Mdouble a)
 Defines a division operator needed to average values ( $ \bar{v} = (\sum_{i=1}^n v_i)/n $ ) More...
 
void firstTimeAverage (const int n)
 Defines a division operator needed to time-average values (because the displacement does not have a value at the first timestep, this is slightly different than /=) More...
 
Mdouble getDistanceSquaredNonAveraged (const Vec3D &P)
 returns the coarse graining distance in the coordinates that are not averaged about More...
 
Mdouble dotNonAveraged (const Vec3D &P, const Vec3D &Q)
 Returns the dot product of two vectors in the coordinates that are not averaged about. More...
 
Vec3D clearAveragedDirections (Vec3D P)
 Returns a vector where the averaged directions are zero. More...
 
Vec3D crossNonAveraged (Vec3D P, Vec3D &Q)
 Returns the cross product of two vectors in the coordinates that are not averaged about. More...
 
Matrix3D matrixCrossNonAveraged (Vec3D P, Matrix3D &Q)
 Returns the cross product of two vectors in the coordinates that are not averaged about. More...
 
Mdouble CG_function (const Vec3D &PI)
 Returns the value of the course graining function phi(P,PI) More...
 
Mdouble CG_function_2D (const Vec3D &PI)
 returns the value of the course graining function phi(P,PI) averaged along a line More...
 
Mdouble CG_function_1D (const Vec3D &PI)
 Returns the value of the course graining function phi(P,PI) averaged along a plane. More...
 
Vec3D CG_gradient (const Vec3D &P, const Mdouble phi)
 gradient of phi More...
 
Vec3D CG_integral_gradient (Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance)
 gradient of phi More...
 
Mdouble CG_integral_gradient_1D (Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance)
 
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 $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $. More...
 
Mdouble CG_integral_2D (Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance, Mdouble &rpsi_scalar)
 Returns the value of the coarse graining integral $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $ averaged along a line. More...
 
Mdouble CG_integral_1D (Vec3D &P1, Vec3D &P2, Vec3D &P1_P2_normal, Mdouble P1_P2_distance, Mdouble &rpsi_scalar)
 Returns the value of the coarse graining integral $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $ averaged along a plane. More...
 
std::string print () const
 Outputs statistical variables in human-readable format. More...
 
std::string print_sqrt () const
 Outputs root of statistical variables in human-readable format. More...
 
std::string write_variable_names ()
 Outputs names of statistical variables in computer-readable format. More...
 
std::string write () const
 Outputs statistical variables in computer-readable format. More...
 

Static Public Member Functions

static void set_gb (StatisticsVector< T > *new_gb)
 see StatisticsVector::setCGShape More...
 

Public Attributes

Mdouble Nu
 Particle volume fraction, $\sum_i m_i/\rho_i \phi_i$. More...
 
Mdouble Density
 Density, $\sum_i m_i \phi_i$. More...
 
Vec3D Momentum
 Momentum, $\sum_i m_i v_{ia} \phi_i$. More...
 
Vec3D DisplacementMomentum
 Momentum from linear displacement, $\sum_i m_i u_{ia} \phi_i$, where $\vec{u}_i=(\vec{r}_i(t)-\vec{r}_i(t-\tau))/\tau$, with $\tau=savecount \Delta t$ the time intervall between outputs. More...
 
MatrixSymmetric3D Displacement
 Linear displacement, $2/(2 \rho_i^2) \sum_{ij} m_i m_j \phi_j (v_{ija} \partial_b \phi_i + v_{ijb} \partial_a \phi_i) $. More...
 
MatrixSymmetric3D MomentumFlux
 Momentum flux, $\sum_i m_i v_{ia} v_{ib} \phi_i$. More...
 
MatrixSymmetric3D DisplacementMomentumFlux
 Momentum flux from linear displacement, $\sum_i m_i u_{ia} u_{ib} \phi_i$. More...
 
Vec3D EnergyFlux
 Energy flux, $2/2 \sum_i m_i v_{ia} v_{ia} v_{ib} \phi_i$. More...
 
Matrix3D NormalStress
 Stress from normal forces, $\sum_{ij} f^n_{ija} l_{ijb} \psi_{ij}$. More...
 
Matrix3D TangentialStress
 Stress from tangential forces, $\sum_{ij} f^t_{ija} l_{ijb} \psi_{ij}$. More...
 
Vec3D NormalTraction
 Traction from normal forces, $\sum_{ij} f^n_{ija} l_{ijb} \phi_i$. More...
 
Vec3D TangentialTraction
 Traction from tangential forces, $\sum_{ij} f^t_{ija} l_{ijb} \phi_i$. More...
 
MatrixSymmetric3D Fabric
 Fabric tensor, $\sum_{ij} m_i/\rho_i n_{ija} n_{ijb} \psi_{ij}$. More...
 
Vec3D CollisionalHeatFlux
 Heat flux from collisions, $\sum_{ij} (v_{ia}+v_ja)/2 f_{ija} l_{ijb} \psi_i$. More...
 
Mdouble Dissipation
 Dissipation form collisions, $\sum_{ij} (v_{ia}+v_ja)/2 f_{ija} \psi_i$. More...
 
Mdouble Potential
 Elastic energy $2/4 \sum_{ij} (k \delta_{ij}^2 +k^t {\delta^t_{ij}}^2) \phi_i$. More...
 
Vec3D LocalAngularMomentum
 
Matrix3D LocalAngularMomentumFlux
 
Matrix3D ContactCoupleStress
 
Mdouble CG_invvolume
 Prefactor of CG function which depends on $w. More...
 
int mirrorParticle
 indicates that a position is a (fake) particles used for periodic walls More...
 

Private Attributes

Vec3D Position
 Position at which evaluation occurs. More...
 

Static Private Attributes

static StatisticsVector< T > * gb
 Pointer to StatisticsVector (to obtain global parameters) More...
 

Friends

std::ostream & operator (std::ostream &os, const StatisticsPoint< T > &stat)
 Outputs statistical variables to ostream. More...
 

Detailed Description

template<StatType T>
struct StatisticsPoint< T >

This class stores statistical values for a given spatial position; to be used in combination with StatisticsVector.

Definition at line 39 of file StatisticsPoint.h.

Constructor & Destructor Documentation

template<StatType T>
StatisticsPoint< T >::StatisticsPoint ( )
inline

Constructor sets sensible values.

Definition at line 53 of file StatisticsPoint.h.

References StatisticsPoint< T >::mirrorParticle, StatisticsPoint< T >::Position, and Vec3D::setZero().

54  {
55  this->Position.setZero();
56  mirrorParticle = -1;
57  //~ this->set_zero();
58  }
void setZero()
Sets all elements to zero.
Definition: Vector.cc:52
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
Vec3D Position
Position at which evaluation occurs.
template<StatType T>
StatisticsPoint< T >::StatisticsPoint ( const StatisticsPoint< T > &  other)
inline

Copy constructor; simply copies everything.

Definition at line 61 of file StatisticsPoint.h.

References StatisticsPoint< T >::mirrorParticle.

62  {
63  *this = other;
64  mirrorParticle = -1;
65  }
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls

Member Function Documentation

template<StatType T>
double StatisticsPoint< T >::averagingVolume ( )
template<StatType T>
Mdouble StatisticsPoint< T >::CG_function ( const Vec3D PI)

Returns the value of the course graining function phi(P,PI)

template<StatType T>
Mdouble StatisticsPoint< T >::CG_function_1D ( const Vec3D PI)

Returns the value of the course graining function phi(P,PI) averaged along a plane.

template<StatType T>
Mdouble StatisticsPoint< T >::CG_function_2D ( const Vec3D PI)

returns the value of the course graining function phi(P,PI) averaged along a line

template<StatType T>
Vec3D StatisticsPoint< T >::CG_gradient ( const Vec3D P,
const Mdouble  phi 
)

gradient of phi

Todo:
{Only implemented for Gaussian}
template<StatType T>
Mdouble StatisticsPoint< T >::CG_integral ( Vec3D P1,
Vec3D P2,
Vec3D P1_P2_normal,
Mdouble  P1_P2_distance,
Vec3D rpsi 
)

Returns the value of the coarse graining integral $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $.

template<StatType T>
Mdouble StatisticsPoint< T >::CG_integral_1D ( Vec3D P1,
Vec3D P2,
Vec3D P1_P2_normal,
Mdouble  P1_P2_distance,
Mdouble rpsi_scalar 
)

Returns the value of the coarse graining integral $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $ averaged along a plane.

template<StatType T>
Mdouble StatisticsPoint< T >::CG_integral_2D ( Vec3D P1,
Vec3D P2,
Vec3D P1_P2_normal,
Mdouble  P1_P2_distance,
Mdouble rpsi_scalar 
)

Returns the value of the coarse graining integral $ \psi(P,PI,PJ) = \int_0^1 \phi(P - PI + s PJ) ds $ averaged along a line.

template<StatType T>
Vec3D StatisticsPoint< T >::CG_integral_gradient ( Vec3D P1,
Vec3D P2,
Vec3D P1_P2_normal,
Mdouble  P1_P2_distance 
)

gradient of phi

Todo:
{Only implemented for Gaussian and statavg Z}
template<StatType T>
Mdouble StatisticsPoint< T >::CG_integral_gradient_1D ( Vec3D P1,
Vec3D P2,
Vec3D P1_P2_normal,
Mdouble  P1_P2_distance 
)
template<StatType T>
Vec3D StatisticsPoint< T >::clearAveragedDirections ( Vec3D  P)

Returns a vector where the averaged directions are zero.

template<StatType T>
double StatisticsPoint< T >::compute_Gaussian_invvolume ( int  dim)

computes CG_invvolume if CG_type=Gaussian

template<StatType T>
Vec3D StatisticsPoint< T >::crossNonAveraged ( Vec3D  P,
Vec3D Q 
)

Returns the cross product of two vectors in the coordinates that are not averaged about.

template<StatType T>
Mdouble StatisticsPoint< T >::dotNonAveraged ( const Vec3D P,
const Vec3D Q 
)

Returns the dot product of two vectors in the coordinates that are not averaged about.

template<StatType T>
Mdouble StatisticsPoint< T >::evaluateIntegral ( Mdouble  n1,
Mdouble  n2,
Mdouble  t 
)
inline

see StatisticsVector::evaluateIntegral

Definition at line 154 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

155  {
156  return gb->evaluateIntegral(n1, n2, t);
157  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::evaluatePolynomial ( Mdouble  r)
inline

see StatisticsVector::evaluatePolynomial

Definition at line 144 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

145  {
146  return gb->evaluatePolynomial(r);
147  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::evaluatePolynomialGradient ( Mdouble  r)
inline

see StatisticsVector::evaluatePolynomialGradient

Definition at line 149 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

150  {
151  return gb->evaluatePolynomialGradient(r);
152  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
void StatisticsPoint< T >::firstTimeAverage ( const int  n)
inline

Defines a division operator needed to time-average values (because the displacement does not have a value at the first timestep, this is slightly different than /=)

template<StatType T>
Mdouble StatisticsPoint< T >::getCGInverseVolume ( )
inline

returns CG_invvolume

Definition at line 164 of file StatisticsPoint.h.

References StatisticsPoint< T >::CG_invvolume.

165  {
166  return this->CG_invvolume;
167  }
Mdouble CG_invvolume
Prefactor of CG function which depends on $w.
template<StatType T>
CG StatisticsPoint< T >::getCGShape ( ) const
inline

see StatisticsVector::getCGShape

Definition at line 79 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

80  {
81  return this->gb->getCGShape();
82  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getCGWidth ( ) const
inline

see StatisticsVector::getCGWidth

Definition at line 94 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

95  {
96  return this->gb->getCGWidth();
97  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getCGWidthSquared ( ) const
inline

see StatisticsVector::getCGWidthSquared

Definition at line 89 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

90  {
91  return this->gb->getCGWidthSquared();
92  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getCutoff ( )
inline

see StatisticsVector::getCutoff

Definition at line 99 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

100  {
101  return this->gb->getCutoff();
102  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getCutoff2 ( )
inline

see StatisticsVector::getCutoff2

Definition at line 104 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

105  {
106  return this->gb->getCutoff2();
107  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getDistanceSquaredNonAveraged ( const Vec3D P)

returns the coarse graining distance in the coordinates that are not averaged about

template<StatType T>
void StatisticsPoint< T >::getN ( int &  nx_,
int &  ny_,
int &  nz_ 
)
inline

see StatisticsVector::get_n

Definition at line 139 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

140  {
141  this->gb->getN(nx_, ny_, nz_);
142  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Vec3D StatisticsPoint< T >::getPosition ( ) const
inline

returns Position

Definition at line 184 of file StatisticsPoint.h.

References StatisticsPoint< T >::Position.

185  {
186  return this->Position;
187  }
Vec3D Position
Position at which evaluation occurs.
template<StatType T>
StatisticsPoint<T> StatisticsPoint< T >::getSquared ( )

Squares all statistical variables; needed for variance.

template<StatType T>
Mdouble StatisticsPoint< T >::getXMaxStat ( )
inline

see StatisticsVector::getXMaxStat

Definition at line 109 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

110  {
111  return this->gb->getXMaxStat();
112  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getXMinStat ( )
inline

see StatisticsVector::getXMinStat

Definition at line 124 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

125  {
126  return this->gb->getXMinStat();
127  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getYMaxStat ( )
inline

see StatisticsVector::getYMaxStat

Definition at line 114 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

115  {
116  return this->gb->getYMaxStat();
117  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getYMinStat ( )
inline

see StatisticsVector::getYMinStat

Definition at line 129 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

130  {
131  return this->gb->getYMinStat();
132  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getZMaxStat ( )
inline

see StatisticsVector::getZMaxStat

Definition at line 119 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

120  {
121  return this->gb->getZMaxStat();
122  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Mdouble StatisticsPoint< T >::getZMinStat ( )
inline

see StatisticsVector::getZMinStat

Definition at line 134 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

135  {
136  return this->gb->getZMinStat();
137  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
Matrix3D StatisticsPoint< T >::matrixCrossNonAveraged ( Vec3D  P,
Matrix3D Q 
)

Returns the cross product of two vectors in the coordinates that are not averaged about.

template<StatType T>
int StatisticsPoint< T >::nonaveragedDim ( )
template<StatType T>
StatisticsPoint<T>& StatisticsPoint< T >::operator+= ( const StatisticsPoint< T > &  P)
inline

Defines a plus operator needed to average values ( $ \bar{v} = (\sum_{i=1}^n v_i)/n $ )

template<StatType T>
StatisticsPoint<T>& StatisticsPoint< T >::operator-= ( const StatisticsPoint< T > &  P)
inline

Defines a plus operator needed to calculate variance.

template<StatType T>
StatisticsPoint<T>& StatisticsPoint< T >::operator/= ( const Mdouble  a)
inline

Defines a division operator needed to average values ( $ \bar{v} = (\sum_{i=1}^n v_i)/n $ )

template<StatType T>
StatisticsPoint<T>& StatisticsPoint< T >::operator= ( const StatisticsPoint< T > &  P)
inline

Defines a equal operator needed for copy constructor.

template<StatType T>
std::string StatisticsPoint< T >::print ( ) const

Outputs statistical variables in human-readable format.

template<StatType T>
std::string StatisticsPoint< T >::print_sqrt ( ) const

Outputs root of statistical variables in human-readable format.

template<StatType T>
void StatisticsPoint< T >::set_Gaussian_invvolume ( int  dim)

sets CG_invvolume if CG_type=Gaussian

template<StatType T>
static void StatisticsPoint< T >::set_gb ( StatisticsVector< T > *  new_gb)
inlinestatic

see StatisticsVector::setCGShape

Definition at line 69 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

70  {
71  gb = new_gb;
72  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
void StatisticsPoint< T >::set_Heaviside_invvolume ( )

sets CG_invvolume if CG_type=HeaviSideSphere

template<StatType T>
void StatisticsPoint< T >::set_Polynomial_invvolume ( int  dim)

sets CG_invvolume if CG_type=Polynomial

template<StatType T>
void StatisticsPoint< T >::set_zero ( )

Sets all statistical variables to zero.

template<StatType T>
void StatisticsPoint< T >::setCGInverseVolume ( )
template<StatType T>
void StatisticsPoint< T >::setCGShape ( const char *  CG_type)
inline

see StatisticsVector::setCGShape

Definition at line 74 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

75  {
76  this->gb->setCGShape(CG_type);
77  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
void StatisticsPoint< T >::setCGWidth2 ( Mdouble  new_)
inline

see StatisticsVector::setCGWidth2

Definition at line 84 of file StatisticsPoint.h.

References StatisticsPoint< T >::gb.

85  {
86  this->gb->setCGWidth2(new_);
87  }
static StatisticsVector< T > * gb
Pointer to StatisticsVector (to obtain global parameters)
template<StatType T>
void StatisticsPoint< T >::setPosition ( Vec3D  new_)
inline

sets Position

Definition at line 179 of file StatisticsPoint.h.

References StatisticsPoint< T >::Position.

180  {
181  this->Position = new_;
182  }
Vec3D Position
Position at which evaluation occurs.
template<StatType T>
std::string StatisticsPoint< T >::write ( ) const

Outputs statistical variables in computer-readable format.

template<StatType T>
std::string StatisticsPoint< T >::write_variable_names ( )

Outputs names of statistical variables in computer-readable format.

Friends And Related Function Documentation

template<StatType T>
std::ostream& operator ( std::ostream &  os,
const StatisticsPoint< T > &  stat 
)
friend

Outputs statistical variables to ostream.

Member Data Documentation

template<StatType T>
Mdouble StatisticsPoint< T >::CG_invvolume

Prefactor of CG function which depends on $w.

Definition at line 311 of file StatisticsPoint.h.

Referenced by StatisticsPoint< T >::getCGInverseVolume().

template<StatType T>
Vec3D StatisticsPoint< T >::CollisionalHeatFlux

Heat flux from collisions, $\sum_{ij} (v_{ia}+v_ja)/2 f_{ija} l_{ijb} \psi_i$.

Todo:
{Heat flux calculations have not been checked, only implemented}

Definition at line 298 of file StatisticsPoint.h.

template<StatType T>
Matrix3D StatisticsPoint< T >::ContactCoupleStress

Definition at line 308 of file StatisticsPoint.h.

template<StatType T>
Mdouble StatisticsPoint< T >::Density

Density, $\sum_i m_i \phi_i$.

Definition at line 273 of file StatisticsPoint.h.

template<StatType T>
MatrixSymmetric3D StatisticsPoint< T >::Displacement

Linear displacement, $2/(2 \rho_i^2) \sum_{ij} m_i m_j \phi_j (v_{ija} \partial_b \phi_i + v_{ijb} \partial_a \phi_i) $.

Definition at line 279 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::DisplacementMomentum

Momentum from linear displacement, $\sum_i m_i u_{ia} \phi_i$, where $\vec{u}_i=(\vec{r}_i(t)-\vec{r}_i(t-\tau))/\tau$, with $\tau=savecount \Delta t$ the time intervall between outputs.

Definition at line 277 of file StatisticsPoint.h.

template<StatType T>
MatrixSymmetric3D StatisticsPoint< T >::DisplacementMomentumFlux

Momentum flux from linear displacement, $\sum_i m_i u_{ia} u_{ib} \phi_i$.

Definition at line 283 of file StatisticsPoint.h.

template<StatType T>
Mdouble StatisticsPoint< T >::Dissipation

Dissipation form collisions, $\sum_{ij} (v_{ia}+v_ja)/2 f_{ija} \psi_i$.

Todo:
{Dissipation calculations have not been checked, only implemented}

Definition at line 301 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::EnergyFlux

Energy flux, $2/2 \sum_i m_i v_{ia} v_{ia} v_{ib} \phi_i$.

Definition at line 285 of file StatisticsPoint.h.

template<StatType T>
MatrixSymmetric3D StatisticsPoint< T >::Fabric

Fabric tensor, $\sum_{ij} m_i/\rho_i n_{ija} n_{ijb} \psi_{ij}$.

Definition at line 295 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::LocalAngularMomentum

Definition at line 306 of file StatisticsPoint.h.

template<StatType T>
Matrix3D StatisticsPoint< T >::LocalAngularMomentumFlux

Definition at line 307 of file StatisticsPoint.h.

template<StatType T>
int StatisticsPoint< T >::mirrorParticle

indicates that a position is a (fake) particles used for periodic walls

Definition at line 314 of file StatisticsPoint.h.

Referenced by StatisticsPoint< T >::StatisticsPoint().

template<StatType T>
Vec3D StatisticsPoint< T >::Momentum

Momentum, $\sum_i m_i v_{ia} \phi_i$.

Definition at line 275 of file StatisticsPoint.h.

template<StatType T>
MatrixSymmetric3D StatisticsPoint< T >::MomentumFlux

Momentum flux, $\sum_i m_i v_{ia} v_{ib} \phi_i$.

Definition at line 281 of file StatisticsPoint.h.

template<StatType T>
Matrix3D StatisticsPoint< T >::NormalStress

Stress from normal forces, $\sum_{ij} f^n_{ija} l_{ijb} \psi_{ij}$.

Definition at line 287 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::NormalTraction

Traction from normal forces, $\sum_{ij} f^n_{ija} l_{ijb} \phi_i$.

Definition at line 291 of file StatisticsPoint.h.

template<StatType T>
Mdouble StatisticsPoint< T >::Nu

Particle volume fraction, $\sum_i m_i/\rho_i \phi_i$.

Definition at line 271 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::Position
private

Position at which evaluation occurs.

Definition at line 320 of file StatisticsPoint.h.

Referenced by StatisticsPoint< T >::getPosition(), StatisticsPoint< T >::setPosition(), and StatisticsPoint< T >::StatisticsPoint().

template<StatType T>
Mdouble StatisticsPoint< T >::Potential

Elastic energy $2/4 \sum_{ij} (k \delta_{ij}^2 +k^t {\delta^t_{ij}}^2) \phi_i$.

Todo:
{Potential calculations have not been checked, only implemented; fstat file does not include the torsional and rolling spring and hence cannot account for their potential}

Definition at line 304 of file StatisticsPoint.h.

template<StatType T>
Matrix3D StatisticsPoint< T >::TangentialStress

Stress from tangential forces, $\sum_{ij} f^t_{ija} l_{ijb} \psi_{ij}$.

Definition at line 289 of file StatisticsPoint.h.

template<StatType T>
Vec3D StatisticsPoint< T >::TangentialTraction

Traction from tangential forces, $\sum_{ij} f^t_{ija} l_{ijb} \phi_i$.

Definition at line 293 of file StatisticsPoint.h.


The documentation for this struct was generated from the following file: