calculate_cell_volume.rec_unit_cell: Volume of a reciprocal unit cell (in angstroms^(-3))

View source: R/cell_S3.R

calculate_cell_volume.rec_unit_cellR Documentation

Volume of a reciprocal unit cell (in angstroms^(-3))

Description

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

Usage

## S3 method for class 'rec_unit_cell'
calculate_cell_volume(x, ...)

Arguments

x

An object of class "rec_unit_cell".

...

Additional arguments passed to the calculate_cell_volume methods

Value

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

Examples

# Create a monoclinic cell and the corresponding reciprocal
bt <- bravais("mP")
uc <- create_unit_cell(bt)
ruc <- create_rec_unit_cell(uc)

# Calculate reciprocall cell volume
calculate_cell_volume(ruc)


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