BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
BakeLattice.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Lattice/BakeLattice.h
6 //! @brief Defines class Lattice.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_SAMPLE_LATTICE_BAKELATTICE_H
16 #define BORNAGAIN_SAMPLE_LATTICE_BAKELATTICE_H
17 
18 class Lattice3D;
19 
20 //! Functions that instantiate objects. To be used like constructors.
21 
22 namespace bake {
23 
24 //! Returns a primitive cubic (cP) lattice with edge length a.
25 Lattice3D CubicLattice(double a);
26 
27 //! Returns a face-centered cubic (cF) lattice with edge length a.
28 Lattice3D FCCLattice(double a);
29 
30 //! Returns a primitive hexagonal (hP) lattice with hexagonal edge a and height c.
31 Lattice3D HexagonalLattice(double a, double c);
32 
33 //! TODO: Clarify how this is meant: HCP is not a Bravais lattice.
34 Lattice3D HCPLattice(double a, double c);
35 
36 //! Returns a primitive tetragonal (tP) lattice with square base edge a and height c.
37 Lattice3D TetragonalLattice(double a, double c);
38 
39 //! Returns a body-centered cubic (cI) lattice with edge length a.
40 //! TODO: Clarify meaning of c
41 Lattice3D BCTLattice(double a, double c);
42 
43 } // namespace bake
44 
45 #endif // BORNAGAIN_SAMPLE_LATTICE_BAKELATTICE_H
A Bravais lattice, characterized by three basis vectors, and optionally an ISelectionRule.
Definition: Lattice3D.h:29
Functions that instantiate objects. To be used like constructors.
Definition: BakeLattice.h:22
Lattice3D FCCLattice(double a)
Returns a face-centered cubic (cF) lattice with edge length a.
Definition: BakeLattice.cpp:26
Lattice3D HexagonalLattice(double a, double c)
Returns a primitive hexagonal (hP) lattice with hexagonal edge a and height c.
Definition: BakeLattice.cpp:35
Lattice3D BCTLattice(double a, double c)
Returns a body-centered cubic (cI) lattice with edge length a.
Definition: BakeLattice.cpp:59
Lattice3D HCPLattice(double a, double c)
TODO: Clarify how this is meant: HCP is not a Bravais lattice.
Definition: BakeLattice.cpp:43
Lattice3D CubicLattice(double a)
Returns a primitive cubic (cP) lattice with edge length a.
Definition: BakeLattice.cpp:18
Lattice3D TetragonalLattice(double a, double c)
Returns a primitive tetragonal (tP) lattice with square base edge a and height c.
Definition: BakeLattice.cpp:51