ExtremeOverlapVolumeUnitTest.cpp File Reference
#include "DPMBase.h"
#include "Walls/InfiniteWall.h"
#include <iostream>
#include <Species/LinearViscoelasticSlidingFrictionSpecies.h>
#include <Logger.h>

Classes

class  ExtremeOverlapVolumeUnitTest
 This test checks the formula for computing the overlap volume between two spherical particles. More...
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
88 {
89  ExtremeOverlapVolumeUnitTest OverlapProblem;
90 
92  species->setDensity(2000);
93  species->setStiffness(1e1);
94  species->setDissipation(0.0);
95  species->setSlidingFrictionCoefficient(1.0);
96  species->setSlidingStiffness(2.0/7.0*species->getStiffness());
97  species->setSlidingDissipation(2.0/7.0*species->getDissipation());
98 
99  OverlapProblem.setName("ExtremeOverlapUnitTest");
100  OverlapProblem.solve(argc,argv);
101 
102  return 0;
103 }
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies > LinearViscoelasticSlidingFrictionSpecies
Definition: LinearViscoelasticSlidingFrictionSpecies.h:34
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:379
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1427
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
This test checks the formula for computing the overlap volume between two spherical particles.
Definition: ExtremeOverlapVolumeUnitTest.cpp:37

References BaseHandler< T >::copyAndAddObject(), DPMBase::setName(), DPMBase::solve(), and DPMBase::speciesHandler.