MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)
 
- Public Member Functions inherited from BaseForce
BaseSpeciesgetBaseSpecies () const
 
void setBaseSpecies (BaseSpecies *baseSpecies)
 

Private Attributes

bool constantRestitution_
 

Detailed Description

Definition at line 30 of file BaseNormalForce.h.

Constructor & Destructor Documentation

BaseNormalForce::BaseNormalForce ( )
inline

Definition at line 34 of file BaseNormalForce.h.

References constantRestitution_.

34  {
35  constantRestitution_ = false;
36  }
BaseNormalForce::BaseNormalForce ( const BaseNormalForce p)
inline

Definition at line 38 of file BaseNormalForce.h.

References constantRestitution_.

38  {
40  }

Member Function Documentation

void BaseNormalForce::setConstantRestitution ( bool  constantRestitution)

Sets constantRestitution_.

Definition at line 29 of file BaseNormalForce.cc.

References constantRestitution_, INFO, and logger.

Referenced by BaseSpecies::read().

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< MERCURY_LOGLEVEL > logger("MercuryKernel")

Member Data Documentation

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.

Definition at line 59 of file BaseNormalForce.h.

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


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