symm_to_cell_const: Cell parameter constrains from symmetry

Description Usage Arguments Details Value Examples

View source: R/symmetry.R

Description

This function returns a set of constrains, as string character expressions, imposed by the specific symmetry group on the given unit cell.

Usage

1

Arguments

SG

A character string indicating the extended Hermann-Mauguin symbol for the space group.

Details

Space group symmetry imposes certain constraints on the values that unit cell parameters can take. For example, the symmetry represented by the monoclinic space group of extended Hermann-Mauguin symbol "P 1 2 1" is compatible with a unit cell in which alpha=gamma=90.

There is just a handful of constrains for unit cells. Here they are indicated with the following set of specific strings:

Value

vcons A character vector. Each component is a string, like 'alpha=90' or 'a=b', that describes the type of constrain to be applied to a unit cell of a crystal structure with given space group symmetry (see above).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# P 1 1 2 (group number 3) corresponds to setting 2
SG <- translate_SG(3,set=2)

# Constrains for this symmetry
stmp <- symm_to_cell_const(SG)
print(stmp)

# R 3 (rombohedral setting)
stmp <- symm_to_cell_const("R 3 :R")
print(stmp)

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