Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /Conograph/trunk/src/utility_func/lattice_constant.hh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (hide annotations) (download) (as text)
Mon Jul 7 02:35:51 2014 UTC (9 years, 8 months ago) by rtomiyasu
File MIME type: text/x-c++hdr
File size: 2307 byte(s)
Source codes of version 0.9.99
1 rtomiyasu 3 /*
2     * The MIT License
3    
4     Conograph (powder auto-indexing program)
5    
6     Copyright (c) <2012> <Ryoko Oishi-Tomiyasu, KEK>
7    
8     Permission is hereby granted, free of charge, to any person obtaining a copy
9     of this software and associated documentation files (the "Software"), to deal
10     in the Software without restriction, including without limitation the rights
11     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12     copies of the Software, and to permit persons to whom the Software is
13     furnished to do so, subject to the following conditions:
14    
15     The above copyright notice and this permission notice shall be included in
16     all copies or substantial portions of the Software.
17    
18     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24     THE SOFTWARE.
25     *
26     */
27     #ifndef _LATTICE_CONSTANT_HH_
28     #define _LATTICE_CONSTANT_HH_
29    
30     #include"../RietveldAnalysisTypes.hh"
31 rtomiyasu 25 #include"../utility_data_structure/SymMat.hh"
32 rtomiyasu 3 #include"../utility_data_structure/VecDat3.hh"
33     #include"../utility_data_structure/SymMatWCovar.hh"
34    
35    
36     inline const Int4& PNLatConst()
37     {
38     static const Int4 PNLatConst = 6; // The number of paramters for the isotropic Debye-Waller factor.
39     return PNLatConst;
40     }
41    
42     inline const Int4& PNXYZ()
43     {
44     static const Int4 PNXYZ = 3;
45     return PNXYZ;
46     }
47    
48     // calculate S(i.e. A*,B*,C*,D*,E*,F*) from the lattice_constants a, b, c, alpha, beta, gamma(deg).
49     void calCoParameter(const VecDat3<Double>&, const VecDat3<Double>&, SymMat<Double>&);
50    
51     // calculate the lattice_constants a, b, c, alpha, beta, gamma(deg) from S(i.e. A*,B*,C*,D*,E*,F*).
52     void calLatticeConstant(const SymMat<Double>&, VecDat3<Double>&, VecDat3<Double>&);
53    
54     // 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);
56    
57    
58     #endif /*LATTICE_CONSTANT_HH_*/

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26