![]() |
|
Contains the computed field values, like density, momentum and stress. More...
#include <OrientationField.h>
Inheritance diagram for CGFields::OrientationField:Public Member Functions | |
| OrientationField () | |
| OrientationField (const OrientationField &other)=default | |
| ~OrientationField ()=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... | |
| OrientationField | getSquared () const |
| Returns the square of all field values (to calculate standard deviation). More... | |
| OrientationField & | operator= (const OrientationField &P) |
| Copies all field values. More... | |
| OrientationField & | operator+= (const OrientationField &P) |
| Adds the field values on the RHS to the LHS of the equation. More... | |
| OrientationField & | operator-= (const OrientationField &P) |
| Subtracts the field values on the RHS from the LHS of the equation. More... | |
| OrientationField & | operator/= (Mdouble a) |
| Divides the field values on the LHS by the RHS of the equation. More... | |
| OrientationField | 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 OrientationField ¤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 | getOrientation () const |
| void | setFields (const BaseInteraction &c, IntegralType type) |
| void | setCylindricalFields (const BaseInteraction &c, IntegralType type) |
| void | addParticleDifferentialStatistics (Vec3D &dphi, const OrientationField ¤tInteraction) |
| void | addInteractionStatistics (Mdouble psi, const OrientationField ¤tInteraction) |
| void | addContactPointStatistics (Mdouble phi, const OrientationField ¤tInteraction) |
Public Member Functions inherited from CGFields::BaseFields | |
| 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 | orientation_ |
Additional Inherited Members | |
Protected Attributes inherited from CGFields::BaseFields | |
| BaseCG * | cg_ = nullptr |
| Stores a pointer to the baseCG instance to get e.g. the handler and time information. More... | |
Contains the computed field values, like density, momentum and stress.
CGPoints inherits from this class; CGPoints::evaluate adds to the values of these variables.
| CGFields::OrientationField::OrientationField | ( | ) |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
| void CGFields::OrientationField::addParticleStatistics | ( | Mdouble | phi, |
| const OrientationField & | 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 getOrientation(), and orientation_.
|
inlinestatic |
|
inlinestatic |
|
inline |
References orientation_.
Referenced by addParticleStatistics().
| OrientationField CGFields::OrientationField::getSquared | ( | ) | const |
Returns the square of all field values (to calculate standard deviation).
References orientation_, and MatrixSymmetric3D::square().
|
inlinestatic |
| OrientationField CGFields::OrientationField::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, orientation_, and p.
| OrientationField & CGFields::OrientationField::operator+= | ( | const OrientationField & | P | ) |
Adds the field values on the RHS to the LHS of the equation.
References orientation_, and Global_Physical_Variables::P.
| OrientationField & CGFields::OrientationField::operator-= | ( | const OrientationField & | P | ) |
Subtracts the field values on the RHS from the LHS of the equation.
References orientation_, and Global_Physical_Variables::P.
| OrientationField & CGFields::OrientationField::operator/= | ( | Mdouble | a | ) |
Divides the field values on the LHS by the RHS of the equation.
References a, and orientation_.
|
default |
Copies all field values.
| void CGFields::OrientationField::output | ( | std::ostream & | os | ) | const |
Writes human-readable class content into an output stream, typically a stat file.
References orientation_.
|
inline |
| void CGFields::OrientationField::setCylindricalFields | ( | const BaseParticle & | p | ) |
References p, and setFields().
|
inline |
| void CGFields::OrientationField::setFields | ( | const BaseParticle & | p | ) |
References DEBUG, logger, orientation_, p, Vec3D::X, MatrixSymmetric3D::XX, MatrixSymmetric3D::XY, MatrixSymmetric3D::XZ, Vec3D::Y, MatrixSymmetric3D::YY, MatrixSymmetric3D::YZ, Vec3D::Z, and MatrixSymmetric3D::ZZ.
Referenced by setCylindricalFields().
| void CGFields::OrientationField::setZero | ( | ) |
Sets all fields to zero.
References orientation_, and MatrixSymmetric3D::setZero().
Referenced by OrientationField().
| void CGFields::OrientationField::write | ( | std::ostream & | os | ) | const |
Writes class content into an output stream, typically a stat file.
References orientation_.
|
static |
|
private |
Referenced by addParticleStatistics(), getOrientation(), getSquared(), operator*(), operator+=(), operator-=(), operator/=(), output(), setFields(), setZero(), and write().