2024-08-18 11:21:27 +00:00
|
|
|
#include <iostream>
|
2024-08-16 17:55:27 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <random>
|
|
|
|
|
|
|
|
#include "io.h"
|
|
|
|
#include "sims.h"
|
2024-09-16 17:52:51 +00:00
|
|
|
#include "motions/bimodalangle.h"
|
2024-08-23 16:33:38 +00:00
|
|
|
#include "motions/isosmallangle.h"
|
2024-08-16 17:55:27 +00:00
|
|
|
#include "motions/random.h"
|
2024-08-20 15:51:49 +00:00
|
|
|
#include "motions/tetrahedral.h"
|
2024-08-16 17:55:27 +00:00
|
|
|
#include "times/delta.h"
|
2024-09-16 17:52:51 +00:00
|
|
|
#include "times/lognormal.h"
|
2024-08-16 17:55:27 +00:00
|
|
|
|
|
|
|
|
2024-08-20 15:51:49 +00:00
|
|
|
int main (const int argc, char *argv[]) {
|
|
|
|
Arguments args;
|
|
|
|
try {
|
|
|
|
args = parse_args(argc, argv);
|
|
|
|
} catch (std::runtime_error& error) {
|
|
|
|
std::cerr << error.what() << std::endl;
|
2024-08-18 11:21:27 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-09-16 17:52:51 +00:00
|
|
|
|
2024-08-20 15:51:49 +00:00
|
|
|
std::unordered_map parameter { read_parameter(args.parameter_file) };
|
2024-08-16 17:55:27 +00:00
|
|
|
|
|
|
|
std::random_device rd;
|
|
|
|
std::mt19937_64 rng(rd());
|
|
|
|
|
2024-09-16 17:52:51 +00:00
|
|
|
// auto motion = BimodalAngle(1, 1, 2, 30, 0.98, rng);
|
|
|
|
// auto motion = TetrahedralJump(rng);
|
2024-08-23 16:33:38 +00:00
|
|
|
// auto motion = RandomJump(rng);
|
2024-11-04 17:09:25 +00:00
|
|
|
auto motion = SmallAngle(1, 1, 20, rng);
|
2024-09-16 17:52:51 +00:00
|
|
|
|
2024-11-04 17:09:25 +00:00
|
|
|
auto dist = DeltaDistribution(rng);
|
|
|
|
// auto dist = LogNormalDistribution(1, 2, rng);
|
2024-09-16 17:52:51 +00:00
|
|
|
|
2024-08-16 17:55:27 +00:00
|
|
|
|
2024-08-20 15:51:49 +00:00
|
|
|
if (args.spectrum) {
|
|
|
|
run_spectrum(parameter, motion, dist);
|
|
|
|
}
|
|
|
|
if (args.ste) {
|
|
|
|
run_ste(parameter, motion, dist);
|
|
|
|
}
|
2024-08-16 17:55:27 +00:00
|
|
|
}
|