35 logger(
DEBUG,
"OrientationField::OrientationField() finished");
40 os << countVariables + 1 <<
":Orientation ";
62 return orientationField;
static MatrixSymmetric3D square(const MatrixSymmetric3D &A)
Calculates the pointwise square.
Mdouble X
the vector components
LL< Log::DEBUG > DEBUG
Debug information.
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here...
OrientationField operator*(Mdouble a) const
Multiplies the field values on the left of the '*' by the scalar value on the right of the '*' and re...
void addParticleStatistics(Mdouble phi, const OrientationField ¤tInteraction)
This function should be called from within a loop over all particles to compute all the fields that a...
Vec3D getAxis() const
Converts the quaternions into a normal vector by rotating the vector x=(1,0,0); see See Wiki for deta...
void output(std::ostream &os) const
Writes human-readable class content into an output stream, typically a stat file. ...
OrientationField & operator+=(const OrientationField &P)
Adds the field values on the RHS to the LHS of the equation.
OrientationField & operator-=(const OrientationField &P)
Subtracts the field values on the RHS from the LHS of the equation.
OrientationField getSquared() const
Returns the square of all field values (to calculate standard deviation).
OrientationField & operator=(const OrientationField &P)
Copies all field values.
void setZero()
Sets all elements to zero.
void setZero()
Sets all fields to zero.
MatrixSymmetric3D orientation_
OrientationField & operator/=(Mdouble a)
Divides the field values on the LHS by the RHS of the equation.
MatrixSymmetric3D getOrientation() const
Contains the computed field values, like density, momentum and stress.
const Quaternion & getOrientation() const
Returns the orientation of this BaseInteractable.
void setFields(const BaseParticle &p)
void write(std::ostream &os) const
Writes class content into an output stream, typically a stat file.
Mdouble XX
The six distinctive matrix elements.
static void writeNames(std::ostream &os, unsigned countVariables)
void setCylindricalFields(const BaseParticle &p)