MercuryDPM  0.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SpeciesUnitTest.cpp File Reference
#include "Mercury3D.h"
#include "Particles/BaseParticle.h"
#include <iostream>
#include <cmath>
#include <Species/LinearViscoelasticSpecies.h>

Go to the source code of this file.

Classes

class  SpeciesTest
 

Functions

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

Function Documentation

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

Definition at line 126 of file SpeciesUnitTest.cpp.

References Files::setName(), and DPMBase::solve().

127 {
128  std::cout << "Species test problem " << std::endl;
129  std::cout << "---------------------" << std::endl;
130  std::cout << std::endl;
131  std::cout << "This problem set k and gamma for different for different size particles such that the coefficent of restitution is the same" << std::endl;
132  std::cout << "Note for each collision this value should be 0.4" << std::endl;
133  std::cout << "Also this code demostrates how to use different species in the code" << std::endl;
134  SpeciesTest problem;
135  problem.setName("SpeciesUnitTest");
136 
137  problem.solve();
138 }
void solve()
The work horse of the code.
Definition: DPMBase.cc:1895
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: Files.cc:149