Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 39424a4

Browse files
committed
fix #48
1 parent 749610b commit 39424a4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tilde/core/symmetry.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# *SymmetryFinder*: platform-independent symmetry finder, wrapping Spglib code
3-
# *SymmetryHandler*: symmetry inferences for 0D, 1D, 2D and 3D-systems
3+
# *SymmetryHandler*: symmetry inferences for 0D-, 1D-, 2D- and 3D-systems
44
# Author: Evgeny Blokhin
5-
# v021215
5+
# v080416
66

77
import os, sys
88

@@ -71,20 +71,22 @@ def __init__(self, tilde_obj, accuracy=None):
7171
SymmetryFinder.__init__(self, accuracy)
7272
SymmetryFinder.get_spacegroup(self, tilde_obj)
7373

74-
# Tables from Bandura-Evarestov book
75-
# "Non-emp calculations of crystals", 2004, ISBN 5-288-03401-X
74+
# Data below are taken from Table 2.3 of the book
75+
# Robert A. Evarestov, Quantum Chemistry of Solids,
76+
# LCAO Treatment of Crystals and Nanostructures, 2nd Edition,
77+
# Springer, 2012, http://dx.doi.org/10.1007/978-3-642-30356-2
78+
# NB 7 crystal systems != 7 lattice systems
7679

77-
# space group 2 crystal system
78-
# TODO: only for 3d systems
80+
# space group to crystal system conversion
7981
if 195 <= self.n <= 230: self.symmetry = 'cubic'
8082
elif 168 <= self.n <= 194: self.symmetry = 'hexagonal'
81-
elif 143 <= self.n <= 167: self.symmetry = 'rhombohedral'
83+
elif 143 <= self.n <= 167: self.symmetry = 'trigonal'
8284
elif 75 <= self.n <= 142: self.symmetry = 'tetragonal'
8385
elif 16 <= self.n <= 74: self.symmetry = 'orthorhombic'
8486
elif 3 <= self.n <= 15: self.symmetry = 'monoclinic'
8587
elif 1 <= self.n <= 2: self.symmetry = 'triclinic'
8688

87-
# space group 2 point group
89+
# space group to point group conversion
8890
if 221 <= self.n <= 230: self.pg = 'O<sub>h</sub>'
8991
elif 215 <= self.n <= 220: self.pg = 'T<sub>d</sub>'
9092
elif 207 <= self.n <= 214: self.pg = 'O'
@@ -118,7 +120,7 @@ def __init__(self, tilde_obj, accuracy=None):
118120
elif self.n == 2: self.pg = 'C<sub>i</sub>'
119121
elif self.n == 1: self.pg = 'C<sub>1</sub>'
120122

121-
# space group 2 layer group
123+
# space group to layer group conversion
122124
if tilde_obj.structures[-1].periodicity == 2:
123125
if self.n in [25, 26, 28, 51]:
124126
tilde_obj.warning('Warning! Diperiodical group setting is undefined!')

0 commit comments

Comments
 (0)