This code (p3dstatistics.cpp) can be used to create statistics from p3d files. It is a modified version of fstatistics.cpp
16 if (argc>1&&strcmp(argv[1],
"-help") != 0)
17 logger(
INFO,
"Get statistics from %.* files", argv[1]);
21 for (
int i = 2;
i<argc;
i++) {
22 if (!strcmp(argv[
i],
"-stattype")) {
23 if (!strcmp(argv[
i+1],
"XYZ"))
T =
XYZ;
24 else if (!strcmp(argv[
i+1],
"RAZ"))
T =
RAZ;
25 else if (!strcmp(argv[
i+1],
"RA"))
T =
RA;
26 else if (!strcmp(argv[
i+1],
"RZ"))
T =
RZ;
27 else if (!strcmp(argv[
i+1],
"AZ"))
T =
AZ;
28 else if (!strcmp(argv[
i+1],
"R"))
T =
R;
29 else if (!strcmp(argv[
i+1],
"A"))
T =
A;
30 else if (!strcmp(argv[
i+1],
"YZ"))
T =
YZ;
31 else if (!strcmp(argv[
i+1],
"XZ"))
T =
XZ;
32 else if (!strcmp(argv[
i+1],
"XY"))
T =
XY;
33 else if (!strcmp(argv[
i+1],
"X"))
T =
X;
34 else if (!strcmp(argv[
i+1],
"Y"))
T =
Y;
35 else if (!strcmp(argv[
i + 1],
"Z"))
T =
Z;
36 else if (!strcmp(argv[
i + 1],
"O"))
T =
O;
44 logger(
INFO,
"Creating xy-statistics, averaged in z");
46 stats.setDoPeriodicWalls(
false);
47 stats.statistics_from_p3();
49 logger(
INFO,
"Creating xz-statistics, averaged in y");
51 stats.setDoPeriodicWalls(
false);
52 stats.statistics_from_p3();
54 logger(
INFO,
"Creating yz-statistics, averaged in x");
56 stats.setDoPeriodicWalls(
false);
57 stats.statistics_from_p3();
59 logger(
INFO,
"Creating x-statistics, averaged in yz");
61 stats.setDoPeriodicWalls(
false);
62 stats.statistics_from_p3();
64 logger(
INFO,
"Creating y-statistics, averaged in xz");
66 stats.setDoPeriodicWalls(
false);
67 stats.statistics_from_p3();
69 logger(
INFO,
"Creating z-statistics, averaged in xy");
71 stats.setDoPeriodicWalls(
false);
72 stats.statistics_from_p3();
74 logger(
INFO,
"Creating global statistics, averaged in xyz");
76 stats.setDoPeriodicWalls(
false);
77 stats.statistics_from_p3();
105 logger(
INFO,
"Creating non-averaged statistics");
108 stats.statistics_from_p3();
int i
Definition: BiCGSTAB_step_by_step.cpp:9
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
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction)
Definition: StatisticsVector.h:20
@ AZ
Definition: StatisticsVector.h:21
@ XY
Definition: StatisticsVector.h:21
@ XZ
Definition: StatisticsVector.h:21
@ R
Definition: StatisticsVector.h:21
@ RA
Definition: StatisticsVector.h:21
@ YZ
Definition: StatisticsVector.h:21
@ XYZ
Definition: StatisticsVector.h:21
@ RAZ
Definition: StatisticsVector.h:21
@ RZ
Definition: StatisticsVector.h:21
@ O
Definition: StatisticsVector.h:21
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
This class is used to extract statistical data from MD simulations.
Definition: StatisticsVector.h:41
#define X
Definition: icosphere.cpp:20
#define Z
Definition: icosphere.cpp:21
#define INFO(i)
Definition: mumps_solver.h:54
const char Y
Definition: test/EulerAngles.cpp:32