SinterBed0SelfTest.cpp File Reference

Classes

class  InitialConditions< 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 
)
Todo:
TW automatically measure simulation time
219 {
220  const Mdouble radius = readFromFile("in","radius",6e-6);
221  const Mdouble domainRadius = readFromFile("in","domainDiameterOverParticleDiameter",5.0) * radius;
222  const Mdouble domainHeight = readFromFile("in","domainHeightOverParticleDiameter",5.0) * 2.0 * radius;
223  const unsigned dimensions = static_cast<const unsigned int>(readFromFile("in", "dimensions", 2));
224 
225  InitialConditions<SinterFrictionSpecies> ic(radius, domainRadius, domainHeight,dimensions);
226  const unsigned long int random = readFromFile("in","random",0);
227  ic.random.setRandomSeed(random);
228  ic.scaleMass(1e12);
229  //set species properties
230  const Mdouble kMax=readFromFile("in","kMax",20000);
231  const Mdouble kL = readFromFile("in","kL",0.1*kMax);
232  ic.species->setPlasticParameters(kL, kMax, kL, 0.16);
233  const Mdouble mass = ic.species->getSmallestParticleMass();
234  ic.species->setStiffnessAndRestitutionCoefficient(ic.species->getLoadingStiffness(),0.5,mass);
235  ic.species->setSinterType(SINTERTYPE::CONSTANT_RATE);
236  ic.species->setSinterRate(0.0);
237  ic.species->setSinterAdhesion(1200e-9/radius);
238  ic.species->setSlidingDissipation(2./7.*ic.species->getDissipation());
239  ic.species->setSlidingStiffness(2./7.*ic.species->getLoadingStiffness());
240  ic.species->setRollingDissipation(2./7.*ic.species->getDissipation());
241  ic.species->setRollingStiffness(2./7.*ic.species->getLoadingStiffness());
242  ic.species->setTorsionDissipation(2./7.*ic.species->getDissipation());
243  ic.species->setTorsionStiffness(2./7.*ic.species->getLoadingStiffness());
244 
245  ic.setTimeMax(1e20);
246 // ic.interactionHandler.setWriteVTK(FileType::MULTIPLE_FILES);
247 // ic.setParticlesWriteVTK(true);
248 // ic.wallHandler.setWriteVTK(FileType::MULTIPLE_FILES);
249  ic.solve();
250 
251  return 0;
253  //r=3 -> 220 particles
254 }
One particle, sintering slowly to a wall.
Definition: SinterBed0SelfTest.cpp:37
T readFromFile(const std::string fileName, const std::string varName, const T defaultValue)
Definition: FileIOHelpers.h:121

References CONSTANT_RATE, DPMBase::random, helpers::readFromFile(), InitialConditions< SpeciesType >::scaleMass(), RNG::setRandomSeed(), DPMBase::setTimeMax(), DPMBase::solve(), and InitialConditions< SpeciesType >::species.