Skip to content

Commit

Permalink
Merge pull request #78 from ReactionMechanismGenerator/incons_az
Browse files Browse the repository at this point in the history
Changed rotor inconsistency_ab
  • Loading branch information
alongd authored Mar 5, 2019
2 parents ca0a264 + ac05f5c commit 4c0d38b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,9 @@ def check_scan_job(self, label, job):
# initial and final points differ by more than `inconsistency_az` kJ/mol.
# seems like this rotor broke the conformer. Invalidate
error_message = 'Rotor scan of {label} between pivots {pivots} is inconsistent by more' \
' than {inconsistency} kJ/mol between initial and final positions.' \
' than {incons_az} kJ/mol between initial and final positions.' \
' Invalidating rotor.\nv_list[0] = {v0}, v_list[-1] = {vneg1}'.format(
label=label, pivots=job.pivots, inconsistency=inconsistency_az,
label=label, pivots=job.pivots, incons_az=inconsistency_az,
v0=v_list[0], vneg1=v_list[-1])
logging.error(error_message)
message += error_message + '; '
Expand All @@ -965,13 +965,13 @@ def check_scan_job(self, label, job):
if not invalidate:
v_last = v_list[-1]
for v in v_list:
if abs(v - v_last) > inconsistency_ab:
if abs(v - v_last) > inconsistency_ab * max(v_list):
# Two consecutive points on the scan differ by more than `inconsistency_ab` kJ/mol.
# This is a serious inconsistency. Invalidate
error_message = 'Rotor scan of {label} between pivots {pivots} is inconsistent by' \
'more than {inconsistency} kJ/mol between two consecutive points.' \
'more than {incons_ab} kJ/mol between two consecutive points.' \
' Invalidating rotor.'.format(label=label, pivots=job.pivots,
inconsistency=inconsistency_ab)
incons_ab=inconsistency_ab * max(v_list))
logging.error(error_message)
message += error_message + '; '
invalidate = True
Expand Down
9 changes: 5 additions & 4 deletions arc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
rotor_scan_resolution = 8.0 # degrees. Default: 8.0

# rotor validation parameters
inconsistency_az = 5 # maximum allowed inconsistency (kJ/mol) between initial and final rotor scan points. Default: 5
inconsistency_ab = 10 # maximum allowed inconsistency (kJ/mol) between consecutive points in the scan. Default: 10
maximum_barrier = 40 # a rotor threshold (kJ/mol) above which the rotor is not considered. Default: 40 (~10 kcal/mol)
minimum_barrier = 0.5 # a rotor threshold (kJ/mol) below which it is considered a FreeRotor. Default: 0.5 kJ/mol
inconsistency_az = 5 # maximum allowed inconsistency (kJ/mol) between initial and final rotor scan points. Default: 5
inconsistency_ab = 0.5 # maximum allowed inconsistency between consecutive points in the scan given as a fraction
# of the maximum scan energy. Default: 50%
maximum_barrier = 40 # a rotor threshold (kJ/mol) above which the rotor is not considered. Default: 40 (~10 kcal/mol)
minimum_barrier = 0.5 # a rotor threshold (kJ/mol) below which it is considered a FreeRotor. Default: 0.5 kJ/mol

0 comments on commit 4c0d38b

Please sign in to comment.