Skip to content

Commit

Permalink
add error message, if ideal gas properties are calculated for homoseg…
Browse files Browse the repository at this point in the history
…mented chains
  • Loading branch information
prehner committed Dec 10, 2024
1 parent 12bc673 commit 9857203
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions feos-dft/src/adsorption/pore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ where
&self,
temperature: N,
) -> Array1<N> {
if self.profile.dft.m().iter().any(|&m| m != 1.0) {
panic!("Henry coefficients can only be calculated for spherical and heterosegmented molecules!")
};
let pot = self.profile.external_potential.mapv(N::from)
* self.profile.temperature.to_reduced()
/ temperature;
Expand Down

0 comments on commit 9857203

Please sign in to comment.