5 #ifndef MERCURYDPM_DisplacementField_H
6 #define MERCURYDPM_DisplacementField_H
42 static void writeNames(std::ostream& os,
unsigned countVariables);
47 void write(std::ostream& os)
const;
52 void output(std::ostream& os)
const;
IntegralType
Specifies the two points between which a line integral is computed.
Definition: IntegralType.h:14
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
A Base class for the fields.
Definition: BaseFields.h:22
Computed the displacement fields.
Definition: DisplacementField.h:34
void addContactPointStatistics(Mdouble phi, const DisplacementField ¤tInteraction)
Definition: DisplacementField.h:137
DisplacementField & operator+=(const DisplacementField &P)
Adds the field values on the RHS to the LHS of the equation.
Definition: DisplacementField.cc:52
static void writeNames(std::ostream &os, unsigned countVariables)
Definition: DisplacementField.cc:17
MatrixSymmetric3D displacementMomentumFlux_
Definition: DisplacementField.h:141
void write(std::ostream &os) const
Writes class content into an output stream, typically a stat file.
Definition: DisplacementField.cc:23
static bool evaluateFixedParticles()
Definition: DisplacementField.h:106
void addParticleDifferentialStatistics(Vec3D &dphi, const DisplacementField ¤tInteraction)
Definition: DisplacementField.h:131
DisplacementField & operator-=(const DisplacementField &P)
Subtracts the field values on the RHS from the LHS of the equation.
Definition: DisplacementField.cc:59
DisplacementField & operator/=(Mdouble a)
Divides the field values on the LHS by the RHS of the equation.
Definition: DisplacementField.cc:66
static bool isDifferentialField()
Definition: DisplacementField.h:120
void setZero()
Sets all fields to zero.
Definition: DisplacementField.cc:35
void setCylindricalFields(const BaseInteraction &c, IntegralType type)
Definition: DisplacementField.h:128
void setFields(const BaseParticle &p)
Definition: DisplacementField.cc:87
~DisplacementField()=default
DisplacementField(const DisplacementField &other)=default
MatrixSymmetric3D getDisplacementMomentumFlux() const
Definition: DisplacementField.h:102
void output(std::ostream &os) const
Writes human-readable class content into an output stream, typically a stat file.
Definition: DisplacementField.cc:29
Vec3D getDisplacementMomentum() const
Definition: DisplacementField.h:103
static bool doInteractionStatistics()
Definition: DisplacementField.h:111
Vec3D displacementMomentum_
Definition: DisplacementField.h:142
DisplacementField & operator=(const DisplacementField &P)
Copies all field values.
void setCylindricalFields(const BaseParticle &p)
Definition: DisplacementField.cc:103
DisplacementField()
Definition: DisplacementField.cc:11
void addInteractionStatistics(Mdouble psi, const DisplacementField ¤tInteraction)
Definition: DisplacementField.h:134
DisplacementField getSquared() const
Returns the square of all field values (to calculate standard deviation).
Definition: DisplacementField.cc:41
DisplacementField operator*(Mdouble a) const
Multiplies the field values on the left of the '*' by the scalar value on the right of the '*' and re...
Definition: DisplacementField.cc:73
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 a...
Definition: DisplacementField.cc:81
void setFields(const BaseInteraction &c, IntegralType type)
Definition: DisplacementField.h:125
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:56
Implementation of a 3D symmetric matrix.
Definition: MatrixSymmetric.h:16
Definition: Kernel/Math/Vector.h:30
const Scalar * a
Definition: level2_cplx_impl.h:32
Definition: BaseFields.h:14
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
int c
Definition: calibrate.py:100
type
Definition: compute_granudrum_aor.py:141