PoreAna 0.2
  • API
  • Sample
  • Density
  • Diffusion (Bin)
  • Diffusion (MC)
  • Further Properties
  • Site
    • Page
        • Sample._diffusion_mc
          • Sample._diffusion_mc()
    • Sample._diffusion_mc
      • Sample._diffusion_mc()
    Source

    Sample._diffusion_mc¶

    Sample._diffusion_mc(data, idx_list, com, res_id, frame_list, frame_id)¶

    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

    \[\Delta t_{\alpha} = t_{i,\alpha} - t_{j,\alpha}\]

    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

    \[\Delta t_{\alpha} = t \cdot s\]

    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()

    Parameters:
    datadictionary

    Data dictionary containing bins for axial and radial diffusion

    index_listlist

    List of dictionaries containing bin id of all molecules for each frame

    comlist

    Center of mass of current molecule

    res_idinteger

    Current residue id

    frame_listlist

    List of frame ids to process

    frame_idinteger

    Current frame_id

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.