Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add error message, if ideal gas properties are calculated for homoseg…
…mented chains
  • Loading branch information
prehner committed Dec 10, 2024
commit 9857203b8030fc237eec8d454eec33d882b261e7
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