|
Contains the computed field values, like density, momentum and stress. More...
#include <LiquidMigrationFields.h>
Public Member Functions | |
LiquidMigrationFields () | |
Default constructor, sets all field values to zero. More... | |
LiquidMigrationFields (const LiquidMigrationFields &P)=default | |
Default copy constructor, copies the values of all fields. More... | |
~LiquidMigrationFields ()=default | |
Destructor, it simply destructs the LiquidMigrationFields and all the objects it contains. More... | |
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... | |
LiquidMigrationFields | getSquared () const |
Returns the square of all field values (to calculate standard deviation). More... | |
LiquidMigrationFields & | operator= (const LiquidMigrationFields &P) |
Copies all field values. More... | |
LiquidMigrationFields & | operator+= (const LiquidMigrationFields &P) |
Adds the field values on the RHS to the LHS of the equation. More... | |
LiquidMigrationFields & | operator-= (const LiquidMigrationFields &P) |
Subtracts the field values on the RHS from the LHS of the equation. More... | |
LiquidMigrationFields & | operator/= (Mdouble a) |
Divides the field values on the LHS by the RHS of the equation. More... | |
LiquidMigrationFields | 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 LiquidMigrationFields ¤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 | addParticleDifferentialStatistics (Vec3D &dphi, const LiquidMigrationFields ¤tInteraction) |
void | addInteractionStatistics (Mdouble psi, const LiquidMigrationFields ¤tInteraction) |
This function should be called from within a loop over all Interactions to compute all the fields that are defined as a sum over all Interactions (e.g. stress). More... | |
void | addContactPointStatistics (Mdouble phi, const LiquidMigrationFields ¤tInteraction) |
This function should be called from within a loop over all Interactions to compute all the fields that are defined as a sum over all Interactions with external objects (e.g. IFD). More... | |
void | setFields (const BaseInteraction &c, IntegralType type) |
void | setCylindricalFields (const BaseInteraction &c, IntegralType type) |
void | setFields (const BaseParticle &p) |
void | setCylindricalFields (const BaseParticle &p) |
Mdouble | getLiquidBridgeVolume () const |
Mdouble | getLiquidFilmVolume () const |
Static Public Member Functions | |
static void | writeNames (std::ostream &os, unsigned countVariables) |
static bool | doInteractionStatistics () |
Returns true if the class contains fields that are defined as a sum over all Interactions (e.g. stress), else returns false. More... | |
static bool | evaluateFixedParticles () |
static bool | isDifferentialField () |
Private Attributes | |
Mdouble | liquidBridgeVolume_ |
Mdouble | liquidFilmVolume_ |
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::LiquidMigrationFields::LiquidMigrationFields | ( | ) |
Default constructor, sets all field values to zero.
References setZero().
|
default |
Default copy constructor, copies the values of all fields.
|
default |
Destructor, it simply destructs the LiquidMigrationFields and all the objects it contains.
void CGFields::LiquidMigrationFields::addContactPointStatistics | ( | Mdouble phi | , |
const LiquidMigrationFields & | currentInteraction | ||
) |
This function should be called from within a loop over all Interactions to compute all the fields that are defined as a sum over all Interactions with external objects (e.g. IFD).
[in] | phi | the value of the cg function for the contact point of c and the current CGPoint |
[in] | c | the interaction which is used in the cg function |
void CGFields::LiquidMigrationFields::addInteractionStatistics | ( | Mdouble | psi, |
const LiquidMigrationFields & | currentInteraction | ||
) |
This function should be called from within a loop over all Interactions to compute all the fields that are defined as a sum over all Interactions (e.g. stress).
[in] | psi | the value of the line integral from C to P at the current CGPoint |
[in] | c | the contact which is used in the line integral |
References getLiquidBridgeVolume(), and liquidBridgeVolume_.
void CGFields::LiquidMigrationFields::addParticleDifferentialStatistics | ( | Vec3D & | dphi, |
const LiquidMigrationFields & | currentInteraction | ||
) |
void CGFields::LiquidMigrationFields::addParticleStatistics | ( | Mdouble | phi, |
const LiquidMigrationFields & | 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).
[in] | phi | the value of the cg function at the current CGPoint |
[in] | p | the particle which is used in the cg function |
References getLiquidFilmVolume(), and liquidFilmVolume_.
|
static |
|
inlinestatic |
|
inline |
References liquidBridgeVolume_.
Referenced by addInteractionStatistics().
|
inline |
References liquidFilmVolume_.
Referenced by addParticleStatistics().
LiquidMigrationFields CGFields::LiquidMigrationFields::getSquared | ( | ) | const |
Returns the square of all field values (to calculate standard deviation).
References liquidBridgeVolume_, liquidFilmVolume_, Global_Physical_Variables::P, and mathsFunc::square().
|
inlinestatic |
LiquidMigrationFields CGFields::LiquidMigrationFields::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.
[in] | a | the scalar that we multiply with |
References liquidBridgeVolume_, and liquidFilmVolume_.
LiquidMigrationFields & CGFields::LiquidMigrationFields::operator+= | ( | const LiquidMigrationFields & | P | ) |
Adds the field values on the RHS to the LHS of the equation.
[in] | P | the CGField that has to be added |
References liquidBridgeVolume_, liquidFilmVolume_, and Global_Physical_Variables::P.
LiquidMigrationFields & CGFields::LiquidMigrationFields::operator-= | ( | const LiquidMigrationFields & | P | ) |
Subtracts the field values on the RHS from the LHS of the equation.
[in] | P | the CGField that has to be subtracted |
References liquidBridgeVolume_, liquidFilmVolume_, and Global_Physical_Variables::P.
LiquidMigrationFields & CGFields::LiquidMigrationFields::operator/= | ( | Mdouble | a | ) |
Divides the field values on the LHS by the RHS of the equation.
[in] | a | the scalar that we divide by |
References liquidBridgeVolume_, and liquidFilmVolume_.
|
default |
Copies all field values.
[in] | P | the CGField that has to be copied |
void CGFields::LiquidMigrationFields::output | ( | std::ostream & | os | ) | const |
Writes human-readable class content into an output stream, typically a stat file.
[out] | os | the ostream into which the data is written. |
References liquidBridgeVolume_, and liquidFilmVolume_.
void CGFields::LiquidMigrationFields::setCylindricalFields | ( | const BaseInteraction & | c, |
IntegralType | type | ||
) |
References setFields().
void CGFields::LiquidMigrationFields::setCylindricalFields | ( | const BaseParticle & | p | ) |
References setFields().
void CGFields::LiquidMigrationFields::setFields | ( | const BaseInteraction & | c, |
IntegralType | type | ||
) |
References liquidBridgeVolume_, and logger.
Referenced by setCylindricalFields().
void CGFields::LiquidMigrationFields::setFields | ( | const BaseParticle & | p | ) |
References liquidFilmVolume_, and logger.
void CGFields::LiquidMigrationFields::setZero | ( | ) |
Sets all fields to zero.
References liquidBridgeVolume_, and liquidFilmVolume_.
Referenced by LiquidMigrationFields().
void CGFields::LiquidMigrationFields::write | ( | std::ostream & | os | ) | const |
Writes class content into an output stream, typically a stat file.
[out] | os | the ostream into which the data is written. |
References liquidBridgeVolume_, and liquidFilmVolume_.
|
static |
|
private |
liquid bridge volume density, computed as the sum over all particles i
\[ V_lb(\vec r,t) = \sum_i V_i \phi(\vec r,\vec r_i), \]
with liquid bridge volume V_i and cg function \(\phi(\vec r,\vec r_i)\), see CGFunctions::Gauss::evaluateCGFunction.
Referenced by addInteractionStatistics(), getLiquidBridgeVolume(), getSquared(), operator*(), operator+=(), operator-=(), operator/=(), output(), setFields(), setZero(), and write().
|
private |
liquid bridge volume density, computed as the sum over all particles i
\[ V_lb(\vec r,t) = \sum_i V_i \phi(\vec r,\vec r_i), \]
with liquid bridge volume V_i and cg function \(\phi(\vec r,\vec r_i)\), see CGFunctions::Gauss::evaluateCGFunction.
Referenced by addParticleStatistics(), getLiquidFilmVolume(), getSquared(), operator*(), operator+=(), operator-=(), operator/=(), output(), setFields(), setZero(), and write().