120 sf.
species->setPlasticParameters(k1, 10.0*k1, k1, 1.0);
125 logger(
INFO,
"Testing particle particles collision for elastic plastic forces. \n"
126 "This will be done for several values of scaled relative velocity chi");
131 const std::vector<double> chi = {0.34, 0.69, 1.1, 1.37};
132 const std::vector<Vec3D> leftFinalVecloity = {
133 Vec3D(-0.032721738352012,0.0,0.0),
134 Vec3D(-0.0138683231953154,0.0,0.0),
135 Vec3D(-0.0204655358555405,0.0,0.0),
136 Vec3D(-0.163049415300304,0.0,0.0)};
137 const std::vector<Vec3D> leftFinalPosition = {
138 Vec3D(0.995546292935715,1.0,1.0),
139 Vec3D(1.00695193269955,1.0,1.0),
140 Vec3D(1.00840467123501,1.0,1.0),
141 Vec3D(0.969386085767181,1.0,1.0)};
144 for (
int i=0;
i<4;
i++)
148 std::stringstream ss(
"");
149 ss <<
"HertzianSinterForceUnitTest" << sf.
get_chi();
164 lsf.
species->setPlasticParameters(k1, 10.0*k1, k1, 1.0);
165 lsf.
species->setSinterRate(1e-3);
166 lsf.
species->setDissipation(2e-1);
171 lsf.
setName(
"LongHertzianSinterForceUnitTest");
179 logger(
INFO,
"Execute 'gnuplot HertzianSinterForceUnitTest.gnu' to view "
182 "set xlabel 'displacement'\n"
183 "set ylabel 'force'\n"
184 "plot 'HertzianSinterForceUnitTest1.1.fstat' u 7:9, 4./3.*100*x**1.5, 4./3.*1000*(x-0.1)**1.5-4./3.*100*x**1.5, -4./3.*100*x**1.5/(x<0.1)\n"
187 logger(
INFO,
"Execute 'gnuplot LongHertzianSinterForceUnitTest.gnu' to view "
190 "set xlabel 'time'\n"
191 "set ylabel 'displacement'\n"
193 "plot 'LongHertzianSinterForceUnitTest.fstat' u 1:7, sqrt(0.001*(x+120))\n"
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 setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setParticleDimensions(unsigned int particleDimensions)
Sets the particle dimensionality.
Definition: DPMBase.cc:1448
virtual void writeRestartFile()
Stores all the particle data for current save time step to a "restart" file, which is a file simply i...
Definition: DPMBase.cc:2942
void setSystemDimensions(unsigned int newDim)
Sets the system dimensionality.
Definition: DPMBase.cc:1417
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
This code tests our plastic force model, as published in Luding 2008.
Definition: HertzianSinterForceUnitTest.cpp:33
HertzianSinterSpecies * species
Definition: HertzianSinterForceUnitTest.cpp:89
double get_chi()
Definition: HertzianSinterForceUnitTest.cpp:86
void set_chi(double new_)
Definition: HertzianSinterForceUnitTest.cpp:85
Definition: HertzianSinterForceUnitTest.cpp:93
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58