Skip to content

Commit

Permalink
Merge pull request #580 from bobmyhill/reuss2
Browse files Browse the repository at this point in the history
replace K_T
  • Loading branch information
bobmyhill committed Mar 24, 2024
2 parents 5d5e81d + 371a7ae commit 6bd19b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions burnman/classes/anisotropicmineral.py
Expand Up @@ -265,10 +265,10 @@ def set_state(self, pressure, temperature):

self.isotropic_mineral.set_state(pressure, temperature)
V2 = self.isotropic_mineral.V
KT2 = self.isotropic_mineral.K_T
KT2 = self.isotropic_mineral.isothermal_bulk_modulus_reuss
self.isotropic_mineral.set_state_with_volume(V2, self.params["T_0"])
P1 = self.isotropic_mineral.pressure
KT1 = self.isotropic_mineral.K_T
KT1 = self.isotropic_mineral.isothermal_bulk_modulus_reuss
self.dPthdf = KT1 - KT2
self.Pth = pressure - P1

Expand Down
4 changes: 2 additions & 2 deletions burnman/optimize/eos_fitting.py
Expand Up @@ -78,7 +78,7 @@ def normal(self, x, flag):

if flag == "V":
self.m.set_state(P, T)
dPdp = -self.m.K_T / self.m.V
dPdp = -self.m.isothermal_bulk_modulus_reuss / self.m.V
dpdT = self.m.alpha * self.m.V
elif flag == "H":
self.m.set_state(P, T)
Expand Down Expand Up @@ -411,7 +411,7 @@ def normal(self, x, flag):

if flag == "V":
self.m.set_state(P, T)
dPdp = -self.m.K_T / self.m.V
dPdp = -self.m.isothermal_bulk_modulus_reuss / self.m.V
dpdT = self.m.alpha * self.m.V
elif flag == "H":
self.m.set_state(P, T)
Expand Down
4 changes: 3 additions & 1 deletion burnman/tools/equilibration.py
Expand Up @@ -318,7 +318,9 @@ def jacobian(x, assemblage, equality_constraints, reduced_free_composition_vecto
elif type_c == "V": # dV/dx
# dV/dP = -V/K_T, dV/dT = aV
jacobian[ic, 0:2] = [
-assemblage.n_moles * assemblage.molar_volume / assemblage.K_T,
-assemblage.n_moles
* assemblage.molar_volume
/ assemblage.isothermal_bulk_modulus_reuss,
assemblage.n_moles * assemblage.molar_volume,
]
j = 2
Expand Down

0 comments on commit 6bd19b0

Please sign in to comment.