14 logger(
ERROR,
"Please enter the name of the simulation you want to restart and, optionally, the name of the "
15 "simulation after restart");
19 logger(
INFO,
"restart data: %.restart", argv[1]);
31 os <<
"\\documentclass[11pt]{standalone}\n"
32 "\\usepackage{tikz,graphics,multirow,multicol,tabularx, tabu,xcolor}\n"
35 "\\begin{tikzpicture}[\n"
36 "pf/.style ={fill=yellow!50,draw=none},%fill particle\n"
37 "pd/.style ={draw=black} %draw particle\n"
40 os <<
"%draw particles' inside\n";
43 const Vec3D& pos =
p->getPosition()*1e6;
50 os <<
"%draw particles' outside\n";
53 const Vec3D& pos =
p->getPosition()*1e6;
60 os <<
"%draw plastic overlap' outside\n";
64 const Vec3D& cp =
c->getContactPoint()*1e6;
65 const Vec3D&
n =
c->getNormal();
67 const Mdouble& po = 0.5*
c->getPlasticOverlap()*1e6;
68 const Mdouble& o = 0.5*
c->getOverlap()*1e6;
70 logger.assert_always(
p!=
nullptr,
"not particle");
73 const Vec3D a0 = cp+
x*
t+(o-po)*
n, a1 = cp+
x*
t+0.5*
r*
n, a2 = cp-
x*
t+0.5*
r*
n, a3 = cp-
x*
t+(o-po)*
n;
81 const Vec3D b0 = cp+
x*
t-(o-po)*
n, b1 = cp+
x*
t-0.5*
r*
n, b2 = cp-
x*
t-0.5*
r*
n, b3 = cp-
x*
t-(o-po)*
n;
90 os <<
"\\end{tikzpicture}\n"
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
@ NO_FILE
file will not be created/read
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:32
float * p
Definition: Tutorial_Map_using.cpp:9
Definition: BaseParticle.h:33
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
Mdouble getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1241
void setRestarted(bool newRestartedFlag)
Allows to set the flag stating if the simulation is to be restarted or not.
Definition: DPMBase.cc:1492
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1499
InteractionHandler interactionHandler
An object of the class InteractionHandler.
Definition: DPMBase.h:1473
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
bool readRestartFile(ReadOptions opt=ReadOptions::ReadAll)
Reads all the particle data corresponding to a given, existing . restart file (for more details regar...
Definition: DPMBase.cc:3043
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:193
This adds on the hierarchical grid code for 3D problems.
Definition: Mercury3D.h:16
Computes normal forces in case of a linear plastic visco-elastic interaction.
Definition: SinterInteraction.h:19
Definition: Kernel/Math/Vector.h:30
Mdouble Z
Definition: Kernel/Math/Vector.h:45
Mdouble X
the vector components
Definition: Kernel/Math/Vector.h:45
#define INFO(i)
Definition: mumps_solver.h:54
int c
Definition: calibrate.py:100
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
std::string to_string(T object, unsigned float_precision=8)
Definition: oomph_utilities.h:189
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36