77 fiveParticles.
setName(
"FiveParticles");
83 fiveParticles.
solve(argc,argv);
85 logger(
INFO,
"Execute 'source FiveParticles.sh' to get coarse-grained statistics of the last time step");
86 helpers::writeToFile(
"FiveParticles.sh",
"../MercuryCG/fstatistics FiveParticles -stattype XZ -w 0.1 -h 0.05 -tmin 1 -tmax 30");
88 logger(
INFO,
"Run 'FiveParticles.m' in MATLAB/octave to visualise the statistical output");
90 "data = loadstatistics('FiveParticles.stat');\n"
92 "contourf(data.x,data.z,data.Density,20,'EdgeColor','none')\n"
94 "c.Label.String = '\\rho';\n"
100 "particles=importdata('FiveParticles.data',' ',12);\n"
101 "x=particles.data(:,1);\n"
102 "z=particles.data(:,3);\n"
103 "r=particles.data(:,7);\n"
104 "a=linspace(0,2*pi,40);\n"
105 "xCircle = sin(a);\n"
106 "zCircle = cos(a);\n"
108 "for i=1:length(x)\n"
109 " plot(x(i)+r(i)*xCircle,z(i)+r(i)*zCircle,'Color',.8*[1 1 1])\n"
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
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
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
[FP:headers]
Definition: FiveParticles.cpp:14
#define max(a, b)
Definition: datatypes.h:23
#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