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 
)
151 {
153  sp.scaleMass(1e12);
154  //set species properties
155  Mdouble kMax=20000;
156  sp.species->setPlasticParameters(0.1*kMax, kMax, 0.1*kMax, 0.16);
158  Mdouble mass = sp.species->getSmallestParticleMass();
159  sp.species->setStiffnessAndRestitutionCoefficient(sp.species->getLoadingStiffness(),0.8,mass);
160  //flip between volume and surface sintering
161  if (true)
162  {
163  sp.species->setSinterType(SINTERTYPE::CONSTANT_RATE);
164  sp.species->setSinterRate(std::pow(0.3,2.0));
165  } else {
166  sp.species->setSinterType(SINTERTYPE::PARHAMI_MCKEEPING);
167  sp.species->setSinterRate(std::pow(0.3,6.0));
168  }
169  sp.setTimeMax(1);
170  sp.setSaveCount(10);
171  sp.species->setSinterAdhesion(1200e-9/radius);
172  sp.solve();
173 
174  logger(INFO,"Execute 'gnuplot %.gnu' to view output",sp.getName());
175 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
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:386
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:377
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1443
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Mdouble getSmallestInteractionRadius() const
Returns the smallest interaction radius.
Definition: ParticleHandler.cc:730
One particle, sintering slowly to a wall.
Definition: SingleParticleConstantTemperatureSelfTest.cpp:16
void scaleMass(Mdouble scale)
Definition: SingleParticleConstantTemperatureSelfTest.cpp:138
SpeciesType * species
Definition: SingleParticleConstantTemperatureSelfTest.cpp:147
#define INFO(i)
Definition: mumps_solver.h:54
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 pow(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:625
radius
Definition: UniformPSDSelfTest.py:15

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