UnitCell
Chemfiles.UnitCell — TypeA UnitCell describes the bounding box of a system. It is represented by a 3x3 matrix containing the base vectors a, b and c.
Chemfiles.CellShape — TypeThe possible shape for an unit cell are:
Chemfiles.Orthorhombicfor unit cells with the three angles are 90°.Chemfiles.Triclinicfor unit cells where the three angles may not be 90°.Chemfiles.Infinitefor unit cells without boundaries.
Chemfiles.UnitCell — TypeUnitCell(lengths::Vector{Float64}) -> UnitCell
UnitCell(
lengths::Vector{Float64},
angles::Vector{Float64}
) -> UnitCell
Create an UnitCell from the given lengths and angles.
Chemfiles.UnitCell — MethodUnitCell(frame::Frame) -> UnitCell
Get a copy of the UnitCell of a frame.
Chemfiles.UnitCell — MethodUnitCell(matrix::Matrix{Float64}) -> UnitCell
Create an UnitCell from the given 3x3 cell matrix.
Base.deepcopy — Methoddeepcopy(cell::UnitCell) -> UnitCell
Make a deep copy of a cell.
Chemfiles.angles — Methodangles(cell::UnitCell) -> Vector{Float64}
Get the three cell angles in degrees.
Chemfiles.lengths — Methodlengths(cell::UnitCell) -> Vector{Float64}
Get the three cell lengths in angstroms.
Chemfiles.matrix — Methodmatrix(cell::UnitCell) -> Matrix{Float64}
Get the cell matricial 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 |Chemfiles.set_angles! — Methodset_angles!(cell::UnitCell, angles::Vector{Float64})
Set the cell angles to the given values. The angles should be in degrees.
Chemfiles.set_lengths! — Methodset_lengths!(cell::UnitCell, lengths::Vector{Float64})
Set the cell lengths to the given values. The lengths should be in angstroms.
Chemfiles.set_shape! — Methodset_shape!(cell::UnitCell, shape::CellShape)
Set the cell shape to the given shape.
Chemfiles.shape — Methodshape(cell::UnitCell) -> CellShape
Get the cell shape, as a CellShape value.
Chemfiles.volume — Methodvolume(cell::UnitCell) -> Float64
Get the unit cell volume.
Chemfiles.wrap! — Methodwrap!(
cell::UnitCell,
vector::Vector{Float64}
) -> Vector{Float64}
Wrap a vector in the unit cell.