H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.
Calculates the metric tensor and its inverse for a triclinic crystal.
Language: | FORTRAN |
Product form: | Source code |
MAP_CRYSTAL_TENSOR6 calculates the metric tensor and its inverse for a triclinic crystal structure.
IFAIL is set to 1 if any of the angles alpha, beta or gamma fall outside the permitted range of 0 to 180 degrees, 0 otherwise.
No information supplied.
None.
REAL F(9), G(9), AP, BP, CP, ALPH, BETA, GAMM, PI INTEGER I, IFAIL INCLUDE 'map_constants_pi.f' READ (5,*) AP, BP, CP, ALPH, BETA, GAMM CALL MAP_CRYSTAL_TENSOR6(F, G, AP, BP, CP, ALPH, BETA, GAMM, PI, IFAIL) WRITE (6,*) (G(I), I=1,9) WRITE (6,*) (F(I), I=1,9) IF (IFAIL.EQ.0) GOTO 20 WRITE(6,40) 40 FORMAT('Invalid value for angle. Must be in range 0 - 180') 20 CONTINUE STOP END
1.0 1.5 2.0 30.0 45.0 60.0
1.00 1.29904 1.84776 1.29904 2.25 2.89778 1.84776 2.89778 4.00 7.34958 1.92908 -4.79257 1.92908 7.14113 -6.06447 -4.79257 -6.06447 6.85725
Subroutines:
MAP_CRYSTAL_MET6
Utility Subroutines:
MAP_UTIL_CRYSTAL
triclinic, metric tensor, inverse
MAP originated from a joint project of the National Physical Laboratory and the University of Cambridge.
MAP Website administration / map@msm.cam.ac.uk