Dear all,
I have tried to calculate components of pressure tensor for my structure. I used two different ways to extract the press coefficients:
- Recalling pxx, …
variable pxy equal pxy
- use stress/atom command
group solvent type 1 2
compute vis solvent stress/atom mytemp
compute visco solvent reduce sum c_vis[1] c_vis[2] c_vis[3] &
c_vis[4] c_vis[5] c_vis[6]
variable pxxcyl equal -(c_visco[1])/(3*5759.532077)
However, they don’t lead to the same results (The viscosity obtained by the second method is 10 times larger than the first method). Is there any normalization for the number of atom need here?
Thanks
solvate.in (4.5 KB)
solvate.data (815.6 KB)