SolidifyingLiquidMigrationWilletSpecies Class Reference

SolidifyingLiquidMigrationWilletSpecies contains the parameters used to describe a linear irreversible short-range force. More...

#include <SolidifyingLiquidMigrationWilletSpecies.h>

+ Inheritance diagram for SolidifyingLiquidMigrationWilletSpecies:

Public Types

typedef SolidifyingLiquidMigrationWilletInteraction InteractionType
 The correct Interaction type for this AdhesiveForceSpecies. More...
 
- Public Types inherited from LiquidMigrationWilletSpecies
typedef LiquidMigrationWilletInteraction InteractionType
 The correct Interaction type for this AdhesiveForceSpecies. More...
 

Public Member Functions

 SolidifyingLiquidMigrationWilletSpecies ()
 The default constructor. More...
 
 SolidifyingLiquidMigrationWilletSpecies (const SolidifyingLiquidMigrationWilletSpecies &s)
 The default copy constructor. More...
 
 ~SolidifyingLiquidMigrationWilletSpecies ()
 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 (SolidifyingLiquidMigrationWilletSpecies *S, SolidifyingLiquidMigrationWilletSpecies *T)
 creates default values for mixed species More...
 
void setBondDissipation (Mdouble bondDissipation)
 
Mdouble getBondDissipation () const
 
void setBondForceMax (Mdouble bondForceMax)
 
Mdouble getBondForceMax () const
 
void setSolidFraction (Mdouble solidFraction)
 
Mdouble getSolidFraction () const
 
- Public Member Functions inherited from LiquidMigrationWilletSpecies
 LiquidMigrationWilletSpecies ()
 The default constructor. More...
 
 LiquidMigrationWilletSpecies (const LiquidMigrationWilletSpecies &s)
 The default copy constructor. More...
 
 ~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 *S, LiquidMigrationWilletSpecies *T)
 creates default values for mixed species More...
 
void setInteractionDistance ()
 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 setLiquidBridgeVolumeMin (Mdouble)
 used to set the Volume of the liquid bridge. More...
 
Mdouble getLiquidBridgeVolumeMin () 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 (in radians) More...
 
Mdouble getContactAngle () const
 used to access the contact angle between particle and liquid bridge surface. More...
 
- Public Member Functions inherited from BaseForce
BaseSpeciesgetBaseSpecies () const
 
void setBaseSpecies (BaseSpecies *baseSpecies)
 

Private Attributes

Mdouble bondDissipation_
 dissipation in bond More...
 
Mdouble bondForceMax_
 adhesion force at zero overlap More...
 
Mdouble solidFraction_
 Different from bondInteraction: More...
 

Detailed Description

SolidifyingLiquidMigrationWilletSpecies contains the parameters used to describe a linear irreversible short-range force.

See SolidifyingLiquidMigrationWilletInteraction::computeForce for a description of the force law.

Member Typedef Documentation

◆ InteractionType

The correct Interaction type for this AdhesiveForceSpecies.

Constructor & Destructor Documentation

◆ SolidifyingLiquidMigrationWilletSpecies() [1/2]

SolidifyingLiquidMigrationWilletSpecies::SolidifyingLiquidMigrationWilletSpecies ( )

The default constructor.

Default constructor for gluable species. Sets default values for all relevant parameters. Note: if the stiffness of particles is left as zero, no force will be felt during interaction with other particles

Parameters
[in]sthe species that is copied
15 {
16  bondForceMax_ = 0;
17  bondDissipation_ = 0;
18  solidFraction_ = 0;
19 }
Mdouble solidFraction_
Different from bondInteraction:
Definition: SolidifyingLiquidMigrationWilletSpecies.h:86
Mdouble bondForceMax_
adhesion force at zero overlap
Definition: SolidifyingLiquidMigrationWilletSpecies.h:83
Mdouble bondDissipation_
dissipation in bond
Definition: SolidifyingLiquidMigrationWilletSpecies.h:80

References bondDissipation_, bondForceMax_, and solidFraction_.

◆ SolidifyingLiquidMigrationWilletSpecies() [2/2]

SolidifyingLiquidMigrationWilletSpecies::SolidifyingLiquidMigrationWilletSpecies ( const SolidifyingLiquidMigrationWilletSpecies s)

The default copy constructor.

Parameters
[in]thespecies that is copied
25 {
26  bondForceMax_ = s.bondForceMax_;
27  bondDissipation_ = s.bondDissipation_;
28  solidFraction_ = s.solidFraction_;
29 }
LiquidMigrationWilletSpecies()
The default constructor.
Definition: LiquidMigrationWilletSpecies.cc:8
RealScalar s
Definition: level1_cplx_impl.h:130

References bondDissipation_, bondForceMax_, s, and solidFraction_.

◆ ~SolidifyingLiquidMigrationWilletSpecies()

SolidifyingLiquidMigrationWilletSpecies::~SolidifyingLiquidMigrationWilletSpecies ( )

The default destructor.

32 {
33 }

Member Function Documentation

◆ getBaseName()

