98 fiveParticles.
setName(
"FiveParticles");
102 fiveParticles.
setSaveCount(std::numeric_limits<unsigned >::max());
104 fiveParticles.
solve(argc,argv);
106 logger(
INFO,
"Execute 'source FiveParticles.sh' to get coarse-grained statistics of the last time step");
107 helpers::writeToFile(
"FiveParticles.sh",
"../MercuryCG/fstatistics FiveParticles -stattype XZ -w 0.1 -h 0.05 -tmin 1 -tmax 30");
109 logger(
INFO,
"Run 'FiveParticles.m' in MATLAB/octave to visualise the statistical output");
111 "data = loadstatistics('FiveParticles.stat');\n"
113 "contourf(data.x,data.z,data.Density,20,'EdgeColor','none')\n"
115 "c.Label.String = '\\rho';\n"
121 "particles=importdata('FiveParticles.data',' ',12);\n"
122 "x=particles.data(:,1);\n"
123 "z=particles.data(:,3);\n"
124 "r=particles.data(:,7);\n"
125 "a=linspace(0,2*pi,40);\n"
126 "xCircle = sin(a);\n"
127 "zCircle = cos(a);\n"
129 "for i=1:length(x)\n"
130 " plot(x(i)+r(i)*xCircle,z(i)+r(i)*zCircle,'Color',.8*[1 1 1])\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 setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
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 setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
[FP:headers]
Definition: FiveParticles.cpp:35
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58