[cig-commits] [commit] inversion, master, validate_MT_params: Add getters for enthalpy and entropy (88ccc04)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Dec 12 18:28:46 PST 2014


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

On branches: inversion,master,validate_MT_params
Link       : https://github.com/geodynamics/burnman/compare/80c2a295c42dfdb38f83f6c1334bf7d8f97a8463...409647ff05dfad6a686198cac1481bd46b5e2e62

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

commit 88ccc04a1186412b9bc0235e85ca66398caa331c
Author: ian-r-rose <ian.r.rose at gmail.com>
Date:   Fri Dec 12 14:22:53 2014 -0800

    Add getters for enthalpy and entropy


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

88ccc04a1186412b9bc0235e85ca66398caa331c
 burnman/mineral.py | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/burnman/mineral.py b/burnman/mineral.py
index c401b68..8c915bb 100644
--- a/burnman/mineral.py
+++ b/burnman/mineral.py
@@ -225,6 +225,18 @@ class Mineral(Material):
 
     def molar_helmholtz(self):
         """
-        Returns Gibbs free energy of the mineral [J]
+        Returns Helmholtz free energy of the mineral [J]
         """
         return self.helmholtz
+
+    def molar_enthalpy(self):
+        """
+        Returns enthalpy of the mineral [J]
+        """
+        return self.H
+
+    def molar_entropy(self):
+        """
+        Returns enthalpy of the mineral [J]
+        """
+        return self.S



More information about the CIG-COMMITS mailing list