Changes between Version 7 and Version 8 of LatticeComputations
- Timestamp:
- Jul 6, 2010 2:21:06 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LatticeComputations
v7 v8 11 11 1/D^2^ = ''h''^2^*A(1) + ''k''^2^*A(2) + ''l''^2^*A(3) + ''h''*''k''*A(4) + ''h''*''l''*A(5) + ''k''*''l''*A(6) 12 12 13 a code fragment that shows how this can be used is: 13 In addition, A and B are used to define a pair of 3x3 transformation matrices, where A*x converts Cartesian coordinates x into fractional ones and B does the inverse transform. 14 A code fragment that shows how this can be used is: 14 15 {{{ 15 16 import numpy as np … … 20 21 }}} 21 22 22 In addition, A and B are used to define a pair of 3x3 transformation matrices, where A*x converts Cartesian coordinates x into fractional ones and B does the inverse transform.23 23 24 24 Routine '''GenHBravais''' is used to compute the unique reflection positions for a given Bravais lattice type. This is intended to provide a list of unique d-spacings for a given unit cell and centering setting. If two crystallographically distinct reflections, for example the (300) and the (122) reflections in a cubic cell,