Go to file
2024-11-04 19:39:53 +01:00
motions use struct for coordinates 2024-09-16 19:52:51 +02: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 add shell script 2024-11-04 18:09:25 +01:00
CMakeLists.txt add shell script 2024-11-04 18:09:25 +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 fixed problem in spherical_to_xyz 2024-08-20 17:51:49 +02:00
io.h fixed problem in spherical_to_xyz 2024-08-20 17:51:49 +02:00
json.hpp first commit 2024-08-16 19:55:27 +02:00
LICENSE add README.md 2024-11-04 19:39:53 +01:00
main.cpp add README.md 2024-11-04 19:39:53 +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 use struct for coordinates 2024-09-16 19:52:51 +02:00
sims.h use struct for coordinates 2024-09-16 19:52:51 +02:00
test.py add README.md 2024-11-04 19:39:53 +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