Skip to content

Commit

Permalink
Merge pull request #589 from bobmyhill/refactor_slb
Browse files Browse the repository at this point in the history
Add SLB2024 dataset
  • Loading branch information
bobmyhill authored May 25, 2024
2 parents 2bea808 + bd1aee6 commit 8901296
Show file tree
Hide file tree
Showing 28 changed files with 4,239 additions and 92 deletions.
10 changes: 8 additions & 2 deletions burnman/classes/solutionmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _non_ideal_interactions_subreg(p, n_endmembers, Wijk):
return Wint


def logish(x, eps=1.0e-5):
def logish(x, eps=1.0e-7):
"""
2nd order series expansion of log(x) about eps:
log(eps) - sum_k=1^infty (f_eps)^k / k
Expand Down Expand Up @@ -434,7 +434,13 @@ def __init__(self, endmembers):
def _calculate_endmember_configurational_entropies(self):
S_conf = -(
constants.gas_constant
* (self.endmember_noccupancies * logish(self.endmember_occupancies)).sum(-1)
* (
self.endmember_noccupancies
* (
logish(self.endmember_noccupancies)
- logish(self.site_multiplicities)
)
).sum(-1)
)
self.endmember_configurational_entropies = S_conf

Expand Down
Loading

0 comments on commit 8901296

Please sign in to comment.