|
LiquidBridgeWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges. More...
#include <LiquidBridgeWilletSpecies.h>
Public Types | |
typedef LiquidBridgeWilletInteraction | InteractionType |
The correct Interaction type for this AdhesiveForceSpecies. More... | |
Public Member Functions | |
LiquidBridgeWilletSpecies () | |
The default constructor. More... | |
LiquidBridgeWilletSpecies (const LiquidBridgeWilletSpecies &s) | |
The default copy constructor. More... | |
~LiquidBridgeWilletSpecies () | |
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 (LiquidBridgeWilletSpecies *S, LiquidBridgeWilletSpecies *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... | |
Public Member Functions inherited from BaseForce | |
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... | |
LiquidBridgeWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges.
See LiquidBridgeWilletInteraction::computeForce for a description of the force law.
The correct Interaction type for this AdhesiveForceSpecies.
LiquidBridgeWilletSpecies::LiquidBridgeWilletSpecies | ( | ) |
The default constructor.
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, setInteractionDistance(), and surfaceTension_.
LiquidBridgeWilletSpecies::LiquidBridgeWilletSpecies | ( | const LiquidBridgeWilletSpecies & | s | ) |
The default copy constructor.
[in] | the | species that is copied |
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, and surfaceTension_.
LiquidBridgeWilletSpecies::~LiquidBridgeWilletSpecies | ( | ) |
std::string LiquidBridgeWilletSpecies::getBaseName | ( | ) | const |
Mdouble LiquidBridgeWilletSpecies::getContactAngle | ( | ) | const |
used to access the contact angle between particle and liquid bridge surface.
References contactAngle_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
Mdouble LiquidBridgeWilletSpecies::getLiquidBridgeVolume | ( | ) | const |
used to access the Volume of the liquid bridge.
References liquidBridgeVolume_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
Mdouble LiquidBridgeWilletSpecies::getSurfaceTension | ( | ) | const |
used to access the surface tension of the liquid.
References surfaceTension_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
void LiquidBridgeWilletSpecies::mix | ( | LiquidBridgeWilletSpecies * | S, |
LiquidBridgeWilletSpecies * | 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(), contactAngle_, getContactAngle(), getLiquidBridgeVolume(), getSurfaceTension(), setLiquidBridgeVolume(), and surfaceTension_.
void LiquidBridgeWilletSpecies::read | ( | std::istream & | is | ) |
Reads the species properties from an input stream.
[in] | input | stream (typically the restart file) |
References contactAngle_, liquidBridgeVolume_, setInteractionDistance(), and surfaceTension_.
void LiquidBridgeWilletSpecies::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().
void LiquidBridgeWilletSpecies::setInteractionDistance | ( | ) |
References cbrtLiquidBridgeVolume_, contactAngle_, BaseForce::getBaseSpecies(), and BaseSpecies::setInteractionDistance().
Referenced by LiquidBridgeWilletSpecies(), read(), setContactAngle(), and setLiquidBridgeVolume().
void LiquidBridgeWilletSpecies::setLiquidBridgeVolume | ( | Mdouble | liquidBridgeVolume | ) |
used to set the Volume of the liquid bridge.
[in] | liquidBridgeVolume | the volume of the liquid bridge. |
References cbrtLiquidBridgeVolume_, ERROR, liquidBridgeVolume_, logger, and setInteractionDistance().
Referenced by mix().
void LiquidBridgeWilletSpecies::setSurfaceTension | ( | Mdouble | surfaceTension | ) |
used to set the surface tension of the liquid.
[in] | surfaceTension | the surface tension of the liquid. |
References ERROR, logger, and surfaceTension_.
void LiquidBridgeWilletSpecies::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 LiquidBridgeWilletSpecies(), setInteractionDistance(), and setLiquidBridgeVolume().
|
private |
contact angle between particle and liquid bridge surface
Referenced by getContactAngle(), LiquidBridgeWilletSpecies(), 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(), LiquidBridgeWilletSpecies(), read(), setLiquidBridgeVolume(), and write().
|
private |
surface tension of the liquid
Referenced by getSurfaceTension(), LiquidBridgeWilletSpecies(), mix(), read(), setSurfaceTension(), and write().