BaseNormalForce Class Reference

#include <BaseNormalForce.h>

+ Inheritance diagram for BaseNormalForce:

Public Member Functions

 BaseNormalForce ()
 
 BaseNormalForce (const BaseNormalForce &p)
 
bool getConstantRestitution () const
 
void setConstantRestitution (bool constantRestitution)
 
virtual void actionsAfterTimeStep (BaseParticle *particle) const
 
- Public Member Functions inherited from BaseForce
BaseSpeciesgetBaseSpecies () const
 
void setBaseSpecies (BaseSpecies *baseSpecies)
 

Private Attributes

bool constantRestitution_
 

Constructor & Destructor Documentation

◆ BaseNormalForce() [1/2]

BaseNormalForce::BaseNormalForce ( )
inline
35  {
36  constantRestitution_ = false;
37  }
bool constantRestitution_
Definition: BaseNormalForce.h:55

References constantRestitution_.

◆ BaseNormalForce() [2/2]

BaseNormalForce::BaseNormalForce ( const BaseNormalForce p)
inline
39  {
41  }

References constantRestitution_.

Member Function Documentation

◆ actionsAfterTimeStep()

◆ getConstantRestitution()

bool BaseNormalForce::getConstantRestitution ( ) const
inline

◆ setConstantRestitution()

void BaseNormalForce::setConstantRestitution ( bool  constantRestitution)

Sets constantRestitution_.

29  {
30  constantRestitution_ = constantRestitution;
31  if (constantRestitution) {
32  logger(INFO,"You are using a constant restitution contact model; make sure you understand the implications this has on the stiffness and dissipation used by the contact model!");
33  }
34  //if use setCollisionTime or setRestitutionCoefficient to set the parameters of your contact model, then these functions should be called AFTER calling setConstantRestitution.
35  //For more info, see http://docs.mercurydpm.org/Trunk/d0/db6/ConstantRestitution.html
36 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
@ INFO

References constantRestitution_, INFO, and logger.

Referenced by BaseSpecies::read().

Member Data Documentation

◆ constantRestitution_

bool BaseNormalForce::constantRestitution_
private

If constantRestitution_ is true, the elastic and dissipative force is multiplied by the harmonic mean mass, making restitution and collision time independent of the particle mass. This is set to false by default.

Referenced by BaseNormalForce(), getConstantRestitution(), and setConstantRestitution().


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