25 #ifndef GradVelocityField_H
26 #define GradVelocityField_H
59 static void writeNames(std::ostream& os,
unsigned countVariables);
64 void write(std::ostream& os)
const;
69 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
Definition: GradVelocityField.h:40
void write(std::ostream &os) const
Writes class content into an output stream, typically a stat file.
Definition: GradVelocityField.cc:54
GradVelocityField & operator+=(const GradVelocityField &P)
Adds the field values on the RHS to the LHS of the equation.
Definition: GradVelocityField.cc:105
void output(std::ostream &os) const
Writes human-readable class content into an output stream, typically a stat file.
Definition: GradVelocityField.cc:65
GradVelocityField & operator/=(Mdouble a)
Divides the field values on the LHS by the RHS of the equation.
Definition: GradVelocityField.cc:145
void setZero()
Sets all fields to zero.
Definition: GradVelocityField.cc:73
Matrix3D dmomentum_
Definition: GradVelocityField.h:184
void setFields(const BaseInteraction &c, IntegralType type)
Definition: GradVelocityField.cc:198
void addContactPointStatistics(Mdouble phi, const GradVelocityField ¤tInteraction)
This function should be called from within a loop over all Interactions to compute all the fields tha...
Definition: GradVelocityField.cc:177
void addParticleStatistics(Mdouble phi, const GradVelocityField ¤tInteraction)
This function should be called from within a loop over all particles to compute all the fields that a...
Definition: GradVelocityField.cc:158
~GradVelocityField()=default
Destructor, it simply destructs the GradVelocityField and all the objects it contains.
void setCylindricalFields(const BaseInteraction &c, IntegralType type)
Definition: GradVelocityField.cc:208
static bool evaluateFixedParticles()
Definition: GradVelocityField.h:165
void addParticleDifferentialStatistics(Vec3D &dphi, const GradVelocityField ¤tInteraction)
Definition: GradVelocityField.cc:181
GradVelocityField & operator=(const GradVelocityField &P)
Copies all field values.
Mdouble density_
Definition: GradVelocityField.h:181
GradVelocityField getSquared() const
Returns the square of all field values (to calculate standard deviation).
Definition: GradVelocityField.cc:84
static bool isDifferentialField()
Definition: GradVelocityField.h:174
GradVelocityField()
Default constructor, sets all field values to zero.
Definition: GradVelocityField.cc:32
GradVelocityField 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: GradVelocityField.cc:131
GradVelocityField(const GradVelocityField &P)=default
Default copy constructor, copies the values of all fields.
Matrix3D getDMomentum() const
Definition: GradVelocityField.h:160
GradVelocityField & operator-=(const GradVelocityField &P)
Subtracts the field values on the RHS from the LHS of the equation.
Definition: GradVelocityField.cc:118
Vec3D ddensity_
Definition: GradVelocityField.h:183
static void writeNames(std::ostream &os, unsigned countVariables)
Definition: GradVelocityField.cc:43
Vec3D getDDensity() const
Definition: GradVelocityField.h:155
void addInteractionStatistics(Mdouble psi, const GradVelocityField ¤tInteraction)
This function should be called from within a loop over all Interactions to compute all the fields tha...
Definition: GradVelocityField.cc:168
Vec3D getMomentum() const
Definition: GradVelocityField.h:150
Vec3D momentum_
Definition: GradVelocityField.h:182
Mdouble getDensity() const
Definition: GradVelocityField.h:145
static bool doInteractionStatistics()
Returns true if the class contains fields that are defined as a sum over all Interactions (e....
Definition: GradVelocityField.cc:193
Implementation of a 3D matrix.
Definition: Matrix.h:38
Definition: GradVelocityField.cc:30
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73