cpp/sims.h

44 lines
1.2 KiB
C
Raw Normal View History

2024-08-16 17:55:27 +00:00
//
// Created by dominik on 8/14/24.
//
#ifndef RWSIM_SIMS_H
#define RWSIM_SIMS_H
#include <unordered_map>
#include <string>
#include "motions/base.h"
#include "times/base.h"
/**
* @brief Run simulation for spectra
*
* @param parameter Dictionary of parameter for simulation
* @param motion Motion model
* @param dist Distribution of correlation times
*/
2024-08-16 17:55:27 +00:00
void run_spectrum(std::unordered_map<std::string, double>& parameter, Motion& motion, Distribution& dist);
/**
* @brief Run simulation for stimulated echoes
*
* @param parameter Dictionary of parameter for simulation
* @param motion Motion model
* @param dist Distribution of correlation times
*/
2024-08-20 15:51:49 +00:00
void run_ste(std::unordered_map<std::string, double>& parameter, Motion& motion, Distribution& dist);
/**
* @brief Create trajectory of a single walker
*
* @param motion Motion model
* @param dist Distribution of correlation times
* @param t_max Double that defines maximum time of trajectory
* @param out_time Vector of waiting times
* @param out_phase Vector of phase between waiting times
*/
void make_trajectory(Motion& motion, Distribution& dist, double t_max, std::vector<double>& out_time, std::vector<double>& out_phase);
2024-08-16 17:55:27 +00:00
#endif //RWSIM_SIMS_H