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;
90 std::cout <<
"averaging in y-direction" << std::endl;
98 std::cout <<
"averaging in x-direction" << std::endl;
105 std::cout <<
"averaging in yz-direction" << std::endl;
112 std::cout <<
"averaging in xz-direction" << std::endl;
119 std::cout <<
"averaging in xy-direction" << std::endl;
126 std::cout <<
"averaging in xyz-direction" << std::endl;
133 std::cout <<
"cylindrical, no averaging" << std::endl;
139 std::cout <<
"cylindrical, Z averaging" << std::endl;
145 std::cout <<
"cylindrical, A averaging" << std::endl;
151 std::cout <<
"cylindrical, R averaging" << std::endl;
157 std::cout <<
"cylindrical, RZ averaging" << std::endl;
163 std::cout <<
"cylindrical, AZ averaging" << std::endl;
169 std::cout <<
"no averaging" << std::endl;
StatType
Creates averaged statistics (only valid if density field is homogenous along averaged direction) ...
void setDoPeriodicWalls(bool new_)
void statistics_from_fstat_and_data()
get StatisticsPoint
This class is used to extract statistical data from MD simulations.
void Statistics(unsigned int argc, char *argv[])
this is the function the user should call