Skip to content

Commit

Permalink
Printing PMV integrals
Browse files Browse the repository at this point in the history
The integrals for the PMV densities are incorrect. Need to evaluate further.
  • Loading branch information
2AUK committed Nov 7, 2023
1 parent e63053f commit d5c7c53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyrism/tests/test_thermo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pyrism.rism_ctrl import *
from pyrism import rust_helpers
import matplotlib.pyplot as plt

mol = RismController("../data/cSPCE_DRISM_methane.toml")
Expand Down
6 changes: 6 additions & 0 deletions src/thermodynamics/thermo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ impl<'a> TDDriver<'a> {
let sfe = SFEs::new(&sfed, pressure, rism_kb_pmv, grid.dr);
let temperature = self.solutions.config.data_config.temp;

println!(
"1: {}\n2: {}",
SFEs::integrate(&self.rism_kb_partial_molar_volume_density(), grid.dr),
SFEs::integrate(&self.rism_kb_partial_molar_volume_density_2(), grid.dr)
);

Thermodynamics {
temperature,
total_density,
Expand Down

0 comments on commit d5c7c53

Please sign in to comment.