![]() |
|
LiquidBridgeClassicalWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges. More...
#include <LiquidBridgeClassicalWilletSpecies.h>
Public Types | |
typedef LiquidBridgeClassicalWilletInteraction | InteractionType |
The correct Interaction type for this AdhesiveForceSpecies. More... | |
Public Member Functions | |
LiquidBridgeClassicalWilletSpecies () | |
The default constructor. More... | |
LiquidBridgeClassicalWilletSpecies (const LiquidBridgeClassicalWilletSpecies &s) | |
The default copy constructor. More... | |
~LiquidBridgeClassicalWilletSpecies () | |
The default destructor. More... | |
void | read (std::istream &is) |
Reads the species properties from an input stream. More... | |
void | write (std::ostream &os) const |
Writes the species properties to an output stream. More... | |
std::string | getBaseName () const |
Used in Species::getName to obtain a unique name for each Species. More... | |
void | mix (LiquidBridgeClassicalWilletSpecies *S, LiquidBridgeClassicalWilletSpecies *T) |
creates default values for mixed species More... | |
void | setInteractionDistance () |
void | setLiquidBridgeVolume (Mdouble liquidBridgeVolume) |
used to set the Volume of the liquid bridge. More... | |
Mdouble | getLiquidBridgeVolume () const |
used to access the Volume of the liquid bridge. More... | |
void | setSurfaceTension (Mdouble surfaceTension) |
used to set the surface tension of the liquid. More... | |
Mdouble | getSurfaceTension () const |
used to access the surface tension of the liquid. More... | |
void | setContactAngle (Mdouble contactAngle) |
used to set the contact angle between particle and liquid bridge surface. More... | |
Mdouble | getContactAngle () const |
used to access the contact angle between particle and liquid bridge surface. More... | |
![]() | |
BaseSpecies * | getBaseSpecies () const |
void | setBaseSpecies (BaseSpecies *baseSpecies) |
Private Attributes | |
Mdouble | liquidBridgeVolume_ |
Volume of the liquid bridge. More... | |
Mdouble | cbrtLiquidBridgeVolume_ |
Cube root of the liquid bridge. More... | |
Mdouble | contactAngle_ |
contact angle between particle and liquid bridge surface More... | |
Mdouble | surfaceTension_ |
surface tension of the liquid More... | |
LiquidBridgeClassicalWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges.
See LiquidBridgeClassicalWilletInteraction::computeForce for a description of the force law.
The correct Interaction type for this AdhesiveForceSpecies.
LiquidBridgeClassicalWilletSpecies::LiquidBridgeClassicalWilletSpecies | ( | ) |
The default constructor.
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, and surfaceTension_.
LiquidBridgeClassicalWilletSpecies::LiquidBridgeClassicalWilletSpecies | ( | const LiquidBridgeClassicalWilletSpecies & | s | ) |
The default copy constructor.
[in] | the | species that is copied |
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, s, and surfaceTension_.
LiquidBridgeClassicalWilletSpecies::~LiquidBridgeClassicalWilletSpecies | ( | ) |
std::string LiquidBridgeClassicalWilletSpecies::getBaseName | ( | ) | const |
Mdouble LiquidBridgeClassicalWilletSpecies::getContactAngle | ( | ) | const |
used to access the contact angle between particle and liquid bridge surface.
References contactAngle_.
Referenced by LiquidBridgeClassicalWilletInteraction::computeAdhesionForce().
Mdouble LiquidBridgeClassicalWilletSpecies::getLiquidBridgeVolume | ( | ) | const |
used to access the Volume of the liquid bridge.
References liquidBridgeVolume_.
Referenced by LiquidBridgeClassicalWilletInteraction::computeAdhesionForce().
Mdouble LiquidBridgeClassicalWilletSpecies::getSurfaceTension | ( | ) | const |
used to access the surface tension of the liquid.
References surfaceTension_.
Referenced by LiquidBridgeClassicalWilletInteraction::computeAdhesionForce().
void LiquidBridgeClassicalWilletSpecies::mix | ( | LiquidBridgeClassicalWilletSpecies * | S, |
LiquidBridgeClassicalWilletSpecies * | T | ||
) |
creates default values for mixed species
For all parameters we assume that the harmonic mean of the parameters of the original two species is a sensible default.
[in] | S,T | the two species whose properties are mixed to create the new species |
References BaseSpecies::average(), Eigen::numext::cbrt(), cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, oomph::QuadTreeNames::S, setInteractionDistance(), and surfaceTension_.
void LiquidBridgeClassicalWilletSpecies::read | ( | std::istream & | is | ) |
Reads the species properties from an input stream.
[in] | input | stream (typically the restart file) |
References Eigen::numext::cbrt(), cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, setInteractionDistance(), oomph::Global_string_for_annotation::string(), and surfaceTension_.
void LiquidBridgeClassicalWilletSpecies::setContactAngle | ( | Mdouble | contactAngle | ) |
used to set the contact angle between particle and liquid bridge surface.
[in] | contactAngle | the contact angle between particle and liquid bridge surface. |
References contactAngle_, logger, and setInteractionDistance().
|
virtual |
Reimplemented from BaseAdhesiveForce.
References cbrtLiquidBridgeVolume_, contactAngle_, BaseForce::getBaseSpecies(), and BaseSpecies::setInteractionDistance().
Referenced by mix(), read(), setContactAngle(), and setLiquidBridgeVolume().
void LiquidBridgeClassicalWilletSpecies::setLiquidBridgeVolume | ( | Mdouble | liquidBridgeVolume | ) |
used to set the Volume of the liquid bridge.
[in] | liquidBridgeVolume | the volume of the liquid bridge. |
References Eigen::numext::cbrt(), cbrtLiquidBridgeVolume_, liquidBridgeVolume_, logger, and setInteractionDistance().
void LiquidBridgeClassicalWilletSpecies::setSurfaceTension | ( | Mdouble | surfaceTension | ) |
used to set the surface tension of the liquid.
[in] | surfaceTension | the surface tension of the liquid. |
References logger, and surfaceTension_.
void LiquidBridgeClassicalWilletSpecies::write | ( | std::ostream & | os | ) | const |
Writes the species properties to an output stream.
[out] | output | stream (typically the restart file) |
References contactAngle_, liquidBridgeVolume_, and surfaceTension_.
|
private |
Cube root of the liquid bridge.
This is a slave variable of liquidBridgeVolume_ (i.e. it is always set together) but is useful, because the cube root has to be calculated to obtain the liquid bridge adhesive force.
Referenced by LiquidBridgeClassicalWilletSpecies(), mix(), read(), setInteractionDistance(), and setLiquidBridgeVolume().
|
private |
contact angle between particle and liquid bridge surface
Referenced by getContactAngle(), LiquidBridgeClassicalWilletSpecies(), mix(), read(), setContactAngle(), setInteractionDistance(), and write().
|
private |
Volume of the liquid bridge.
Currently, this is a Species property (i.e. all particles have the same liquid bridge volume), but this should probably become a Particle or Interaction property.
Referenced by getLiquidBridgeVolume(), LiquidBridgeClassicalWilletSpecies(), mix(), read(), setLiquidBridgeVolume(), and write().
|
private |
surface tension of the liquid
Referenced by getSurfaceTension(), LiquidBridgeClassicalWilletSpecies(), mix(), read(), setSurfaceTension(), and write().