oILAB
Loading...
Searching...
No Matches
Gb.h
Go to the documentation of this file.
1//
2// Created by Nikhil Chandra Admal on 11/5/22.
3//
4
5#ifndef OILAB_GB_H
6#define OILAB_GB_H
7
8#include "../Utilities/Rotation.h"
9#include "BiCrystal.h"
11
12namespace oILAB {
13template <int dim> class Gb {
19
20private:
23
24public:
37
39
41
43
46
49
56 double stepHeightA(const LatticeVector<dim> &d) const;
63 double stepHeightB(const LatticeVector<dim> &d) const;
64
73 double stepHeight(const LatticeVector<dim> &d) const;
74
83
84 template <int dm = dim>
85 typename std::enable_if<dm == 2, LatticeVector<dim>>::type
87
88 template <int dm = dim>
89 typename std::enable_if<dm == 3, LatticeVector<dim>>::type
91
121 template <int dm = dim>
122 typename std::enable_if<dm == 2 || dm == 3,
123 std::vector<LatticeVector<dim>>>::type
124 box(std::vector<LatticeVector<dim>> &boxVectors, const double &orthogonality,
125 const int &dsclFactor, std::string filename = "",
126 bool orient = false) const;
127
128 };
129
246 } // namespace oILAB
247
248#endif //OILAB_GB_H
Definition Gb.h:13
std::enable_if< dm==2, LatticeVector< dim > >::type getPeriodVector(const ReciprocalLatticeVector< dim > &axis) const
Definition Gb.cpp:159
ReciprocalLatticeDirection< dim > getReciprocalLatticeDirectionInT(const ReciprocalLatticeVector< dim > &v) const
Definition Gb.cpp:240
LatticeVector< dim > getLatticeVectorInT(const LatticeVector< dim > &v) const
Definition Gb.cpp:206
const ReciprocalLatticeDirection< dim > nB
Definition Gb.h:36
typename LatticeCore< dim >::VectorDimD VectorDimD
Definition Gb.h:15
double stepHeightB(const LatticeVector< dim > &d) const
Computes the step height of a disconnection formed by displacing lattice by a Burgers vector .
Definition Gb.cpp:56
const ReciprocalLatticeDirection< dim > nA
Definition Gb.h:32
double stepHeight(const LatticeVector< dim > &d) const
Computes the step height of a disconnection formed by displacing lattice by and by
Definition Gb.cpp:47
const MatrixDimI basisT
Definition Gb.h:40
MatrixDimI getBasisT(const BiCrystal< dim > &bc, const ReciprocalLatticeDirection< dim > &n)
Definition Gb.cpp:177
typename LatticeCore< dim >::MatrixDimI MatrixDimI
Definition Gb.h:17
typename LatticeCore< dim >::IntScalarType IntScalarType
Definition Gb.h:18
typename LatticeCore< dim >::VectorDimI VectorDimI
Definition Gb.h:14
const BiCrystal< dim > & bc
Definition Gb.h:28
ReciprocalLatticeVector< dim > getReciprocalLatticeVectorInT(const ReciprocalLatticeVector< dim > &v) const
Definition Gb.cpp:228
const Lattice< dim > T
Definition Gb.h:38
std::enable_if< dm==2||dm==3, std::vector< LatticeVector< dim > > >::type box(std::vector< LatticeVector< dim > > &boxVectors, const double &orthogonality, const int &dsclFactor, std::string filename="", bool orient=false) const
Definition Gb.cpp:66
double stepHeightA(const LatticeVector< dim > &d) const
Computes the step height of a disconnection formed by displacing lattice by a Burgers vector .
Definition Gb.cpp:38
typename LatticeCore< dim >::MatrixDimD MatrixDimD
Definition Gb.h:16
Lattice class.
Definition Lattice.h:31
LatticeVector class.
Eigen::Matrix< IntScalarType, dim, 1 > VectorDimI
Definition LatticeCore.h:23
long long int IntScalarType
Definition LatticeCore.h:22
Eigen::Matrix< IntScalarType, dim, dim > MatrixDimI
Definition LatticeCore.h:24
Eigen::Matrix< double, dim, 1 > VectorDimD
Definition LatticeCore.h:20
Eigen::Matrix< double, dim, dim > MatrixDimD
Definition LatticeCore.h:21