MercuryDPM
Alpha
|
LiquidMigrationWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges. More...
#include <LiquidMigrationWilletSpecies.h>
Public Types | |
typedef LiquidMigrationWilletInteraction | InteractionType |
The correct Interaction type for this AdhesiveForceSpecies. More... | |
Public Member Functions | |
LiquidMigrationWilletSpecies () | |
The default constructor. More... | |
LiquidMigrationWilletSpecies (const LiquidMigrationWilletSpecies &s) | |
The default copy constructor. More... | |
virtual | ~LiquidMigrationWilletSpecies () |
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 (LiquidMigrationWilletSpecies *const S, LiquidMigrationWilletSpecies *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 | setLiquidBridgeVolumeMax (Mdouble liquidBridgeVolume) |
used to set the Volume of the liquid bridge. More... | |
Mdouble | getLiquidBridgeVolumeMax () const |
used to access the Volume of the liquid bridge. More... | |
void | setDistributionCoefficient (Mdouble distributionCoefficient) |
used to set the distribution coefficient of the liquid. More... | |
Mdouble | getDistributionCoefficient () const |
used to access the surface tension of the liquid. 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 | liquidBridgeVolumeMax_ |
Volume of the liquid bridge. More... | |
Mdouble | maxInteractionDistance_ |
Cube root of the liquid bridge. More... | |
Mdouble | distributionCoefficient_ |
distribution coefficient of the liquid More... | |
Mdouble | contactAngle_ |
contact angle between particle and liquid bridge surface More... | |
Mdouble | surfaceTension_ |
surface tension of the liquid More... | |
LiquidMigrationWilletSpecies contains the parameters used to describe a short-range force caused by liquid bridges.
See LiquidMigrationWilletInteraction::computeForce for a description of the force law.
Definition at line 36 of file LiquidMigrationWilletSpecies.h.
The correct Interaction type for this AdhesiveForceSpecies.
Definition at line 40 of file LiquidMigrationWilletSpecies.h.
LiquidMigrationWilletSpecies::LiquidMigrationWilletSpecies | ( | ) |
The default constructor.
Definition at line 29 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, distributionCoefficient_, liquidBridgeVolumeMax_, maxInteractionDistance_, and surfaceTension_.
LiquidMigrationWilletSpecies::LiquidMigrationWilletSpecies | ( | const LiquidMigrationWilletSpecies & | s | ) |
The default copy constructor.
[in] | the | species that is copied |
Definition at line 44 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, distributionCoefficient_, liquidBridgeVolumeMax_, maxInteractionDistance_, and surfaceTension_.
|
virtual |
The default destructor.
Definition at line 56 of file LiquidMigrationWilletSpecies.cc.
std::string LiquidMigrationWilletSpecies::getBaseName | ( | ) | const |
Used in Species::getName to obtain a unique name for each Species.
Definition at line 89 of file LiquidMigrationWilletSpecies.cc.
Mdouble LiquidMigrationWilletSpecies::getContactAngle | ( | ) | const |
used to access the contact angle between particle and liquid bridge surface.
Definition at line 205 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_.
Referenced by LiquidMigrationWilletInteraction::computeAdhesionForce(), LiquidMigrationWilletInteraction::getRuptureDistance(), and mix().
Mdouble LiquidMigrationWilletSpecies::getDistributionCoefficient | ( | ) | const |
used to access the surface tension of the liquid.
Definition at line 157 of file LiquidMigrationWilletSpecies.cc.
References distributionCoefficient_.
Referenced by mix(), and LiquidMigrationWilletInteraction::rupture().
|
virtual |
returns the largest separation distance at which adhesive short-range forces can occur.
Implements BaseSpecies.
Definition at line 110 of file LiquidMigrationWilletSpecies.cc.
References maxInteractionDistance_.
Mdouble LiquidMigrationWilletSpecies::getLiquidBridgeVolumeMax | ( | ) | const |
used to access the Volume of the liquid bridge.
Definition at line 135 of file LiquidMigrationWilletSpecies.cc.
References liquidBridgeVolumeMax_.
Referenced by LiquidMigrationWilletInteraction::form(), mix(), and LiquidMigrationWilletInteraction::rupture().
Mdouble LiquidMigrationWilletSpecies::getSurfaceTension | ( | ) | const |
used to access the surface tension of the liquid.
Definition at line 180 of file LiquidMigrationWilletSpecies.cc.
References surfaceTension_.
Referenced by LiquidMigrationWilletInteraction::computeAdhesionForce(), and mix().
void LiquidMigrationWilletSpecies::mix | ( | LiquidMigrationWilletSpecies *const | S, |
LiquidMigrationWilletSpecies *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 99 of file LiquidMigrationWilletSpecies.cc.
References BaseSpecies::average(), contactAngle_, distributionCoefficient_, getContactAngle(), getDistributionCoefficient(), getLiquidBridgeVolumeMax(), getSurfaceTension(), setLiquidBridgeVolumeMax(), and surfaceTension_.
|
virtual |
Reads the species properties from an input stream.
[in] | input | stream (typically the restart file) |
Implements BaseObject.
Definition at line 77 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, distributionCoefficient_, liquidBridgeVolumeMax_, and surfaceTension_.
void LiquidMigrationWilletSpecies::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 188 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, liquidBridgeVolumeMax_, and maxInteractionDistance_.
void LiquidMigrationWilletSpecies::setDistributionCoefficient | ( | Mdouble | distributionCoefficient | ) |
used to set the distribution coefficient of the liquid.
[in] | distributionCoefficient | the distribution coefficient of the liquid. |
Definition at line 143 of file LiquidMigrationWilletSpecies.cc.
References distributionCoefficient_.
void LiquidMigrationWilletSpecies::setLiquidBridgeVolumeMax | ( | Mdouble | liquidBridgeVolumeMax | ) |
used to set the Volume of the liquid bridge.
[in] | liquidBridgeVolume | the volume of the liquid bridge. |
Definition at line 118 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, liquidBridgeVolumeMax_, and maxInteractionDistance_.
Referenced by mix().
void LiquidMigrationWilletSpecies::setSurfaceTension | ( | Mdouble | surfaceTension | ) |
used to set the surface tension of the liquid.
[in] | surfaceTension | the surface tension of the liquid. |
Definition at line 166 of file LiquidMigrationWilletSpecies.cc.
References surfaceTension_.
|
virtual |
Writes the species properties to an output stream.
[out] | output | stream (typically the restart file) |
Implements BaseObject.
Definition at line 66 of file LiquidMigrationWilletSpecies.cc.
References contactAngle_, distributionCoefficient_, liquidBridgeVolumeMax_, and surfaceTension_.
|
private |
contact angle between particle and liquid bridge surface
Definition at line 137 of file LiquidMigrationWilletSpecies.h.
Referenced by getContactAngle(), LiquidMigrationWilletSpecies(), mix(), read(), setContactAngle(), setLiquidBridgeVolumeMax(), and write().
|
private |
distribution coefficient of the liquid
This is a variable that determines the fraction of the liquid that is to be distributed to the neighboring contacts of the particles after a liquid bridge rupture.
Definition at line 132 of file LiquidMigrationWilletSpecies.h.
Referenced by getDistributionCoefficient(), LiquidMigrationWilletSpecies(), mix(), read(), setDistributionCoefficient(), 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 116 of file LiquidMigrationWilletSpecies.h.
Referenced by getLiquidBridgeVolumeMax(), LiquidMigrationWilletSpecies(), read(), setContactAngle(), setLiquidBridgeVolumeMax(), and write().
|
private |
Cube root of the liquid bridge.
This is a slave variable of liquidBridgeVolumeMax_ (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 124 of file LiquidMigrationWilletSpecies.h.
Referenced by getInteractionDistance(), LiquidMigrationWilletSpecies(), setContactAngle(), and setLiquidBridgeVolumeMax().
|
private |
surface tension of the liquid
Definition at line 142 of file LiquidMigrationWilletSpecies.h.
Referenced by getSurfaceTension(), LiquidMigrationWilletSpecies(), mix(), read(), setSurfaceTension(), and write().