![]() |
|
Computed the displacement fields. More...
#include <DisplacementField.h>
Public Member Functions | |
DisplacementField () | |
DisplacementField (const DisplacementField &other)=default | |
~DisplacementField ()=default | |
void | write (std::ostream &os) const |
Writes class content into an output stream, typically a stat file. More... | |
void | output (std::ostream &os) const |
Writes human-readable class content into an output stream, typically a stat file. More... | |
void | setZero () |
Sets all fields to zero. More... | |
DisplacementField | getSquared () const |
Returns the square of all field values (to calculate standard deviation). More... | |
DisplacementField & | operator= (const DisplacementField &P) |
Copies all field values. More... | |
DisplacementField & | operator+= (const DisplacementField &P) |
Adds the field values on the RHS to the LHS of the equation. More... | |
DisplacementField & | operator-= (const DisplacementField &P) |
Subtracts the field values on the RHS from the LHS of the equation. More... | |
DisplacementField & | operator/= (Mdouble a) |
Divides the field values on the LHS by the RHS of the equation. More... | |
DisplacementField | operator* (Mdouble a) const |
Multiplies the field values on the left of the '*' by the scalar value on the right of the '*' and returns the answer. More... | |
void | addParticleStatistics (Mdouble phi, const DisplacementField ¤tInteraction) |
This function should be called from within a loop over all particles to compute all the fields that are defined as a sum over all particles (e.g. density, momentum). More... | |
void | setFields (const BaseParticle &p) |
void | setCylindricalFields (const BaseParticle &p) |
MatrixSymmetric3D | getDisplacementMomentumFlux () const |
Vec3D | getDisplacementMomentum () const |
void | setFields (const BaseInteraction &c, IntegralType type) |
void | setCylindricalFields (const BaseInteraction &c, IntegralType type) |
void | addParticleDifferentialStatistics (Vec3D &dphi, const DisplacementField ¤tInteraction) |
void | addInteractionStatistics (Mdouble psi, const DisplacementField ¤tInteraction) |
void | addContactPointStatistics (Mdouble phi, const DisplacementField ¤tInteraction) |
![]() | |
void | setCG (BaseCG *cg) |
BaseCG * | getCG () |
Static Public Member Functions | |
static void | writeNames (std::ostream &os, unsigned countVariables) |
static bool | evaluateFixedParticles () |
static bool | doInteractionStatistics () |
static bool | isDifferentialField () |
Private Attributes | |
MatrixSymmetric3D | displacementMomentumFlux_ |
Vec3D | displacementMomentum_ |
Additional Inherited Members | |
![]() | |
BaseCG * | cg_ = nullptr |
Stores a pointer to the baseCG instance to get e.g. the handler and time information. More... | |
Computed the displacement fields.
The displacement moment and the displacement moment flux are calculated from the previous position of the particle and the time since the last evaluation of the data files
CGFields::DisplacementField::DisplacementField | ( | ) |
References DEBUG, logger, and setZero().
Referenced by getSquared().
|
default |
|
default |
|
inline |
|
inline |
|
inline |
void CGFields::DisplacementField::addParticleStatistics | ( | Mdouble | phi, |
const DisplacementField & | currentInteraction | ||
) |
This function should be called from within a loop over all particles to compute all the fields that are defined as a sum over all particles (e.g. density, momentum).
References displacementMomentum_, displacementMomentumFlux_, getDisplacementMomentum(), and getDisplacementMomentumFlux().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
DisplacementField CGFields::DisplacementField::getSquared | ( | ) | const |
Returns the square of all field values (to calculate standard deviation).
References DisplacementField(), displacementMomentum_, displacementMomentumFlux_, MatrixSymmetric3D::square(), and Vec3D::square().
|
inlinestatic |
DisplacementField CGFields::DisplacementField::operator* | ( | Mdouble | a | ) | const |
Multiplies the field values on the left of the '*' by the scalar value on the right of the '*' and returns the answer.
References a, displacementMomentum_, displacementMomentumFlux_, and p.
DisplacementField & CGFields::DisplacementField::operator+= | ( | const DisplacementField & | P | ) |
Adds the field values on the RHS to the LHS of the equation.
References displacementMomentum_, displacementMomentumFlux_, and Global_Physical_Variables::P.
DisplacementField & CGFields::DisplacementField::operator-= | ( | const DisplacementField & | P | ) |
Subtracts the field values on the RHS from the LHS of the equation.
References displacementMomentum_, displacementMomentumFlux_, and Global_Physical_Variables::P.
DisplacementField & CGFields::DisplacementField::operator/= | ( | Mdouble | a | ) |
Divides the field values on the LHS by the RHS of the equation.
References a, displacementMomentum_, and displacementMomentumFlux_.
|
default |
Copies all field values.
void CGFields::DisplacementField::output | ( | std::ostream & | os | ) | const |
Writes human-readable class content into an output stream, typically a stat file.
References displacementMomentum_, and displacementMomentumFlux_.
|
inline |
void CGFields::DisplacementField::setCylindricalFields | ( | const BaseParticle & | p | ) |
References p, and setFields().
|
inline |
void CGFields::DisplacementField::setFields | ( | const BaseParticle & | p | ) |
References displacementMomentum_, displacementMomentumFlux_, CGFields::BaseFields::getCG(), BaseHandler< T >::getDPMBase(), BaseCG::getHandler(), CGHandler::getPreviousEvaluationTime(), DPMBase::getTime(), DPMBase::getXMax(), DPMBase::getXMin(), DPMBase::getYMax(), DPMBase::getYMin(), DPMBase::getZMax(), DPMBase::getZMin(), p, and MatrixSymmetric3D::selfDyadic().
Referenced by setCylindricalFields().
void CGFields::DisplacementField::setZero | ( | ) |
Sets all fields to zero.
References displacementMomentum_, displacementMomentumFlux_, MatrixSymmetric3D::setZero(), and Vec3D::setZero().
Referenced by DisplacementField().
void CGFields::DisplacementField::write | ( | std::ostream & | os | ) | const |
Writes class content into an output stream, typically a stat file.
References displacementMomentum_, and displacementMomentumFlux_.
|
static |
|
private |
Referenced by addParticleStatistics(), getDisplacementMomentum(), getSquared(), operator*(), operator+=(), operator-=(), operator/=(), output(), setFields(), setZero(), and write().
|
private |
Referenced by addParticleStatistics(), getDisplacementMomentumFlux(), getSquared(), operator*(), operator+=(), operator-=(), operator/=(), output(), setFields(), setZero(), and write().