#include "DPMBase.h"
#include "Particles/BaseParticle.h"
#include "Walls/InfiniteWall.h"
#include "Species/LinearViscoelasticSpecies.h"
#include <cmath>
#include <iostream>
#include <iomanip>
Go to the source code of this file.
|
class | WallSpecies |
| this tests if moving the wall works with CWall::move(Vec3D velocity,Vec3D dt). More...
|
|
int main |
( |
int argc |
UNUSED, |
|
|
char *argv[] |
UNUSED |
|
) |
| |
Definition at line 99 of file wallSpecies_demo.cpp.
References BaseHandler< T >::getObject(), BaseInteractable::getVelocity(), DPMBase::particleHandler, Files::setName(), DPMBase::solve(), Vec3D::X, and Vec3D::Z.
101 std::cout << std::endl <<
"Simulation of one particle, d=0.1, interacting with walls with different coefficeient of resitution" << std::endl;
102 std::cout << std::endl <<
"The purpose of the test is to check walls species information is correctly picked up" << std::endl;
104 problem.
setName(
"wallSpecies");
void solve()
The work horse of the code.
Mdouble X
the vector components
this tests if moving the wall works with CWall::move(Vec3D velocity,Vec3D dt).
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created...
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
virtual const Vec3D & getVelocity() const
Returns the velocity of this interactable.