Skip to content

Commit 7507264

Browse files
authored
Merge pull request #649 from bobmyhill/merge_bm
merge BM EoSes and rename BM2 as BM3Shear2
2 parents 0fc2c86 + e3a30d7 commit 7507264

20 files changed

+312
-333
lines changed

burnman/calibrants/Decker_1971.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
"""
1010

1111
from burnman.eos.mie_grueneisen_debye import MGDBase
12+
from burnman.eos.birch_murnaghan import pressure_fourth_order
1213
from burnman.classes.calibrant import Calibrant
13-
from burnman.eos.birch_murnaghan_4th import pressure_birch_murnaghan_fourth
1414

1515

1616
class NaCl_B1(Calibrant):
1717
"""
1818
The NaCl (B1 structured) pressure standard reported by
1919
Decker (1971; https://doi.org/10.1063/1.1660714).
2020
21-
.. note:: This calibrant is not exactly the same as that proposed by Decker.
22-
The cold compression curve has here been approximated by a 4th order
23-
Birch-Murnaghan EoS, as described in
21+
.. note:: This calibrant is not exactly the same as that
22+
proposed by Decker. The cold compression curve has here been
23+
approximated by a 4th order Birch-Murnaghan EoS, as described in
2424
Matsui et al. (2012; https://doi.org/10.2138/am.2012.4136).
2525
"""
2626

2727
def __init__(self):
2828
def _pressure_Decker_NaCl(volume, temperature, params):
2929
# Isothermal pressure (GPa)
30-
P0 = pressure_birch_murnaghan_fourth(params["V_0"] / volume, params)
30+
P0 = pressure_fourth_order(params["V_0"] / volume, params)
3131

3232
# Thermal pressure
3333
thermal_model = MGDBase()

burnman/classes/mineral.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ def set_method(self, equation_of_state):
6464
"""
6565
Set the equation of state to be used for this mineral.
6666
Takes a string corresponding to any of the predefined
67-
equations of state: 'bm2', 'bm3', 'mgd2', 'mgd3', 'slb2', 'slb3',
68-
'mt', 'hp_tmt', or 'cork'. Alternatively, you can pass a user defined
69-
class which derives from the equation_of_state base class.
70-
After calling set_method(), any existing derived properties
71-
(e.g., elastic parameters or thermodynamic potentials) will be out
72-
of date, so set_state() will need to be called again.
67+
equations of state: 'bm3shear2', 'bm3', 'mgd2', 'mgd3',
68+
'slb2', 'slb3', 'mt', 'hp_tmt', or 'cork'.
69+
Alternatively, you can pass a user defined class which
70+
derives from the equation_of_state base class. After
71+
calling set_method(), any existing derived properties
72+
(e.g., elastic parameters or thermodynamic potentials)
73+
will be out of date, so set_state() will need to be called again.
7374
"""
7475

7576
if equation_of_state is None:

burnman/eos/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
from .equation_of_state import EquationOfState
1616
from .murnaghan import Murnaghan
17-
from .birch_murnaghan import BM2, BM3
18-
from .birch_murnaghan_4th import BM4
17+
from .birch_murnaghan import BM3Shear2, BM3, BM4
1918
from .mie_grueneisen_debye import MGD2, MGD3
2019
from .slb import SLB2, SLB3, SLB3Conductive
2120
from .modified_tait import MT

0 commit comments

Comments
 (0)