SingleParticleConstantTemperatureSelfTest.cpp File Reference

Classes

class  SingleParticle< SpeciesType >
 One particle, sintering slowly to a wall. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
172 {
174  sp.scaleMass(1e12);
175  //set species properties
176  Mdouble kMax=20000;
177  sp.species->setPlasticParameters(0.1*kMax, kMax, 0.1*kMax, 0.16);
179  Mdouble mass = sp.species->getSmallestParticleMass();
180  sp.species->setStiffnessAndRestitutionCoefficient(sp.species->getLoadingStiffness(),0.8,mass);
181  //flip between volume and surface sintering
182  if (true)
183  {
184  sp.species->setSinterType(SINTERTYPE::CONSTANT_RATE);
185  sp.species->setSinterRate(std::pow(0.3,2.0));
186  } else {
187  sp.species->setSinterType(SINTERTYPE::PARHAMI_MCKEEPING);
188  sp.species->setSinterRate(std::pow(0.3,6.0));
189  }
190  sp.setTimeMax(1);
191  sp.setSaveCount(10);
192  sp.species->setSinterAdhesion(1200e-9/radius);
193  sp.solve();
194 
195  logger(INFO,"Execute 'gnuplot %.gnu' to view output",sp.getName());
196 }
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:399
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1437
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
Mdouble getSmallestInteractionRadius() const
Returns the smallest interaction radius.
Definition: ParticleHandler.cc:736
One particle, sintering slowly to a wall.
Definition: SingleParticleConstantTemperatureSelfTest.cpp:37
void scaleMass(Mdouble scale)
Definition: SingleParticleConstantTemperatureSelfTest.cpp:159
SpeciesType * species
Definition: SingleParticleConstantTemperatureSelfTest.cpp:168

References CONSTANT_RATE, DPMBase::getName(), ParticleHandler::getSmallestInteractionRadius(), INFO, logger, PARHAMI_MCKEEPING, DPMBase::particleHandler, SingleParticle< SpeciesType >::scaleMass(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::solve(), and SingleParticle< SpeciesType >::species.