This function samples and calculates the diffusion coefficient of a molecule group in a pore in both axial and radial direction, as described in the paper of Cui.
The mean square displacement is sampled in function
poreana.sample.Sample._diffusion_bin()
.
The axial diffusion is given by the Einstein relation
with axial diffusion coefficient \(D_\text{axial}\). Thus the coefficient corresponds to the slope of the axial msd
with bin \(i>j\). The radial diffusion is given by
with radial diffusion coefficient \(D_\text{radial}\), the maximal accessible radial position \(R\) by an atom
with pore diameter \(d\), and the zeros \(\lambda_{1n}^2\) of the derivative
of the first order Bessel function \(J_1\). Therefore the coefficient has to be fitted to the sampled radial msd. The author observed that the first 20 Bessel function zeros were sufficient for the function fit.
The final unit transformation is done by
Note that the function for the radial diffusion is obtained under the assumption that the density inside the pore is uniform.
Link to hdf5 data file generated by the sample routine
poreana.sample.Sample._diffusion_bin()
If there is more than one shape in the structure, select the shape you want the results to be.
Distance from pore centre to calculate the mean
Bin area percentage to calculate the axial diffusion coefficient
axial, radial or empty for both
True to plot the fitted function
True to create plot in this function