CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Niggli.hh>
Returns a values of A, B, C, ksi, eta and zeta. If the initialization cell has vector lenghts a, b and c, with angles alpha, beta, gamma, then the niggli values are
A=a*a B=b*b C=c*c ksi=2bc*cos(alpha) eta=2ac*cos(beta) zeta=2ab*cos(gamma)
Put another way, if the initialization lattice has vectors a, b and c then
A=aa B=bb C=cc ksi=2*bc eta=2*ac zeta=2*ab
Public Member Functions | |
NiggliRep (const Lattice &init_lat) | |
NiggliRep (const Eigen::Matrix3d &init_lat_col_mat) | |
double | A () const |
Square of lattice length a. More... | |
double | B () const |
Square of lattice length b. More... | |
double | C () const |
Square of lattice length c. More... | |
double | ksi () const |
2bc*cos(alpha) More... | |
double | eta () const |
2ac*cos(beta) More... | |
double | zeta () const |
2ab*cos(gamma) More... | |
const Eigen::Matrix3d & | metrical_matrix () const |
bool | meets_criteria_1 (double compare_tol) const |
A<=B OR (A==B, |ksi| <= |eta|) More... | |
bool | meets_criteria_2 (double compare_tol) const |
B<=C OR (B==C, |eta| <= |zeta|) More... | |
bool | meets_criteria_3 (double compare_tol) const |
For type I: ksi>0 && eta>0 && zeta>0 (all angles < 90) More... | |
bool | meets_criteria_4 (double compare_tol) const |
For type II: ksi<=0 && eta<=0 && zeta<=0 (all angles >= 90) More... | |
bool | meets_criteria_5 (double compare_tol) const |
|ksi|<=B OR (ksi==B, zeta<=2*eta) OR (ksi==-B, zeta==0) More... | |
bool | meets_criteria_6 (double compare_tol) const |
|eta|<=A OR (eta==A, zeta<=2*ksi) OR (eta==-A, zeta==0) More... | |
bool | meets_criteria_7 (double compare_tol) const |
|zeta|<=A OR (zeta==A, eta<=2*ksi) OR (zeta==-A, eta==0) More... | |
bool | meets_criteria_8 (double compare_tol) const |
bool | is_niggli (double compare_tol) const |
True if all conditions are true, and either 4 OR 3 is false. More... | |
bool | is_niggli_type1 (double compare_tol) const |
True if all conditions except 4 are true. More... | |
bool | is_niggli_type2 (double compare_tol) const |
True if all conditions except 3 are true. More... | |
void | debug_criteria (double compare_tol) const |
Index | niggli_index (double compare_tol) const |
Number of criteria met. More... | |
Static Public Member Functions | |
static std::vector< Eigen::Matrix3d > const & | cell_invariant_transforms () |
Private Attributes | |
const Eigen::Matrix3d | m_metrical_matrix |
Transpose of initialization lattice dotted with itself. More... | |
const double | m_scale_factor |
Scaling factor for niggli comparisons. More... | |
CASM::xtal::NiggliRep::NiggliRep | ( | const Lattice & | init_lat | ) |
CASM::xtal::NiggliRep::NiggliRep | ( | const Eigen::Matrix3d & | init_lat_col_mat | ) |
double CASM::xtal::NiggliRep::A | ( | ) | const |
double CASM::xtal::NiggliRep::B | ( | ) | const |
double CASM::xtal::NiggliRep::C | ( | ) | const |
|
static |
void CASM::xtal::NiggliRep::debug_criteria | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::is_niggli | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::is_niggli_type1 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::is_niggli_type2 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_1 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_2 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_3 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_4 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_5 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_6 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_7 | ( | double | compare_tol | ) | const |
bool CASM::xtal::NiggliRep::meets_criteria_8 | ( | double | compare_tol | ) | const |
const Eigen::Matrix3d & CASM::xtal::NiggliRep::metrical_matrix | ( | ) | const |
Index CASM::xtal::NiggliRep::niggli_index | ( | double | compare_tol | ) | const |
double CASM::xtal::NiggliRep::zeta | ( | ) | const |
|
private |
|
private |