std::string SolidifyingLiquidMigrationWilletSpecies::getBaseName ( ) const

Used in Species::getName to obtain a unique name for each Species.

Returns
a string containing the name of the species (minus the word "Species")
39 {
40  return "Solidifying" + LiquidMigrationWilletSpecies::getBaseName();
41 }
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Definition: LiquidMigrationWilletSpecies.cc:71

References LiquidMigrationWilletSpecies::getBaseName().

◆ getBondDissipation()

Mdouble SolidifyingLiquidMigrationWilletSpecies::getBondDissipation ( ) const
inline
52  {
53  return bondDissipation_;
54  }

References bondDissipation_.

◆ getBondForceMax()

Mdouble SolidifyingLiquidMigrationWilletSpecies::getBondForceMax ( ) const
inline

◆ getSolidFraction()

Mdouble SolidifyingLiquidMigrationWilletSpecies::getSolidFraction ( ) const
inline

◆ mix()

void SolidifyingLiquidMigrationWilletSpecies::mix ( SolidifyingLiquidMigrationWilletSpecies S,
SolidifyingLiquidMigrationWilletSpecies 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.

Parameters
[in]S,Tthe two species whose properties are mixed to create the new species
72 {
74  bondForceMax_ = BaseSpecies::average(S->getBondForceMax(), T->getBondForceMax());
75  bondDissipation_ = BaseSpecies::average(S->getBondDissipation(), T->getBondDissipation());
76 }
static Mdouble average(Mdouble a, Mdouble b)
Returns the harmonic mean of two variables.
Definition: BaseSpecies.cc:89
void mix(LiquidMigrationWilletSpecies *S, LiquidMigrationWilletSpecies *T)
creates default values for mixed species
Definition: LiquidMigrationWilletSpecies.cc:81
@ S
Definition: quadtree.h:62

References BaseSpecies::average(), bondDissipation_, bondForceMax_, LiquidMigrationWilletSpecies::mix(), and oomph::QuadTreeNames::S.

◆ read()

void SolidifyingLiquidMigrationWilletSpecies::read ( std::istream &  is)

Reads the species properties from an input stream.

Parameters
[in]isinput stream (typically the restart file)
58 {
60  std::string dummy;
61  is >> dummy >> bondForceMax_;
62  is >> dummy >> bondDissipation_;
63  is >> dummy >> solidFraction_;
64 }
void read(std::istream &is)
Reads the species properties from an input stream.
Definition: LiquidMigrationWilletSpecies.cc:57
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286

References bondDissipation_, bondForceMax_, LiquidMigrationWilletSpecies::read(), solidFraction_, and oomph::Global_string_for_annotation::string().

◆ setBondDissipation()

void SolidifyingLiquidMigrationWilletSpecies::setBondDissipation ( Mdouble  bondDissipation)
inline
46  {
47  logger.assert_debug(bondDissipation >= 0, "Error in setBondDissipation");
48  bondDissipation_ = bondDissipation;
49  }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.

References bondDissipation_, and logger.

◆ setBondForceMax()

void SolidifyingLiquidMigrationWilletSpecies::setBondForceMax ( Mdouble  bondForceMax)
inline
57  {
58  logger.assert_debug(bondForceMax >= 0, "Error in setBondForceMax");
59  bondForceMax_ = bondForceMax;
60  }

References bondForceMax_, and logger.

◆ setSolidFraction()

void SolidifyingLiquidMigrationWilletSpecies::setSolidFraction ( Mdouble  solidFraction)
inline
68  {
69  logger.assert_debug(solidFraction >= 0, "Error in setBondForceMax");
70  solidFraction_ = solidFraction;
71  }

References logger, and solidFraction_.

◆ write()

void SolidifyingLiquidMigrationWilletSpecies::write ( std::ostream &  os) const

Writes the species properties to an output stream.

Parameters
[out]osoutput stream (typically the restart file)
47 {
49  os << " bondForceMax " << bondForceMax_;
50  os << " bondDissipation " << bondDissipation_;
51  os << " solidFraction " << solidFraction_;
52 }
void write(std::ostream &os) const
Writes the species properties to an output stream.
Definition: LiquidMigrationWilletSpecies.cc:45

References bondDissipation_, bondForceMax_, solidFraction_, and LiquidMigrationWilletSpecies::write().

Member Data Documentation

◆ bondDissipation_

Mdouble SolidifyingLiquidMigrationWilletSpecies::bondDissipation_
private

◆ bondForceMax_

Mdouble SolidifyingLiquidMigrationWilletSpecies::bondForceMax_
private

adhesion force at zero overlap

Referenced by getBondForceMax(), mix(), read(), setBondForceMax(), SolidifyingLiquidMigrationWilletSpecies(), and write().

◆ solidFraction_

Mdouble SolidifyingLiquidMigrationWilletSpecies::solidFraction_
private

Different from bondInteraction:

Referenced by getSolidFraction(), read(), setSolidFraction(), SolidifyingLiquidMigrationWilletSpecies(), and write().


The documentation for this class was generated from the following files: