forked from Auto-Mech/autochem
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phycon units; ljparam combine; min-vol geo routine
- Loading branch information
Kevin Moore
authored and
Kevin Moore
committed
Jun 1, 2021
1 parent
bc7cd6f
commit b3ae5b4
Showing
6 changed files
with
123 additions
and
17 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
""" Use combining rules to generate energy transfer parameters for A+A | ||
interactions when what you have are A+B and B+B. This is because A+A | ||
parameters are often used to represent energy transfer in mechanisms. | ||
""" | ||
|
||
|
||
def epsilon(ab_eps, bb_eps): | ||
""" Perform combining rule to get A+A epsilon parameter. | ||
Output units are whatever those are of the input parameters. | ||
:param ab_eps: A+B epsilon parameter | ||
:type ab_eps: float | ||
:param ab_eps: B+B epsilon parameter | ||
:type ab_eps: float | ||
:rtype: float | ||
""" | ||
|
||
if ab_eps is not None and bb_eps is not None: | ||
aa_eps = ab_eps**2 / bb_eps | ||
else: | ||
aa_eps = None | ||
|
||
return aa_eps | ||
|
||
|
||
def sigma(ab_sig, bb_sig): | ||
""" Perform combining rule to get A+A sigma parameter. | ||
Output units are whatever those are of the input parameters. | ||
:param ab_sig: A+B sigma parameter | ||
:type ab_sig: float | ||
:param ab_sig: B+B sigma parameter | ||
:type ab_sig: float | ||
:rtype: float | ||
""" | ||
|
||
if ab_sig is not None and bb_sig is not None: | ||
aa_sig = 2.0 * ab_sig - bb_sig | ||
else: | ||
aa_sig = None | ||
|
||
return aa_sig |
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
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
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
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