19 s.setDensity(3950e18);
20 s.setEffectiveElasticModulus(0);
26 Mdouble atomicVolume = 8.47e-30;
28 Mdouble thicknessDiffusion = 1.3e-8;
29 Mdouble activationEnergy = 475e3 ;
31 Mdouble pseudoSlidingFrictionCoefficient = 0.01;
32 s.set(
alpha,
beta, atomicVolume, surfaceEnergy, thicknessDiffusion, activationEnergy, temperature, pseudoSlidingFrictionCoefficient);
33 ps.speciesHandler.copyAndAddObject(
s);
37 p.setSpecies(
ps.speciesHandler.getObject(0));
39 p.setPosition(
p.getRadius() *
Vec3D(0, 0, 1.0-1
e-6*1
e-3));
40 ps.particleHandler.copyAndAddObject(
p);
43 p.setPosition(
p.getRadius() *
Vec3D(0, 0, -1.0));
44 ps.particleHandler.copyAndAddObject(
p);
48 ps.setXBallsAdditionalArguments(
" -v0 -solidf ");
51 ps.setSaveCount(1000);
53 ps.setMin(50
e-9 *
Vec3D(-1, -1, -2));
55 ps.setName(
"ParhamiMcKeepingParticlePairSelfTest");
60 logger(
INFO,
"Execute 'gnuplot ParhamiMcKeepingParticlePairSelfTest.gnu' to view output");
62 "set xlabel 't [s]'\n"
63 "set ylabel 'delta/d'\n"
64 "p 'ParhamiMcKeepingParticlePairSelfTest.fstat' u 1:($7/1e-7) every 5::3 w lp\n"
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ ONE_FILE
all data will be written into/ read from a single file called name_
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
float * p
Definition: Tutorial_Map_using.cpp:9
This adds on the hierarchical grid code for 3D problems.
Definition: Mercury3D.h:16
Contains material and contact force properties.
Definition: Species.h:14
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:16
Definition: Kernel/Math/Vector.h:30
RealScalar s
Definition: level1_cplx_impl.h:130
int RealScalar int RealScalar int RealScalar RealScalar * ps
Definition: level1_cplx_impl.h:124
RealScalar alpha
Definition: level1_cplx_impl.h:151
Scalar beta
Definition: level2_cplx_impl.h:36
#define INFO(i)
Definition: mumps_solver.h:54
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29