calculate_cell_volume.unit_cell: Volume of a unit cell (in angstroms^3)

Description Usage Arguments Value Examples

View source: R/cell_S3.R

Description

Method of the S3 generic class "calculate_cell_volume", to calculate the volume, in cubic angstroms, of the unit cell corresponding to the input object of class "unit_cell".

Usage

1
2
## S3 method for class 'unit_cell'
calculate_cell_volume(x, ...)

Arguments

x

An object of class "unit_cell".

...

Additional arguments passed to the calculate_cell_volume methods

Value

A positive numeric, the volume in cubic angstroms of the unit cell corresponding to the input.

Examples

1
2
3
4
5
6
7
# Create a monoclinic cell
bt <- bravais("mP")
uc <- create_unit_cell(bt)
print(uc)

# Calculate cell volume
calculate_cell_volume(uc)

cry documentation built on May 3, 2021, 9:06 a.m.