Skip to contents

Method to create an object of class "unit_cell" starting from an object of class "rec_unit_cell".

Usage

# S3 method for rec_unit_cell
create_unit_cell(a, ...)

Arguments

a

An object of class "rec_unit_cell".

...

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 starting from a reciprocal cubic cell object
ruc <- rec_unit_cell()
print(ruc)
#> This is an object of class 'rec_unit_cell'
#> Its sides are:
#>        0.100 ,      0.100 ,      0.100    1/angstroms.
#> Its angles are:
#>       90.000 ,     90.000 ,     90.000    degrees.
uc <- create_unit_cell(ruc)
print(uc)
#> This is an object of class 'unit_cell'
#> Its sides are:
#>       10.000 ,     10.000 ,     10.000    angstroms.
#> Its angles are:
#>       90.000 ,     90.000 ,     90.000    degrees.