[cig-commits] [commit] master: Add getters for enthalpy and entropy (88ccc04)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 15:48:43 PST 2014
Repository : https://github.com/geodynamics/burnman
On branch : master
Link : https://github.com/geodynamics/burnman/compare/e7f78ff83a8092bc07fea4398232e73406e7cbbb...6111717707e0bd07c31d999c20c7a56db163ff48
>---------------------------------------------------------------
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