-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing library included
- Loading branch information
Showing
1 changed file
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
E-mail: [email protected], [email protected] | ||
""" | ||
from spglib import spglib | ||
from read_input import indict | ||
|
||
|
||
def findspg(atoms): | ||
spg0 = spglib.get_spacegroup(atoms, symprec=0.1) | ||
if spg0: | ||
|
@@ -30,24 +30,29 @@ def findspg(atoms): | |
|
||
|
||
def find_crystal_system(pos_conv, dimensional,tubestrain_type): | ||
|
||
if dimensional == '1D': | ||
# latt_system = 'any1D' | ||
|
||
latt_system = 'any1D' # Default value | ||
dist_acc = 0.1 | ||
lenth_angl = pos_conv.get_cell_lengths_and_angles() | ||
a = lenth_angl[0] | ||
b = lenth_angl[1] | ||
c = lenth_angl[2] | ||
# print('These are the lattice constants ', a, b, c) | ||
# The 1D lattice system is defined according to their spatial | ||
# configuration | ||
if tubestrain_type == "Longitudinal": | ||
latt_system = 'any1D' # This is 1D embedded in 3D space | ||
elif tubestrain_type == "Generalized": | ||
|
||
|
||
if tubestrain_type == "Generalized": | ||
latt_system = 'Nanotube' # This is 1D embedded in 3D space | ||
|
||
elif tubestrain_type == "AxialShear": | ||
latt_system = 'AxialShear' | ||
|
||
elif tubestrain_type == "AxialLite": | ||
latt_system = 'any1D' | ||
elif tubestrain_type == "Axial": | ||
latt_system = 'Axial' | ||
else: | ||
print('ERROR: Define appropriate nanotube structure!!!\n') | ||
#latt_system = 'any1D' # This is a "pure" 1D system | ||
|
||
|
||
elif dimensional == '2D': | ||
dist_acc = 0.1 | ||
|
@@ -59,8 +64,7 @@ def find_crystal_system(pos_conv, dimensional,tubestrain_type): | |
c = lenth_angl[2] | ||
gamma = lenth_angl[5] | ||
|
||
# The 2D lattice system is defined according to 2D Mater. 6 (2019) | ||
# 048001 | ||
# The 2D lattice system is defined according to 2D Mater. 6 (2019) 048001 | ||
if c > a and c > b: | ||
if abs(a - b) <= dist_acc: | ||
if abs( | ||
|