gemdat.legacy
This module provides a code to deal with the original matlab code that Gemdat is based on.
analyse_md(vasp_xml, *, diff_elem, material, supercell=None, equil_time=2.5e-12, diffusion_dimensions=3, z_ion=1, nr_parts=10, dist_collective=4.5, density_resolution=0.2, jump_res=0.1, calc_rdfs=False, rdf_res=0.1, rdf_max_dist=10, start_end=(5000, 7500), nr_steps_frame=5, show_plots=True)
Analyse md data.
This function mimicks the the API of the analyse_md
function in the
Matlab code to analyse Molecular Dynamics simulations
that Gemdat is based on.
Parameters:
-
vasp_xml
(str
) –Simulation data input file
-
diff_elem
(str
) –Name of diffusing element
-
material
(str
) –Name of known material with sites for diffusing elements
-
supercell
(tuple[int, int, int]
, default:None
) –Super cell to apply to the known material
-
equil_time
(float
, default:2.5e-12
) –Equilibration time in seconds (1e-12 = 1 picosecond)
-
diffusion_dimensions
(int
, default:3
) –Number of diffusion dimensions
-
z_ion
(int
, default:1
) –Ionic charge of diffusing ion
-
nr_parts
(int
, default:10
) –In how many parts to divide your simulation for statistics
-
dist_collective
(float
, default:4.5
) –Maximum distance for collective motions in Angstrom
-
density_resolution
(float
, default:0.2
) –Resolution for the diffusing atom density plot in Angstrom
-
jump_res
(float
, default:0.1
) –Resolution for the number of jumps vs distance plot in Angstrom
-
calc_rdfs
(bool
, default:False
) –Calculate and show radial distribution functions
-
rdf_res
(float
, default:0.1
) –Resolution of the rdf bins in Angstrom
-
rdf_max_dist
(int
, default:10
) –Maximal distanbe of the rdf in Angstrom
-
start_end
(tuple[int, int]
, default:(5000, 7500)
) –The time steps for which to start and end the movie
-
nr_steps_frame
(int
, default:5
) –How many time steps per frame in the movie, increase to get shorter and faster movies
Returns:
-
trajectory
(Trajectory
) –Output trajectory
Source code in src/gemdat/legacy.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
|