Skip to content

Commit 1bd1a63

Browse files
author
Shashikant Kumar
committed
Updated mdanalaysis script
1 parent f5fc868 commit 1bd1a63

39 files changed

+30727
-7
lines changed

ChangeLog

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
-Name
44
-changes
55

6+
--------------
7+
Oct 15, 2024
8+
Name: Shashikant Kumar
9+
Changes: (utils/mdanalysis)
10+
1. Resolved bugs in SACF calculation
11+
2. Inter-diffusion routine faster
12+
3. Added a new example file
13+
4. Updated the documentation
14+
615
--------------
716
Oct 09, 2024
817
Name: Xin Jing

utils/mdanalysis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use the `mdanalysis.py` one needs an input file `carbon.mdanalysis.inpt` whic
2626
* `RANGE_PCF:` - Maximum radial distance to be considered
2727
* `SIZE_HIST_PCF:` - Total number of spherical shells to be considered
2828
* `SELF_DIFFUSION_FLAG:` - Flag to do self-diffusion coefficient calculation using integration of VACF
29-
* `BLOCK_LENGTH_SELF_DIFFUSION:` - Block length for self diffuison calculation
29+
* `BLOCK_LENGTH_SELF_DIFFUSION:` - Block lengths for self diffuison calculation (provide a block length for each elemental specie in the system)
3030
* `INTER_DIFFUSION_FLAG:` - Flag to do inter-diffusion coefficient calculation using integration of VACF
3131
* `BLOCK_LENGTH_INTER_DIFFUSION:` - Block length for inter diffuison calculation
3232
* `VISCOSITY_FLAG:` - Flag to do shear viscosity calculation using integration of VACF
78.1 KB
Loading
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
t[fs] D_t
2+
0.0000E+00 2.3726E-04
3+
1.0000E-01 4.7454E-04
4+
2.0000E-01 7.1167E-04
5+
3.0000E-01 9.4846E-04
6+
4.0000E-01 1.1848E-03
7+
5.0000E-01 1.4204E-03
8+
6.0000E-01 1.6552E-03
9+
7.0000E-01 1.8890E-03
10+
8.0000E-01 2.1216E-03
11+
9.0000E-01 2.3531E-03
79.4 KB
Loading
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
t[fs] D_t
2+
0.0000E+00 1.7325E-05
3+
1.0000E-01 3.4613E-05
4+
2.0000E-01 5.1860E-05
5+
3.0000E-01 6.9057E-05
6+
4.0000E-01 8.6199E-05
7+
5.0000E-01 1.0328E-04
8+
6.0000E-01 1.2029E-04
9+
7.0000E-01 1.3724E-04
10+
8.0000E-01 1.5410E-04
11+
9.0000E-01 1.7089E-04
12+
1.0000E+00 1.8760E-04
13+
1.1000E+00 2.0423E-04
14+
1.2000E+00 2.2077E-04
15+
1.3000E+00 2.3722E-04
16+
1.4000E+00 2.5359E-04
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
***************************************************************************
2+
* MD analysis (Version 05 Sept 2024) *
3+
* Date: 10/15/2024, 09:02:24 *
4+
***************************************************************************
5+
Inputs:
6+
7+
SYSTEM_NAME: H2O # Name of the system. This will determine the names of the file (e.g. C2.out, C2.aimd, C2.out_01 etc)
8+
N_FOLDERS: 1 # Number of folders used to run the simulation (Each folder will be considered a MD trajectory with an indepedent starting point)
9+
FOLDER_PATH_SIMULATIONS: ./ # Location of the folders
10+
N_SIMULATIONS_FOLDER: 1 # Number of simulation run within each folder (If it has 3 simulations, C2.out, C2.out_01, C2.out_02 files are expected.)
11+
12+
13+
N_EQUIL: 10 # Number of MD steps for equilibriation
14+
15+
16+
PCF_FLAG: 0 # Flag to do a pair correlation function calculation
17+
RANGE_PCF: 10 # Maximum radial distance to be considered
18+
SIZE_HIST_PCF: 100 # Total number of spherical shells to be considered
19+
20+
SELF_DIFFUSION_FLAG: 1 # Flag to do self-diffusion coefficient calculation using integration of VACF
21+
BLOCK_LENGTH_SELF_DIFFUSION: 10 15 # Block length
22+
23+
24+
INTER_DIFFUSION_FLAG: 1 # Flag to do inter-diffusion coefficient calculation using integration of VACF
25+
BLOCK_LENGTH_INTER_DIFFUSION: 20 # Block length
26+
27+
VISCOSITY_FLAG: 1 # Flag to do shear viscosity calculation using integration of VACF
28+
BLOCK_LENGTH_VISCOSITY: 20 # Block length
29+
30+
INTERNAL_ENERGY_FLAG: 1 # Flag to get the mean and error bar of total internal energy (ha/atom)
31+
PRESSURE_FLAG: 1 # Flag to get the mean and error bar of total pressure (GPa)
32+
***************************************************************************
33+
Internal energy (UEN + KENIG):
34+
Mean of internal energy [ha/atom]: -2.447001459E+01
35+
Error bar of internal energy [ha/atom]: 1.487E-03
36+
***************************************************************************
37+
Pressure (PRES + PRESIG):
38+
Mean of pressure [GPa]: 4.846579972E+02
39+
Error bar of pressure [GPa]: 3.127E+00
40+
***************************************************************************
41+
Self diffusion coefficient:
42+
Self diffusion coefficients [cm^2/s]:
43+
2.3531E-03, 2.5359E-04,
44+
Self diffusion coefficients error bar[cm^2/s]:
45+
3.5450E-05, 1.3529E-05,
46+
***************************************************************************
47+
Inter diffusion coefficient:
48+
Inter diffusion coefficients [cm^2/s]:
49+
9.7906E-03,
50+
Inter diffusion coefficients error bar[cm^2/s]:
51+
1.8895E-03,
52+
***************************************************************************
53+
Shear viscosity:
54+
Viscosity [Pa-s]:
55+
5.4306E-04,
56+
Viscosity error bar[Pa-s]:
57+
6.4636E-05,

0 commit comments

Comments
 (0)