161 void write(std::ostream& os)
const override;
166 void read(std::istream& is)
override;
double Mdouble
Definition: GeneralDefine.h:34
Definition: BaseAdhesiveForce.h:31
Definition: BaseFrictionForce.h:31
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseNormalForce.h:32
It is an abstract base class due to the purely virtual functions declared below. Even if the function...
Definition: BaseObject.h:51
BaseSpecies is the class from which all other species are derived.
Definition: BaseSpecies.h:50
BaseAdhesiveForce * adhesiveForce_
A pointer to the adhesive force parameters \detail This pointer is used by the Interaction's to get a...
Definition: BaseSpecies.h:187
Mdouble getInteractionDistance() const
returns the largest separation distance at which adhesive short-range forces can occur.
Definition: BaseSpecies.h:146
BaseSpecies()
The default constructor.
Definition: BaseSpecies.cc:38
virtual void mixAll(BaseSpecies *S, BaseSpecies *T)=0
creates default values for mixed species
virtual BaseSpecies * copy() const =0
Creates a deep copy of the object from which it is called.
virtual void copyInto(BaseSpecies *s) const =0
void read(std::istream &is) override
Definition: BaseSpecies.cc:140
SpeciesHandler * handler_
A pointer to the handler to which this species belongs. It is initialized to nullptr and gets set whe...
Definition: BaseSpecies.h:195
virtual BaseInteraction * getEmptyInteraction() const =0
BaseFrictionForce * getFrictionForce() const
Definition: BaseSpecies.h:150
virtual void deleteEmptyInteraction(BaseInteraction *interaction) const =0
~BaseSpecies()
The default destructor.
Definition: BaseSpecies.cc:64
BaseNormalForce * getNormalForce() const
Definition: BaseSpecies.h:148
BaseFrictionForce * frictionForce_
A pointer to the friction force parameters \detail This pointer is used by the Interaction's to get a...
Definition: BaseSpecies.h:180
static Mdouble average(Mdouble a, Mdouble b)
Returns the harmonic mean of two variables.
Definition: BaseSpecies.cc:110
Mdouble interactionDistance_
Definition: BaseSpecies.h:201
BaseNormalForce * normalForce_
A pointer to the normal force parameters \detail This pointer is used by the Interaction's to get a p...
Definition: BaseSpecies.h:173
SpeciesHandler * getHandler() const
Returns the pointer to the handler to which this species belongs.
Definition: BaseSpecies.cc:99
virtual bool getUseAngularDOFs() const =0
Returns true if torques (i.e. angular degrees of freedom) have to be calculated.
virtual BaseInteraction * getNewInteraction(BaseInteractable *P, BaseInteractable *I, unsigned timeStamp) const =0
returns new Interaction object.
BaseAdhesiveForce * getAdhesiveForce() const
Definition: BaseSpecies.h:152
void write(std::ostream &os) const override
Sets the boolean constantRestitution_.
Definition: BaseSpecies.cc:131
static Mdouble averageInf(Mdouble a, Mdouble b)
Returns the harmonic mean of two variables, returning inf if either is inf.
Definition: BaseSpecies.cc:120
void setInteractionDistance(Mdouble interactionDistance)
Definition: BaseSpecies.cc:156
void setHandler(SpeciesHandler *handler)
Sets the pointer to the handler to which this species belongs.
Definition: BaseSpecies.cc:91
Container to store all ParticleSpecies.
Definition: SpeciesHandler.h:37
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73