@chemistry/space-groups
v2.9.0
Published
List of space groups with symetry codes
Downloads
11
Maintainers
Readme
@chemistry/space-groups
Crystallography: Space Groups Dictionary
Install
npm install @chemistry/space-groups
Getting started:
SpaceGroupData
import { SpaceGroupData } from '@chemistry/space-groups';
/*
id: Space Group number
hm: Hermann Mauguin Symbol
hs: Hall Symbol
o: Representative Operations
s: Symetry List
*/
const sg = SpaceGroupData[2];
// -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
console.log(sg);
SpaceGroup
import { SpaceGroup } from '@chemistry/space-groups';
const sg = SpaceGroup.getByHMName('P -1');
console.log(sg);
// -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
console.log(SpaceGroup.getCrystalSystem(sg));
// -> Triclinic
Commands:
- Build project:
npm run build