BinaryDensities.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSlidingFrictionSpecies.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 
)
187 {
188 
189 
190  //Set problem up
191  my_problem problem;
192  problem.setName("leidenfrost");
193  problem.setTimeMax(21);
194 
195 
196  //Set Container Geometry
197  problem.setXMax(100.0/1000);
198  problem.setYMax(100.0/1000);
199  problem.setZMax(200.0/1000);
200 
201 
202  //Set Partilce and Wall properties
203  //
204  //214 5mm glass particles
205  problem.set_NumberOfParticles(1000);
206  problem.set_ParticleRadius(2.5/1000);
207  problem.set_ParticleDensity(2500,3000);
208  double tc=1e-5;
209  problem.set_CollisionTime(tc);
210  problem.set_WallCOR(.6);
211  problem.set_WallFriction(4.0);
212  problem.set_ParticleCOR(0.91);
213 
214 
215  //Shaker prop
216 //This is fake lowering the frequence and raising amplitude by a factor of 5.
217 
218  problem.set_Frequency(70);
219  problem.set_Amplitude(0.862/1000);
220  //problem.set_Amplitude(2.5/1000);
221 
222 
223  //Now run the code and solve - time is set here because I am using the autodetect
224  problem.autoNumber();
225  problem.setTimeStep(tc/50);
226  problem.setSaveCount(1000*21);
227 
228  problem.solve();
229 }
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
void autoNumber()
The autoNumber() function calls three functions: setRunNumber(), readRunNumberFromFile() and incremen...
Definition: DPMBase.cc:539
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
void set_WallCOR(double cor)
Definition: BinaryDensities.cpp:136
void set_Amplitude(double a)
Definition: BinaryDensities.cpp:150
void set_ParticleCOR(double cor)
Definition: BinaryDensities.cpp:140
void set_ParticleDensity(double density1, double density2)
Definition: BinaryDensities.cpp:142
void set_CollisionTime(double tc_in)
Definition: BinaryDensities.cpp:144
void set_WallFriction(double mu)
Definition: BinaryDensities.cpp:138
void set_NumberOfParticles(int np)
Definition: BinaryDensities.cpp:146
void set_Frequency(double f)
Definition: BinaryDensities.cpp:148
void set_ParticleRadius(double pr)
Definition: BinaryDensities.cpp:134

References DPMBase::autoNumber(), my_problem::set_Amplitude(), my_problem::set_CollisionTime(), my_problem::set_Frequency(), my_problem::set_NumberOfParticles(), my_problem::set_ParticleCOR(), my_problem::set_ParticleDensity(), my_problem::set_ParticleRadius(), my_problem::set_WallCOR(), my_problem::set_WallFriction(), DPMBase::setName(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::setXMax(), DPMBase::setYMax(), DPMBase::setZMax(), and DPMBase::solve().