#include <Gb.h>
template<int dim>
class gbLAB::Gb< dim >
- Examples
- testGb.cpp, and testGb3d.cpp.
Definition at line 15 of file Gb.h.
◆ IntScalarType
Definition at line 21 of file Gb.h.
◆ MatrixDimD
Definition at line 19 of file Gb.h.
◆ MatrixDimI
Definition at line 20 of file Gb.h.
◆ VectorDimD
Definition at line 18 of file Gb.h.
◆ VectorDimI
Definition at line 17 of file Gb.h.
◆ Gb()
Constructs a grain boundary of a given orientation in a bicrystal.
- Parameters
-
bc | - Bicrystal formed by two lattices \(\mathcal A\) and \(\mathcal B\). |
n | - Reciprocal lattice direction in dual lattices \(\mathcal A^*\) or \(\mathcal B^*\). |
Definition at line 12 of file Gb.cpp.
◆ box()
template<int dim>
template<int dm>
template std::vector< LatticeVector< 3 > > gbLAB::Gb< dim >::box< 3 > |
( |
std::vector< LatticeVector< dim > > & |
boxVectors, |
|
|
const double & |
orthogonality, |
|
|
const int & |
dsclFactor, |
|
|
std::string |
filename = "" , |
|
|
bool |
orient = false |
|
) |
| const |
This function outputs/prints a grain boundary (two lattices that form the GB, CSL, and the DSCL) bounded by a box defined using input box vectors. The box vectors have to be linearly independent lattice vectors. The boxVectors
[0] is not parallel to the boundary plane while the remaining box vectors should lie in the GB plane. The function optimizes boxVectors[0] to make the box as orthogonal as possible depending on the orthogonality
parameter. The length of the box along boxVectors
[0] is equal to 2*boxVectors
[0].norm, while the lengths along the remaining box vectors are equal to their norms.
The function outputs DSCL lattice points in the GBs neighborhood, which can be controlled by the dsclFactor
parameter.
- Template Parameters
-
- Parameters
-
boxVectors | three linearly independent lattice vectors. The first box vector is not parallel to the boundary plane, while the remaining box vectors span the GB plane. |
orthogonality | (double) a value in the interval \([0,1]\). |
dsclFactor | (int) a factor \( \ge 1\) to increase the number of outputted DSCL planes |
filename | (optional) name of the output file |
orient | (optional) While printing to a file, orient the system such that the box sides are along the global x, y, and z axes. The box vectors spanning the grain boundary have to be orthogonal if orient==true. This flag does not influence the returning configuration, only the configuration printed to the file. |
- Returns
- lattice points of the grain boundary bounded by the box (std::vector<LatticeVector<dim>>).
- Examples
- testGb.cpp, and testGb3d.cpp.
Definition at line 49 of file Gb.cpp.
◆ getBasisT()
◆ getLatticeVectorInT()
◆ getPeriodVector() [1/2]
template<int dim>
template<int dm>
◆ getPeriodVector() [2/2]
template<int dim>
template<int dm>
◆ getReciprocalLatticeDirectionInT()
◆ getReciprocalLatticeVectorInT()
◆ stepHeightA()
Computes the step height of a disconnection formed by displacing lattice \(\mathcal A\) by a Burgers vector \(\textbf d\).
- Parameters
-
d | - Burgers vector that belongs to the DSCL of the bicrystal |
- Returns
- step height
- Examples
- testGb.cpp.
Definition at line 30 of file Gb.cpp.
◆ stepHeightB()
Computes the step height of a disconnection formed by displacing lattice \(\mathcal B\) by a Burgers vector \(\textbf d\).
- Parameters
-
d | - Burgers vector that belongs to the DSCL of the bicrystal |
- Returns
- step height
- Examples
- testGb.cpp.
Definition at line 39 of file Gb.cpp.
◆ basisT
Definition at line 41 of file Gb.h.
◆ bc
Bicrystal formed by two lattices, say \(\mathcal A\) and \(\mathcal B\)
- Examples
- testGb.cpp, and testGb3d.cpp.
Definition at line 29 of file Gb.h.
◆ nA
◆ nB
Definition at line 39 of file Gb.h.
The documentation for this class was generated from the following files: