Skip to content

Commit 89f81f7

Browse files
authored
Fix isothermal compressibility calculation (#342)
* Fix isothermal compressibility calculation Comment includes negative sign, calculation doesn't. Results in negative values for the calculation of isothermal_compressibility(). * CHANGELOG updated
1 parent 07b70ab commit 89f81f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88
### Changed
99
- Automatically detect VLLEs in `BinaryPhaseDiagram`. [#341](https://github.com/feos-org/feos/pull/341)
10+
- Correct missing minus sign for `isothermal_compressibility`. [#342](https://github.com/feos-org/feos/pull/342)
1011

1112
## [0.9.3] - 2026-01-26
1213
### Added

crates/feos-core/src/state/residual_properties.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ where
272272

273273
/// Isothermal compressibility: $\kappa_T=-\frac{1}{V}\left(\frac{\partial V}{\partial p}\right)_{T,N_i}$
274274
pub fn isothermal_compressibility(&self) -> InvP<D> {
275-
(self.dp_dv(Contributions::Total) * self.volume).inv()
275+
-(self.dp_dv(Contributions::Total) * self.volume).inv()
276276
}
277277

278278
// entropy derivatives

0 commit comments

Comments
 (0)