|
BondedSpecies contains the parameters used to describe a linear irreversible short-range force. More...
#include <BondedSpecies.h>
Public Types | |
typedef BondedInteraction | InteractionType |
The correct Interaction type for this AdhesiveForceSpecies. More... | |
Public Member Functions | |
BondedSpecies () | |
The default constructor. More... | |
BondedSpecies (const BondedSpecies &s) | |
The default copy constructor. More... | |
~BondedSpecies () | |
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 (BondedSpecies *S, BondedSpecies *T) |
creates default values for mixed species More... | |
void | setBondDissipation (Mdouble disp) |
Allows the spring constant to be changed. More... | |
Mdouble | getBondDissipation () const |
Allows the spring constant to be accessed. More... | |
void | setBondForceMax (Mdouble new_f0) |
Allows bondForceMax_ to be changed. More... | |
Mdouble | getBondForceMax () const |
Allows bondForceMax_ to be accessed. More... | |
Public Member Functions inherited from BaseForce | |
BaseSpecies * | getBaseSpecies () const |
void | setBaseSpecies (BaseSpecies *baseSpecies) |
Private Attributes | |
Mdouble | bondDissipation_ |
dissipation in bond More... | |
Mdouble | bondForceMax_ |
adhesion force at zero overlap More... | |
BondedSpecies contains the parameters used to describe a linear irreversible short-range force.
See BondedInteraction::computeForce for a description of the force law.
The correct Interaction type for this AdhesiveForceSpecies.
BondedSpecies::BondedSpecies | ( | ) |
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
[in] | s | the species that is copied |
References bondDissipation_, and bondForceMax_.
BondedSpecies::BondedSpecies | ( | const BondedSpecies & | s | ) |
The default copy constructor.
[in] | the | species that is copied |
References bondDissipation_, and bondForceMax_.
BondedSpecies::~BondedSpecies | ( | ) |
std::string BondedSpecies::getBaseName | ( | ) | const |
Mdouble BondedSpecies::getBondDissipation | ( | ) | const |
Allows the spring constant to be accessed.
References bondDissipation_.
Referenced by BondedInteraction::computeAdhesionForce(), and mix().
Mdouble BondedSpecies::getBondForceMax | ( | ) | const |
Allows bondForceMax_ to be accessed.
Allows the spring constant to be accessed.
References bondForceMax_.
Referenced by BondedInteraction::bond(), BondedInteraction::getElasticEnergy(), and mix().
void BondedSpecies::mix | ( | BondedSpecies * | S, |
BondedSpecies * | 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(), bondDissipation_, bondForceMax_, getBondDissipation(), and getBondForceMax().
void BondedSpecies::read | ( | std::istream & | is | ) |
Reads the species properties from an input stream.
[in] | is | input stream (typically the restart file) |
References bondDissipation_, and bondForceMax_.
void BondedSpecies::setBondDissipation | ( | Mdouble | disp | ) |
Allows the spring constant to be changed.
References bondDissipation_, ERROR, and logger.
void BondedSpecies::setBondForceMax | ( | Mdouble | new_f0 | ) |
Allows bondForceMax_ to be changed.
Allows the spring constant to be changed.
References bondForceMax_, ERROR, and logger.
void BondedSpecies::write | ( | std::ostream & | os | ) | const |
Writes the species properties to an output stream.
[out] | os | output stream (typically the restart file) |
References bondDissipation_, and bondForceMax_.
|
private |
dissipation in bond
Referenced by BondedSpecies(), getBondDissipation(), mix(), read(), setBondDissipation(), and write().
|
private |
adhesion force at zero overlap
Referenced by BondedSpecies(), getBondForceMax(), mix(), read(), setBondForceMax(), and write().