Skip to content

Commit

Permalink
checkconv()
Browse files Browse the repository at this point in the history
the searching molecule around hole function is done, checked by
outputing output structure, works well
  • Loading branch information
Alfred Liu committed Aug 18, 2019
1 parent 28433a2 commit ea742e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Binary file modified data/dba/.DS_Store
Binary file not shown.
Binary file modified dbaAutomator/__pycache__/core.cpython-37.pyc
Binary file not shown.
11 changes: 4 additions & 7 deletions dbaAutomator/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def prep(self, filepath):
self.mpc = getMPC(supercell, self.fineGrid, self.molslist)
print('The closest distance between molecular center of masses is:', "{:0.2f}".format(self.intermoldist))

def checkconv(self, convThreshold=0.05, edgeDistMul=1.0, molDistMul=1.0):
def checkconv(self, convThreshold=0.05, edgeDist=1.0, molDistMul=1.0):
start_time = time.time()
print('Checking the convergence for founded exciton wavefunction calculations...')
# need to get the index for the cube file edge fragments
Expand All @@ -163,13 +163,10 @@ def checkconv(self, convThreshold=0.05, edgeDistMul=1.0, molDistMul=1.0):
os.chdir(name)
print()
print('Now check folder:', name)
# print('Loading ACF.dat...')
print('Loading ACF.dat and cube file...')
self.boxedgeAindex, self.boxedgeBindex, self.boxedgeCindex = getBoxEdgeIndex(supercell, self.fineGrid, boxedgeDist=edgeDistMul)
print('Loading ACF.dat...')
# now get the edge spacek index and charge first
self.boxedgeAindex, self.boxedgeBindex, self.boxedgeCindex = getBoxEdgeIndex(supercell, self.fineGrid, boxedgeDist=edgeDist)
chargematrix = loadChargeMatrix(supercell, name)
# chargedira = getChargeShare(self.edgeAindex, chargematrix)
# chargedirb = getChargeShare(self.edgeBindex, chargematrix)
# chargedirc = getChargeShare(self.edgeCindex, chargematrix)
chargedira = getChargeShare(self.boxedgeAindex, chargematrix)
chargedirb = getChargeShare(self.boxedgeBindex, chargematrix)
chargedirc = getChargeShare(self.boxedgeCindex, chargematrix)
Expand Down

0 comments on commit ea742e2

Please sign in to comment.