CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <UnitCellCoord.hh>
Unit Cell Indices.
Definition at line 34 of file UnitCellCoord.hh.
Public Member Functions | |
UnitCell (void) | |
template<typename OtherDerived > | |
UnitCell (const Eigen::MatrixBase< OtherDerived > &integral_coordinate) | |
Construct from integral fractional values, relative to the tiling unit. More... | |
UnitCell (Index a, Index b, Index c) | |
Coordinate | coordinate (const Lattice &tiling_unit) const |
UnitCell | reset_tiling_unit (const Lattice ¤t_tiling_unit, const Lattice &new_tiling_unit) const |
Finds a new UnitCell with values relative to the given tiling unit. More... | |
template<typename OtherDerived > | |
UnitCell & | operator= (const Eigen::MatrixBase< OtherDerived > &other) |
bool | operator< (const UnitCell &B) const |
Compare UnitCell. More... | |
Static Public Member Functions | |
static UnitCell | from_coordinate (Coordinate const &lattice_point) |
Convert lattice point to a unitcell. More... | |
static UnitCell | from_cartesian (const Eigen::Vector3d &cartesian_coord, const Lattice &tiling_unit) |
Static Private Member Functions | |
static void | _throw_large_rounding_error () |
|
inline |
Definition at line 36 of file UnitCellCoord.hh.
|
inline |
Construct from integral fractional values, relative to the tiling unit.
Definition at line 40 of file UnitCellCoord.hh.
Definition at line 43 of file UnitCellCoord.hh.
|
inlinestaticprivate |
Throws exception to indicate that finding integral values resulted in errors much larger than the relevant lattice tolerance
Definition at line 85 of file UnitCellCoord.hh.
Coordinate CASM::xtal::UnitCell::coordinate | ( | const Lattice & | tiling_unit | ) | const |
Convert a unitcell to a lattice point coordinate, given the primitive tiling unit lattice
Definition at line 40 of file UnitCellCoord.cc.
|
static |
Convert a Cartesian coordinate into a unitcell by rounding fractional coordinates to the provided lattice
Definition at line 34 of file UnitCellCoord.cc.
|
static |
Convert lattice point to a unitcell.
Definition at line 13 of file UnitCellCoord.cc.
|
inline |
Compare UnitCell.
Definition at line 69 of file UnitCellCoord.hh.
|
inline |
Definition at line 63 of file UnitCellCoord.hh.
UnitCell CASM::xtal::UnitCell::reset_tiling_unit | ( | const Lattice & | current_tiling_unit, |
const Lattice & | new_tiling_unit | ||
) | const |
Finds a new UnitCell with values relative to the given tiling unit.
Definition at line 45 of file UnitCellCoord.cc.