Volume of a unit cell (in angstroms^3)
calculate_cell_volume.unit_cell.Rd
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
# S3 method for 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
# Create a monoclinic cell
bt <- bravais("mP")
uc <- create_unit_cell(bt)
print(uc)
#> This is an object of class 'unit_cell'
#> Its sides are:
#> 30.000 , 80.000 , 100.000 angstroms.
#> Its angles are:
#> 90.000 , 125.000 , 90.000 degrees.
# Calculate cell volume
calculate_cell_volume(uc)
#> [1] 196596.5