This function sample the transition matrix for the diffusion calculation with the Monte Carlo diffusion methode for a cubic simulation box. The sample of the transition matrix is to be run on the cluster due to a high time and resource consumption. The output, a h5 data file, is then used to calculate the self-diffusion using further calculation functions for the MC Diffusion methode.
It is necessary to caculate the transition matrix for different step length and so for different lag times. A lagtime \(\Delta t_{\alpha}\) is defined by
with \(i\) and \(j\) as the current state of the system at two different times and \(\alpha\) as past time between the two states. To sample the transition matrix the frame length \(t\) has to be specifiy and this frame length is for all lag times the same. The variation of the lag time is happend by adapting the step length \(s\) which indicates the interval between the frames. The lag time is than calculated by
After the sampling a model class has to set and then the MC calculation
can run. Subsequently the final mean diffusion coefficient can be
determined with a extrapolation to
\(\Delta t_{\alpha} \rightarrow \infty\).
For the etxrapolation we need the mean diffusion over the bins for
different chosen lag times. That’s why we have to calculate the results
and the transition matrix for several lag times. More information about
post processing and the extrapolation that you can find in
diffusion.diffusion_fit()
Data dictionary containing bins for axial and radial diffusion
List of dictionaries containing bin id of all molecules for each frame
Center of mass of current molecule
Current residue id
List of frame ids to process
Current frame_id