[cig-commits] [commit] add_thermodynamic_potentials: Added comment for origin of formula in benchmark (ca069d7)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue Dec 9 09:56:22 PST 2014


Repository : https://github.com/geodynamics/burnman

On branch  : add_thermodynamic_potentials
Link       : https://github.com/geodynamics/burnman/compare/2e5646d93cedbbf8eae54cc37cffc14e0aa85180...d5ddad03ff9f30f5a4efaddb4e3ec585ea1a7c51

>---------------------------------------------------------------

commit ca069d78eb3cfc80effa325c7de03cf60680f5b5
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Thu Sep 4 00:17:11 2014 +0200

    Added comment for origin of formula in benchmark


>---------------------------------------------------------------

ca069d78eb3cfc80effa325c7de03cf60680f5b5
 solidsolution_benchmarks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solidsolution_benchmarks.py b/solidsolution_benchmarks.py
index 3b9deb2..f254a85 100644
--- a/solidsolution_benchmarks.py
+++ b/solidsolution_benchmarks.py
@@ -56,11 +56,11 @@ for i,c in enumerate(comp):
         sp.set_composition( np.array(molar_fractions) )
         sp.set_state( 1e5, 298.15 )
         sp_entropies[i] = sp.solution_model.configurational_entropy( molar_fractions )
-        sp_S[i] = -8.3145*(c*np.log(c) + (1.-c)*np.log(1.-c) + c*np.log(c/2.) + (2.-c)*np.log(1.-c/2.))
+        sp_entropies_NK1967[i] = -8.3145*(c*np.log(c) + (1.-c)*np.log(1.-c) + c*np.log(c/2.) + (2.-c)*np.log(1.-c/2.)) # eq. 7 in Navrotsky and Kleppa, 1967.
 
 #fig1 = mpimg.imread('configurational_entropy.png')  # Uncomment these two lines if you want to overlay the plot on a screengrab from SLB2011
 #plt.imshow(fig1, extent=[0.0, 1.0,0.,17.0], aspect='auto')
-plt.plot( comp, sp_S, 'b-', linewidth=3.)
+plt.plot( comp, sp_entropies_NK1967, 'b-', linewidth=3.)
 plt.plot( comp, sp_entropies, 'r--', linewidth=3.)
 plt.xlim(0.0,1.0)
 plt.ylim(0.,17.0)



More information about the CIG-COMMITS mailing list