50 #ifdef DEBUG_CONSTRUCTOR
51 std::cout<<
"ChargedBondedSpecies::ChargedBondedSpecies() finished"<<std::endl;
68 #ifdef DEBUG_CONSTRUCTOR
69 std::cout<<
"ChargedBondedSpecies::ChargedBondedSpecies(const ChargedBondedSpecies &p) finished"<<std::endl;
108 return "ChargedBonded";
139 logger.assert_debug(
adhesionStiffness_ != 0.0,
"ChargedBondedSpecies::getInteractionDistance(): adhesionStiffness cannot be zero");
190 if (newCharge == 0 || newCharge == 1 || newCharge == -1)
194 logger(
ERROR,
"Error in setCharge - charge must be +1, -1 or zero");
Mdouble adhesionForceMax_
adhesion force at zero overlap
BaseSpecies * getBaseSpecies() const
Mdouble getVanDerWaalsForceMax() const
void setAdhesionForceMax(Mdouble new_f0)
Allows the spring constant to be changed.
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here...
void setBondForceMax(Mdouble new_f0)
Allows the spring constant for the BOND to be changed (Do not confuse with the charged interaction st...
Mdouble getAdhesionForceMax() const
Allows the spring constant to be accessed.
void setInteractionDistance(Mdouble interactionDistance)
Sets BaseSpecies::interactionDistance_.
void read(std::istream &is)
Reads the species properties from an input stream.
Mdouble vanDerWaalsForceMax_
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
ChargedBondedSpecies contains the parameters used to describe a linear reversible short-range force...
Mdouble getBondDissipation() const
Allows the additional dissipation used to damp oscillations between bondd particles to be accessed...
void setBondDissipation(Mdouble disp)
Allows the additional dissipation used to damp oscillations between bondd particles to be changed...
Mdouble getVanDerWaalsStiffness() const
void setVanDerWaalsForceMax(Mdouble)
Mdouble bondForceMax_
The maximal force which acts to bind together particles which are "bondd" into a single body...
static Mdouble average(Mdouble a, Mdouble b)
Returns the harmonic mean of two variables.
void setVanDerWaalsStiffness(Mdouble)
Mdouble getAdhesionStiffness() const
Allows the spring constant to be accessed.
Mdouble bondDissipation_
dissipation in bond
void setCharge(int newCharge)
void setInteractionDistance()
returns the largest separation distance at which adhesive short-range forces can occur.
void setAdhesionStiffness(Mdouble new_k0)
Allows the spring constant to be changed.
ChargedBondedSpecies()
The default constructor.
Mdouble getBondForceMax() const
Allows the maximal force for 'bonding' particles together to be accessed.
Mdouble vanDerWaalsStiffness_
void mix(ChargedBondedSpecies *S, ChargedBondedSpecies *T)
creates default values for mixed species
void write(std::ostream &os) const
Writes the species properties to an output stream.
Mdouble adhesionStiffness_
stiffness of linear adhesion force