solid_walls.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSpecies.h>
#include "DPMBase.h"
#include "Mercury3D.h"
#include "Walls/InfiniteWall.h"

Classes

class  my_problem
 todo{This code is not working as is wanted} More...
 

Functions

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

Function Documentation

◆ main()

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

Start off by solving the default problem

115 {
117  my_problem problem;
118  // problem.set_N(2500);
119  problem.setName("leidenfrost");
121  species->setDissipation(0.01);
122  species->setStiffness(1e3);
123  //species->setCollisionTimeAndRestitutionCoefficient(5e-2,0.98)
124  problem.setTimeStep(1e-3);
125  problem.setSaveCount(50);
126  species->setDensity(1);
127  problem.setTimeMax(200);
128  problem.setXMax(50);
129  problem.setYMax(5);
130  problem.setZMax(100);
131  problem.solve();
132 }
Species< LinearViscoelasticNormalSpecies > LinearViscoelasticSpecies
Definition: LinearViscoelasticSpecies.h:33
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
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
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 setYMax(Mdouble newYMax)
Sets the value of YMax, the upper bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1191
void setXMax(Mdouble newXMax)
Sets the value of XMax, the upper bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1165
void setZMax(Mdouble newZMax)
Sets the value of ZMax, the upper bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1217
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
todo{This code is not working as is wanted}
Definition: elastic_gas.cpp:34

References BaseHandler< T >::copyAndAddObject(), DPMBase::setName(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::setXMax(), DPMBase::setYMax(), DPMBase::setZMax(), DPMBase::solve(), and DPMBase::speciesHandler.