motions | ||
simulation | ||
times | ||
utils | ||
.gitignore | ||
build.sh | ||
CITATION.cff | ||
CMakeLists.txt | ||
config.txt | ||
LICENSE | ||
main.cpp | ||
README.md | ||
test.py |
Download
- Clone repository with
git clone https://gitea.pkm.physik.tu-darmstadt.de/NMRRWSims/cpp.git
- 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
- To run spectra, add
-spectrum
in line 14 - To run STE, add
-ste
in line 14 - Change values for tau, line broadening and pulse length in lines 88-90 (to simulate one tau value, set length of array to 1)
- Comment / Uncomment
post_process_ste
orpost_process_spectrum
.
Change of models
- 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
- 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!
- Execute
build.sh
(in terminal with./build.sh
). It compiles the source code and executes test.py