Go to file
2024-11-10 15:52:54 +01:00
motions set motion parameters together via map 2024-11-10 15:52:54 +01:00
times use struct for coordinates 2024-09-16 19:52:51 +02:00
.gitignore first commit 2024-08-16 19:55:27 +02:00
build.sh set motion parameters together via map 2024-11-10 15:52:54 +01:00
CITATION.cff set motion parameters together via map 2024-11-10 15:52:54 +01:00
CMakeLists.txt set motion parameters together via map 2024-11-10 15:52:54 +01:00
config.txt add README.md 2024-11-04 19:39:53 +01:00
functions.cpp use struct for coordinates 2024-08-23 18:33:38 +02:00
functions.h use struct for coordinates 2024-08-23 18:33:38 +02:00
io.cpp set motion parameters together via map 2024-11-10 15:52:54 +01:00
io.h set motion parameters together via map 2024-11-10 15:52:54 +01:00
LICENSE add README.md 2024-11-04 19:39:53 +01:00
main.cpp set motion parameters together via map 2024-11-10 15:52:54 +01:00
ranges.cpp remove tau loop 2024-08-18 13:21:27 +02:00
ranges.h first commit 2024-08-16 19:55:27 +02:00
README.md add README.md 2024-11-04 19:39:53 +01:00
sims.cpp set motion parameters together via map 2024-11-10 15:52:54 +01:00
sims.h create Motion classes on runtime instead of compile 2024-11-09 17:59:37 +01:00
test.py set motion parameters together via map 2024-11-10 15:52:54 +01:00

Download

  1. Clone repository with git clone https://gitea.pkm.physik.tu-darmstadt.de/NMRRWSims/cpp.git
  2. After download, change permissions of build.sh in terminal with chmod a+x build.sh

Setup the simulation

The workflows leaves yet much to be desired, it will become better (maybe)

Changes in test.py

  1. To run spectra, add -spectrum in line 14
  2. To run STE, add -ste in line 14
  3. Change values for tau, line broadening and pulse length in lines 88-90 (to simulate one tau value, set length of array to 1)
  4. Comment / Uncomment post_process_ste or post_process_spectrum.

Change of models

  1. In main.cpp, uncomment the motional model and distribution of correlation times you want to use, comment every other model

Setting more parameters in config.txt

  1. Change the values of delta, eta, mixing times, echo times,... in this file. If a paramter is defined multiple times, only the last one is used.

Running

Because filenames are always the same, previous simulations and results are overwritten!

  1. Execute build.sh (in terminal with ./build.sh). It compiles the source code and executes test.py