| 28 |
#define _LATTICE_CONSTANT_HH_ |
#define _LATTICE_CONSTANT_HH_ |
| 29 |
|
|
| 30 |
#include"../RietveldAnalysisTypes.hh" |
#include"../RietveldAnalysisTypes.hh" |
| 31 |
|
#include"../utility_data_structure/SymMat.hh" |
| 32 |
#include"../utility_data_structure/VecDat3.hh" |
#include"../utility_data_structure/VecDat3.hh" |
| 33 |
#include"../utility_data_structure/SymMatWCovar.hh" |
#include"../utility_data_structure/SymMatWCovar.hh" |
| 34 |
|
|
| 54 |
// calculate the lattice_constants a, b, c, alpha, beta, gamma(deg) from S(i.e. A*,B*,C*,D*,E*,F*). |
// calculate the lattice_constants a, b, c, alpha, beta, gamma(deg) from S(i.e. A*,B*,C*,D*,E*,F*). |
| 55 |
void calLatticeConstant(const SymMatWCovar&, VecDat3<Double>&, VecDat3<Double>&, SymMat<Double>& LatConst_covar); |
void calLatticeConstant(const SymMatWCovar&, VecDat3<Double>&, VecDat3<Double>&, SymMat<Double>& LatConst_covar); |
| 56 |
|
|
|
//// Returns the volume of the co-lattice unit cell from S. |
|
|
//inline Double calCoLatticeUnitCellVolume(const SymMat<Double>& S) |
|
|
//{ |
|
|
// assert( S.size() == 3 ); |
|
|
// return sqrt( S(0,0)*S(1,1)*S(2,2) - S(0,0)*S(1,2)*S(1,2) - S(1,1)*S(0,2)*S(0,2) - S(2,2)*S(0,1)*S(0,1) |
|
|
// + 2.0*S(0,1)*S(0,2)*S(1,2) ); |
|
|
//} |
|
|
// |
|
|
|
|
| 57 |
|
|
| 58 |
#endif /*LATTICE_CONSTANT_HH_*/ |
#endif /*LATTICE_CONSTANT_HH_*/ |