@@ -30,18 +30,29 @@ def decorator(fn):
3030class ModularMGD (eos .EquationOfState ):
3131 """
3232 Base class for a modular Mie-Grueneisen-Debye equation of state.
33- The user must provide the following parameters in the params dictionary:
34- - V_0: reference volume [m^3]
35- - T_0: reference temperature [K]
36- - n: number of formula units in the mineral
37- - molar_mass: molar mass of the mineral [kg/mol]
38- The params dictionary must also contain the following
39- - reference_eos: an instance of an equation of state that gas methods
40- for pressure, isothermal bulk modulus, and Gibbs energy.
41- - debye_temperature_model: an instance of a class that provides
42- the Debye temperature as a function of relative volume from method "__call__",
43- and its first and second derivatives with respect to relative volume
44- from methods "dVrel" and "d2dVrel2", respectively.
33+
34+ Parameters
35+ ----------
36+ params : dict
37+ Dictionary of parameters. Must contain all the parameters needed by
38+ the reference EoS and Debye temperature model, parameters for
39+ the electronic and anharmonic contributions (if necessary), plus:
40+
41+ V_0 : float
42+ Reference volume [m^3].
43+ T_0 : float
44+ Reference temperature [K].
45+ n : int
46+ Number of formula units in the mineral.
47+ molar_mass : float
48+ Molar mass of the mineral [kg/mol].
49+ reference_eos : EquationOfState
50+ Instance of an equation of state that has methods for pressure,
51+ isothermal bulk modulus, and Gibbs energy.
52+ debye_temperature_model : callable
53+ An instance providing the Debye temperature as a function of relative
54+ volume via ``__call__``, and its first and second derivatives with
55+ respect to relative volume via ``dVrel`` and ``d2dVrel2``.
4556 """
4657
4758 def volume (self , pressure , temperature , params ):
0 commit comments