25 #ifndef StandardFields_H
26 #define StandardFields_H
70 static void writeNames(std::ostream& os,
unsigned countVariables);
75 void write(std::ostream& os)
const;
80 void output(std::ostream& os)
const;
IntegralType
Specifies the two points between which a line integral is computed.
Definition: IntegralType.h:34
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Contains the computed field values, like density, momentum and stress.
Definition: StandardFields.h:51
Vec3D momentum_
Definition: StandardFields.h:246
void addContactPointStatistics(Mdouble phi, const StandardFields ¤tInteraction)
This function should be called from within a loop over all Interactions to compute all the fields tha...
Definition: StandardFields.cc:217
std::array< Mdouble, 6 > getStandardisedParticleSizeMomenta() const
Definition: StandardFields.cc:315
MatrixSymmetric3D momentumFlux_
Definition: StandardFields.h:258
Mdouble getDensity() const
Definition: StandardFields.h:161
MatrixSymmetric3D getMomentumFlux() const
Definition: StandardFields.h:171
StandardFields & operator=(const StandardFields &P)
Copies all field values.
void setCylindricalFields(const BaseInteraction &c, IntegralType type)
Definition: StandardFields.cc:265
static bool isDifferentialField()
Definition: StandardFields.h:213
Matrix3D contactStress_
Definition: StandardFields.h:270
void setZero()
Sets all fields to zero.
Definition: StandardFields.cc:84
StandardFields()
Default constructor, sets all field values to zero.
Definition: StandardFields.cc:32
std::array< Mdouble, 6 > getParticleSizeMomenta() const
Definition: StandardFields.cc:291
Vec3D getInteractionForceDensity() const
Definition: StandardFields.h:181
StandardFields & operator-=(const StandardFields &P)
Subtracts the field values on the RHS from the LHS of the equation.
Definition: StandardFields.cc:139
static void writeNames(std::ostream &os, unsigned countVariables)
Definition: StandardFields.cc:44
Matrix3D getContactStress() const
Definition: StandardFields.h:176
void outputStandardisedParticleSizeMomenta(std::ostream &os) const
Definition: StandardFields.cc:279
Mdouble density_
Definition: StandardFields.h:234
std::array< Mdouble, 6 > particleSizeDensity_
Definition: StandardFields.h:291
Vec3D interactionForceDensity_
Definition: StandardFields.h:280
Mdouble getParticleSizeDensity(size_t i) const
Definition: StandardFields.h:186
std::array< Mdouble, 6 > getParticleSizeDensity() const
Definition: StandardFields.h:191
void addInteractionStatistics(Mdouble psi, const StandardFields ¤tInteraction)
This function should be called from within a loop over all Interactions to compute all the fields tha...
Definition: StandardFields.cc:207
Mdouble getVolumeFraction() const
Definition: StandardFields.h:156
static bool doInteractionStatistics()
Returns true if the class contains fields that are defined as a sum over all Interactions (e....
Definition: StandardFields.cc:228
static bool evaluateFixedParticles()
Definition: StandardFields.h:204
void addParticleStatistics(Mdouble phi, const StandardFields ¤tInteraction)
This function should be called from within a loop over all particles to compute all the fields that a...
Definition: StandardFields.cc:189
StandardFields 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: StandardFields.cc:155
void setFields(const BaseInteraction &c, IntegralType type)
Definition: StandardFields.cc:233
Vec3D getMomentum() const
Definition: StandardFields.h:166
void write(std::ostream &os) const
Writes class content into an output stream, typically a stat file.
Definition: StandardFields.cc:58
StandardFields & operator/=(Mdouble a)
Divides the field values on the LHS by the RHS of the equation.
Definition: StandardFields.cc:173
StandardFields(const StandardFields &P)=default
Default copy constructor, copies the values of all fields.
StandardFields & operator+=(const StandardFields &P)
Adds the field values on the RHS to the LHS of the equation.
Definition: StandardFields.cc:123
~StandardFields()=default
Destructor, it simply destructs the StandardFields and all the objects it contains.
std::array< Mdouble, 6 > getCentralParticleSizeMomenta() const
Definition: StandardFields.cc:302
void addParticleDifferentialStatistics(Vec3D &dphi, const StandardFields ¤tInteraction)
Definition: StandardFields.cc:199
StandardFields getSquared() const
Returns the square of all field values (to calculate standard deviation).
Definition: StandardFields.cc:98
void output(std::ostream &os) const
Writes human-readable class content into an output stream, typically a stat file.
Definition: StandardFields.cc:72
Mdouble volumeFraction_
Definition: StandardFields.h:226
Implementation of a 3D matrix.
Definition: Matrix.h:38
Implementation of a 3D symmetric matrix.
Definition: MatrixSymmetric.h:37
Definition: GradVelocityField.cc:30
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51