[MAP Logo]

Materials Algorithms Project
Program Library



Subroutine MAP_CRYSTAL_NOTAT1

  1. Provenance of code.
  2. Purpose of code.
  3. Specification.
  4. Description of subroutine's operation.
  5. References.
  6. Parameter descriptions.
  7. Error indicators.
  8. Accuracy estimate.
  9. Any additional information.
  10. Example of code
  11. Auxiliary subroutines required.
  12. Keywords.
  13. Download source code.
  14. Links.

Provenance of Source Code

H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.

Top | Next

Purpose

To convert from four index notation to three index notation for a hexagonal lattice.

Top | Next | Prev

Specification

Language:FORTRAN
Product form:Source code

SUBROUTINE MAP_CRYSTAL_NOTAT1(U, V, T, W, JR2, U1, U2, U3)

REAL U, V, T, W, U1, U2, U3

INTEGER JR2

Top | Next | Prev

Description

MAP_CRYSTAL_NOTAT1 converts from four index notation to three index notation for the hexagonal lattice system. If the components in four index notation are U,V,T,W, then the components in three index notation are given by:-

U1 = U - T, U2 = V - T, U3 = W, in real space, or

U1 = U, U2 = V, U3 = W, in reciprocal space.

Top | Next | Prev

References

  1. Microstructural Characterisation of High Temperature Materials, ed. E. Metcalfe, Institute of Metals, London, 1988, (page 33, Table 3).

Top | Next | Prev

Parameters

Input parameters

U,V,T,W - reals
U,V,T,W are the components in four index notation.

JR2 - integer
JR2 = 0 if the components are in real space, JR2 = 1 if they are in reciprocal space.

Output parameters

U1,U2,U3 - reals
U1,U2,U3 are the components in three index notation.

Top | Next | Prev

Error Indicators

None.

Top | Next | Prev

Accuracy

No information supplied.

Top | Next | Prev

Further Comments

None.

Top | Next | Prev

Example

1. Program text

       REAL U, V, T, W, U1, U2, U3
       INTEGER JR2
       READ (5,*) U, V, T, W
       READ (5,*) JR2
       CALL MAP_CRYSTAL_NOTAT1(U, V, T, W, JR2, U1, U2, U3)
       WRITE (6,*) U1, U2, U3
       STOP
       END

2. Program data

1.0  -1.0   3.0   2.0

3. Program results

-2.0  -4.0   2.0

Top | Next | Prev

Auxiliary Routines

None.

Top | Next | Prev

Keywords

four index notation, three index notation

Top | Next | Prev

Download

Download source code

Top | Prev


MAP originated from a joint project of the National Physical Laboratory and the University of Cambridge.

MAP Website administration / map@msm.cam.ac.uk

Top | Index | MAP Homepage Valid HTML 3.2!