UnitCell type¶
- type
UnitCell¶ - A
UnitCelldescribes the bounding box of a system. It is represented by three base vectors of lengthsa,bandc; and the angles between these vectors arealpha,betaandgamma.
- function
UnitCell(a::Number, b::Number, c::Number)¶ - Create an
UnitCellfrom the three lenghts, with all the angles equal to 90°.
- function
UnitCell(a::Number, b::Number, c::Number, α::Number, β::Number, γ::Number)¶ - Create an
UnitCellfrom the three lenghts and three angles.
- function
UnitCell(frame::Frame)¶ - Get a copy of the
UnitCellof aframe.
- function
deepcopy(cell::UnitCell)¶ - Make a deep copy of a
cell.
- function
volume(cell::UnitCell)¶ - Get the unit
cellvolume.
- function
lengths(cell::UnitCell)¶ - Get the three
celllengths (a, b and c) in angstroms.
- function
set_lengths!(cell::UnitCell, a::Real, b::Real, c::Real)¶ Set the
celllengths toa,bandc.a,bandcshould be in angstroms.
- function
angles(cell::UnitCell)¶ - Get the three
cellangles (alpha, beta and gamma) in degrees.
- function
set_angles!(cell::UnitCell, α::Real, β::Real, γ::Real)¶ Set the cell angles to
α,βandγ.α,βandγshould be in degrees.
- function
matrix(cell::UnitCell)¶ Get the
cellmatricial representation, i.e. the representation of the three base vectors as:| a_x b_x c_x | | 0 b_y c_y | | 0 0 c_z |
- function
shape(cell::UnitCell)¶ - Get the
cellshape, as aCellShapevalue.
- function
set_shape!(cell::UnitCell, shape::CellShape)¶ - Set the
cellshape to the givenshape.
- function
wrap!(cell::UnitCell, vector::Vector{Float64})¶ - Wrap a vector in the unit cell.