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[] 
)
68 {
69  ExtremeOverlapVolumeUnitTest OverlapProblem;
70 
72  species->setDensity(2000);
73  species->setStiffness(1e1);
74  species->setDissipation(0.0);
75  species->setSlidingFrictionCoefficient(1.0);
76  species->setSlidingStiffness(2.0/7.0*species->getStiffness());
77  species->setSlidingDissipation(2.0/7.0*species->getDissipation());
78 
79  OverlapProblem.setName("ExtremeOverlapUnitTest");
80  OverlapProblem.solve(argc,argv);
81 
82  return 0;
83 }
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies > LinearViscoelasticSlidingFrictionSpecies
Definition: LinearViscoelasticSlidingFrictionSpecies.h:12
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:360
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1433
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
This test checks the formula for computing the overlap volume between two spherical particles.
Definition: ExtremeOverlapVolumeUnitTest.cpp:17

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