MercuryDPM
Alpha
|
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... | |
virtual | ~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 *const S, LiquidBridgeWilletSpecies *const T) |
creates default values for mixed species More... | |
Mdouble | getInteractionDistance () const |
returns the largest separation distance at which adhesive short-range forces can occur. More... | |
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 BaseSpecies | |
BaseSpecies () | |
The default constructor. More... | |
BaseSpecies (const BaseSpecies &p) | |
The copy constructor. More... | |
virtual | ~BaseSpecies () |
The default destructor. More... | |
virtual BaseSpecies * | copy () const =0 |
Creates a deep copy of the object from which it is called. More... | |
void | setHandler (SpeciesHandler *handler) |
Sets the pointer to the handler to which this species belongs. More... | |
SpeciesHandler * | getHandler () const |
Returns the pointer to the handler to which this species belongs. More... | |
Mdouble | average (Mdouble a, Mdouble b) |
defines the average of two variables by the harmonic mean. More... | |
virtual void | mixAll (BaseSpecies *const S, BaseSpecies *const T)=0 |
creates default values for mixed species More... | |
virtual bool | getUseAngularDOFs () const =0 |
Returns true if torques (i.e. angular degrees of freedom) have to be calculated. More... | |
virtual BaseInteraction * | getNewInteraction (BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp) const =0 |
returns new Interaction object. More... | |
Public Member Functions inherited from BaseObject | |
BaseObject () | |
Default constructor. More... | |
BaseObject (const BaseObject &p) | |
Copy constructor, copies all the objects BaseObject contains. More... | |
virtual | ~BaseObject () |
virtual destructor More... | |
virtual std::string | getName () const =0 |
A purely virtual function. More... | |
virtual void | moveInHandler (const unsigned int index) |
Except that it is virtual, it does the same thing as setIndex() does. More... | |
void | setIndex (const unsigned int index) |
Allows one to assign an index to an object in the handler/container. More... | |
void | setId (const unsigned int id) |
Assigns a unique identifier to each object in the handler (container) which remains constant even after the object is deleted from the container/handler. More... | |
unsigned int | getIndex () const |
Returns the index of the object in the handler. More... | |
unsigned int | getId () const |
Returns the unique identifier of any particular object. More... | |
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.
Definition at line 36 of file LiquidBridgeWilletSpecies.h.
The correct Interaction type for this AdhesiveForceSpecies.
Definition at line 40 of file LiquidBridgeWilletSpecies.h.
LiquidBridgeWilletSpecies::LiquidBridgeWilletSpecies | ( | ) |
The default constructor.
Definition at line 29 of file LiquidBridgeWilletSpecies.cc.
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, and surfaceTension_.
LiquidBridgeWilletSpecies::LiquidBridgeWilletSpecies | ( | const LiquidBridgeWilletSpecies & | s | ) |
The default copy constructor.
[in] | the | species that is copied |
Definition at line 43 of file LiquidBridgeWilletSpecies.cc.
References cbrtLiquidBridgeVolume_, contactAngle_, liquidBridgeVolume_, and surfaceTension_.
|
virtual |
The default destructor.
Definition at line 54 of file LiquidBridgeWilletSpecies.cc.
std::string LiquidBridgeWilletSpecies::getBaseName | ( | ) | const |
Used in Species::getName to obtain a unique name for each Species.
Definition at line 85 of file LiquidBridgeWilletSpecies.cc.
Mdouble LiquidBridgeWilletSpecies::getContactAngle | ( | ) | const |
used to access the contact angle between particle and liquid bridge surface.
Definition at line 174 of file LiquidBridgeWilletSpecies.cc.
References contactAngle_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
|
virtual |
returns the largest separation distance at which adhesive short-range forces can occur.
Implements BaseSpecies.
Definition at line 105 of file LiquidBridgeWilletSpecies.cc.
References cbrtLiquidBridgeVolume_, and contactAngle_.
Mdouble LiquidBridgeWilletSpecies::getLiquidBridgeVolume | ( | ) | const |
used to access the Volume of the liquid bridge.
Definition at line 130 of file LiquidBridgeWilletSpecies.cc.
References liquidBridgeVolume_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
Mdouble LiquidBridgeWilletSpecies::getSurfaceTension | ( | ) | const |
used to access the surface tension of the liquid.
Definition at line 152 of file LiquidBridgeWilletSpecies.cc.
References surfaceTension_.
Referenced by LiquidBridgeWilletInteraction::computeAdhesionForce(), and mix().
void LiquidBridgeWilletSpecies::mix | ( | LiquidBridgeWilletSpecies *const | S, |
LiquidBridgeWilletSpecies *const | 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 |
Definition at line 95 of file LiquidBridgeWilletSpecies.cc.
References BaseSpecies::average(), contactAngle_, getContactAngle(), getLiquidBridgeVolume(), getSurfaceTension(), setLiquidBridgeVolume(), and surfaceTension_.
|
virtual |
Reads the species properties from an input stream.
[in] | input | stream (typically the restart file) |
Implements BaseObject.
Definition at line 74 of file LiquidBridgeWilletSpecies.cc.
References contactAngle_, liquidBridgeVolume_, 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. |
Definition at line 160 of file LiquidBridgeWilletSpecies.cc.
References contactAngle_.
void LiquidBridgeWilletSpecies::setLiquidBridgeVolume | ( | Mdouble | liquidBridgeVolume | ) |
used to set the Volume of the liquid bridge.
[in] | liquidBridgeVolume | the volume of the liquid bridge. |
Definition at line 113 of file LiquidBridgeWilletSpecies.cc.
References cbrtLiquidBridgeVolume_, and liquidBridgeVolume_.
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. |
Definition at line 138 of file LiquidBridgeWilletSpecies.cc.
References surfaceTension_.
|
virtual |
Writes the species properties to an output stream.
[out] | output | stream (typically the restart file) |
Implements BaseObject.
Definition at line 64 of file LiquidBridgeWilletSpecies.cc.
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.
Definition at line 114 of file LiquidBridgeWilletSpecies.h.
Referenced by getInteractionDistance(), LiquidBridgeWilletSpecies(), and setLiquidBridgeVolume().
|
private |
contact angle between particle and liquid bridge surface
Definition at line 119 of file LiquidBridgeWilletSpecies.h.
Referenced by getContactAngle(), getInteractionDistance(), LiquidBridgeWilletSpecies(), mix(), read(), setContactAngle(), 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.
Definition at line 106 of file LiquidBridgeWilletSpecies.h.
Referenced by getLiquidBridgeVolume(), LiquidBridgeWilletSpecies(), read(), setLiquidBridgeVolume(), and write().
|
private |
surface tension of the liquid
Definition at line 124 of file LiquidBridgeWilletSpecies.h.
Referenced by getSurfaceTension(), LiquidBridgeWilletSpecies(), mix(), read(), setSurfaceTension(), and write().