30
« on: March 24, 2009, 08:44 »
After debug "pseudoStress" and "findFractionalCoordinates" I found incorrect fractional_coordinates were used to build strained_configuration. So the energy difference is large and thus the absolute stress is also large.
Maybe the sub "findFractionalCoordiantes" doesn't work in my case. (BCT Rutile)
My input fractional coords:
coordinates = [[ 0. , 0. , 0. ],
[ 0.69520000, 0.30480000, 0. ]]
The initial coords in output:
# Index Element x (Ang) y (Ang) z (Ang)
0 Ti 0.00 0.00 0.00
1 O -0.91 0.91 1.48
Recognized coords in the pseudoStress for the first time:
# Index Element x (Ang) y (Ang) z (Ang)
0 Ti 0.00 0.00 0.00
1 O -0.91 0.91 1.48
Strained coords after using "findFractionalCoordinates":
# Index Element x (Ang) y (Ang) z (Ang)
0 Ti 0.00 0.00 0.00
1 O 2.07 0.25 -0.74
It is far from the original coords, the calculated fractional coords may be questionable.