create_unit_cell.bravais: Unit cell starting from a Bravais symbol

View source: R/cell_S3.R

create_unit_cell.bravaisR Documentation

Unit cell starting from a Bravais symbol

Description

Method to create a "unit_cell" object starting from a "bravais" object. The Bravais symbols indicate the 14 possible Bravais lattices. A few examples are "aP", "oF", etc. The cell parameters assigned are assigned randomly, but are compatible with the Bravais lattice.

Usage

## S3 method for class 'bravais'
create_unit_cell(a, ...)

Arguments

a

An object of class "bravais".

...

Additional arguments passed to the create_unit_cell methods

Value

An object of class "unit_cell". It is a named list of length 6 whose last three slots are of "angle" class.

Examples

# Create a "unit_cell" object from a monoclinic primitive Bravais lattice
# Cell parameters generated automatically.
bt <- bravais("mP")
uc <- create_unit_cell(bt)
print(uc)


cry documentation built on Oct. 10, 2022, 9:06 a.m.