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")||!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;
93 stats.setDoPeriodicWalls(
false);
94 stats.statistics_from_fstat_and_data();
98 std::cout <<
"averaging in x-direction" << std::endl;
100 stats.setDoPeriodicWalls(
false);
101 stats.statistics_from_fstat_and_data();
105 std::cout <<
"averaging in yz-direction" << std::endl;
107 stats.setDoPeriodicWalls(
false);
108 stats.statistics_from_fstat_and_data();
112 std::cout <<
"averaging in xz-direction" << std::endl;
114 stats.setDoPeriodicWalls(
false);
115 stats.statistics_from_fstat_and_data();
119 std::cout <<
"averaging in xy-direction" << std::endl;
121 stats.setDoPeriodicWalls(
false);
122 stats.statistics_from_fstat_and_data();
126 std::cout <<
"averaging in xyz-direction" << std::endl;
128 stats.setDoPeriodicWalls(
false);
129 stats.statistics_from_fstat_and_data();
133 std::cout <<
"cylindrical, no averaging" << std::endl;
135 stats.statistics_from_fstat_and_data();
139 std::cout <<
"cylindrical, Z averaging" << std::endl;
141 stats.statistics_from_fstat_and_data();
145 std::cout <<
"cylindrical, A averaging" << std::endl;
147 stats.statistics_from_fstat_and_data();
151 std::cout <<
"cylindrical, R averaging" << std::endl;
153 stats.statistics_from_fstat_and_data();
157 std::cout <<
"cylindrical, RZ averaging" << std::endl;
159 stats.statistics_from_fstat_and_data();
163 std::cout <<
"cylindrical, AZ averaging" << std::endl;
165 stats.statistics_from_fstat_and_data();
169 std::cout <<
"no averaging" << std::endl;
171 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.