Materials Algorithms Project
Program Library
- Provenance of code.
- Purpose of code.
- Specification.
- Description of subroutine's operation.
- References.
- Parameter descriptions.
- Error indicators.
- Accuracy estimate.
- Any additional information.
- Example of code
- Auxiliary subroutines required.
- Keywords.
- Download source code.
- Links.
H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.
Top |
Next
To obtain the spacing of planes, when the Miller indices are not those which are systematically absent.
Top |
Next |
Prev
Language: | FORTRAN
|
Product form: | Source code |
SUBROUTINE MAP_CRYSTAL_DSP(F, H, K, L, JTYPE, JLOG, AD)
REAL F(9), H, K, L, AD
INTEGER JTYPE, JLOG
Top |
Next |
Prev
MAP_CRYSTAL_DSP calculates the spacing of planes, when the Miller indices are not those
which are systematically absent. There are no systematic absences for a primitive lattice
(JTYPE=1). For all other lattice types, subroutine MAP_CRYSTAL_TYPE
determines whether there is a systematic absence. The spacing AD is calculated only when
there is no absence.
Top |
Next |
Prev
- H.K.D.H. Bhadeshia, Worked Examples in the Geometry of Crystals,
Institute of Materials, London, 1987.
- H.K.D.H. Bhadeshia, Chapter on crystallography in Microstructural Characterisation
of High Temperature Materials, ed. E. Metcalfe,
Institute of Metals, London, 1988.
Top |
Next |
Prev
Input parameters
- F - real array of dimension 9
- F is the metric tensor for converting components from reciprocal to real
space.
- H, K, L - real
- H, K, L are the Miller indices.
- JTYPE - integer
- JTYPE defines the lattice type:-
- JTYPE=1 is for primitive
- JTYPE=2 is for body-centered cubic
- JTYPE=3 is for face-centered cubic
- JTYPE=4 is for A-centered
- JTYPE=5 is for B-centered
- JTYPE=6 is for C-centered
Output parameters
- AD - real
- AD is the spacing of the planes with the Miller indices (HKL).
- JLOG - integer
- JLOG is set to 0 if the HKL is not absent, 1 if it is.
Top |
Next |
Prev
None.
Top |
Next |
Prev
No information provided.
Top |
Next |
Prev
None.
Top |
Next |
Prev
1. Program text
REAL F(9), H, K, L, AD
INTEGER JTYPE, JLOG
READ (5,*) (F(I), I=1,9)
READ (5,*) H, K, L
READ (5,*) JTYPE
CALL MAP_CRYSTAL_DSP(F, H, K, L, JTYPE, JLOG, AD)
WRITE (6,*) JLOG, AD
STOP
END
2. Program data
1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.25
1.0 0.0 1.0
2
3. Program results
0 0.707107
Top |
Next |
Prev
Subroutines:
MAP_CRYSTAL_TYPE
Utility Subroutines:
MAP_UTIL_TRANS
MAP_UTIL_MAG
Top |
Next |
Prev
spacing of planes, Miller indices
Top |
Next |
Prev
Download source code
Top |
Prev