Skip to contents

This method is an alternative call to "unit_cell" .

Usage

# S3 method for default
create_unit_cell(
  a = NULL,
  b = NULL,
  c = NULL,
  aa = NULL,
  bb = NULL,
  cc = NULL,
  ...
)

Arguments

a

A real number. One of the unit cell's side lengths, in angstroms.

b

A real number. One of the unit cell's side lengths, in angstroms.

c

A real number. One of the unit cell's side lengths, in angstroms.

aa

A real number. One of the unit cell's angles, in degrees.

bb

A real number. One of the unit cell's angles, in degrees.

cc

A real number. One of the unit cell's angles, in degrees.

...

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.

See also

Examples

# Create a cubic cell with side 50
uc <- create_unit_cell(50)
print(uc)
#> This is an object of class 'unit_cell'
#> Its sides are:
#>       50.000 ,     50.000 ,     50.000    angstroms.
#> Its angles are:
#>       90.000 ,     90.000 ,     90.000    degrees.