37 if (argc > 1 && strcmp(argv[1],
"-help"))
38 std::cout << std::endl <<
"Get statistics for " << argv[1] << std::endl;
42 for (
unsigned int i = 2; i < argc; i++)
44 if (!strcmp(argv[i],
"-stattype"))
46 if (!strcmp(argv[i + 1],
"XYZ"))
48 else if (!strcmp(argv[i + 1],
"RAZ"))
50 else if (!strcmp(argv[i + 1],
"RA"))
52 else if (!strcmp(argv[i + 1],
"RZ"))
54 else if (!strcmp(argv[i + 1],
"AZ"))
56 else if (!strcmp(argv[i + 1],
"R"))
58 else if (!strcmp(argv[i + 1],
"A"))
60 else if (!strcmp(argv[i + 1],
"XY"))
62 else if (!strcmp(argv[i + 1],
"XZ"))
64 else if (!strcmp(argv[i + 1],
"YZ"))
66 else if (!strcmp(argv[i + 1],
"X"))
68 else if (!strcmp(argv[i + 1],
"Y"))
70 else if (!strcmp(argv[i + 1],
"Z"))
72 else if (!strcmp(argv[i + 1],
"O"))
76 std::cerr <<
"stattype unknown" << std::endl;
83 std::cout <<
"averaging in z-direction" << std::endl;
85 stats.setDoPeriodicWalls(
false);
86 stats.statistics_from_fstat_and_data();
90 std::cout <<
"averaging in y-direction" << std::endl;
92 stats.setDoPeriodicWalls(
false);
93 stats.statistics_from_fstat_and_data();
97 std::cout <<
"averaging in y-direction" << std::endl;
99 stats.setDoPeriodicWalls(
false);
100 stats.statistics_from_fstat_and_data();
104 std::cout <<
"averaging in x-direction" << std::endl;
106 stats.setDoPeriodicWalls(
false);
107 stats.statistics_from_fstat_and_data();
111 std::cout <<
"averaging in yz-direction" << std::endl;
113 stats.setDoPeriodicWalls(
false);
114 stats.statistics_from_fstat_and_data();
118 std::cout <<
"averaging in xz-direction" << std::endl;
120 stats.setDoPeriodicWalls(
false);
121 stats.statistics_from_fstat_and_data();
125 std::cout <<
"averaging in xy-direction" << std::endl;
127 stats.setDoPeriodicWalls(
false);
128 stats.statistics_from_fstat_and_data();
132 std::cout <<
"averaging in xyz-direction" << std::endl;
134 stats.setDoPeriodicWalls(
false);
135 stats.statistics_from_fstat_and_data();
139 std::cout <<
"cylindrical, no averaging" << std::endl;
141 stats.statistics_from_fstat_and_data();
145 std::cout <<
"cylindrical, Z averaging" << std::endl;
147 stats.statistics_from_fstat_and_data();
151 std::cout <<
"cylindrical, A averaging" << std::endl;
153 stats.statistics_from_fstat_and_data();
157 std::cout <<
"cylindrical, R averaging" << std::endl;
159 stats.statistics_from_fstat_and_data();
163 std::cout <<
"cylindrical, RZ averaging" << std::endl;
165 stats.statistics_from_fstat_and_data();
169 std::cout <<
"cylindrical, AZ averaging" << std::endl;
171 stats.statistics_from_fstat_and_data();
175 std::cout <<
"no averaging" << std::endl;
177 stats.statistics_from_fstat_and_data();
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction) ...
This class is used to extract statistical data from MD simulations.