EmptyFrictionSpecies Class Reference

EmptyFrictionSpecies is used to create a force law without frictional forces. More...

#include <EmptyFrictionSpecies.h>

+ Inheritance diagram for EmptyFrictionSpecies:

Public Types

typedef EmptyFrictionInteraction InteractionType
 The correct Interaction type for this FrictionForceSpecies. More...
 

Public Member Functions

 EmptyFrictionSpecies ()
 The default constructor. More...
 
 EmptyFrictionSpecies (const EmptyFrictionSpecies &s UNUSED)
 The default copy constructor. More...
 
 ~EmptyFrictionSpecies ()
 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...
 
bool getUseAngularDOFs () const override
 Returns true if torques have to be calculated. More...
 
void mix (EmptyFrictionSpecies *S, EmptyFrictionSpecies *T)
 creates default values for mixed species More...
 
- Public Member Functions inherited from BaseForce
BaseSpeciesgetBaseSpecies () const
 
void setBaseSpecies (BaseSpecies *baseSpecies)
 

Detailed Description

EmptyFrictionSpecies is used to create a force law without frictional forces.

Member Typedef Documentation

◆ InteractionType

The correct Interaction type for this FrictionForceSpecies.

Constructor & Destructor Documentation

◆ EmptyFrictionSpecies() [1/2]

EmptyFrictionSpecies::EmptyFrictionSpecies ( )

The default constructor.

8 {
9 #ifdef DEBUG_CONSTRUCTOR
10  std::cout<<"EmptySpecies::EmptySpecies() finished"<<std::endl;
11 #endif
12 }

◆ EmptyFrictionSpecies() [2/2]

EmptyFrictionSpecies::EmptyFrictionSpecies ( const EmptyFrictionSpecies &s  UNUSED)

The default copy constructor.

Parameters
[in]thespecies that is copied
18 {
19 #ifdef DEBUG_CONSTRUCTOR
20  std::cout<<"EmptySpecies::EmptySpecies(const EmptySpecies &p) finished"<<std::endl;
21 #endif
22 }

◆ ~EmptyFrictionSpecies()

EmptyFrictionSpecies::~EmptyFrictionSpecies ( )

The default destructor.

25 {
26 #ifdef DEBUG_DESTRUCTOR
27  std::cout<<"EmptySpecies::~EmptySpecies() finished"<<std::endl;
28 #endif
29 }

Member Function Documentation

◆ getBaseName()

std::string EmptyFrictionSpecies::getBaseName ( ) const

Used in Species::getName to obtain a unique name for each Species.

Returns
a string containing the name of the species (minus the word "Species")
49 {
50  return "";
51 }

◆ getUseAngularDOFs()

bool EmptyFrictionSpecies::getUseAngularDOFs ( ) const
overridevirtual

Returns true if torques have to be calculated.

Returns true for any FrictionForceSpecies except EmptyFrictionSpecies, because for spherical particles, torques are only caused by tangential forces. See SpeciesHandler::useAngularDOFs for more details

Returns
false

Implements BaseFrictionForce.

Reimplemented in Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >, Species< LinearViscoelasticNormalSpecies >, and MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >.

67 {
68  return false;
69 }

◆ mix()

void EmptyFrictionSpecies::mix ( EmptyFrictionSpecies * S  UNUSED,
EmptyFrictionSpecies * T  UNUSED 
)

creates default values for mixed species

Parameters
[in]S,Tthe two species whose properties are mixed to create the new species
57 {
58 }

◆ read()

void EmptyFrictionSpecies::read ( std::istream &  is)

Reads the species properties from an input stream.

Parameters
[in]inputstream (typically the restart file)
42 {
43 }

◆ write()

void EmptyFrictionSpecies::write ( std::ostream &  os) const

Writes the species properties to an output stream.

Parameters
[out]outputstream (typically the restart file)
35 {
36 }

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