From 361973819e924c8ada3fa6a3f498071b68016944 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 20 Apr 2026 21:28:27 -0400 Subject: [PATCH] Remove unneeded code and add improved comment --- src/mixtures/gas_mixture.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/mixtures/gas_mixture.rs b/src/mixtures/gas_mixture.rs index 48cb287..3d98367 100644 --- a/src/mixtures/gas_mixture.rs +++ b/src/mixtures/gas_mixture.rs @@ -22,6 +22,9 @@ pub struct GasMixture { } impl MixtureComponent { + // µ/RT for the current mixture component at fixed temp and pressure + // µ = Molar Gibbs free energy = H - TS + // Therefore µ/RT = H/RT - S/R pub fn chem_potential_over_rt(&self, temp: f64, pressure: f64, nsum: f64) -> f64 { match self.s.phase { Phase::Gas => { @@ -49,19 +52,6 @@ impl MixtureComponent { Phase::Condensed => todo!(), } } - - pub fn h_over_rt(&self, temp: f64) -> f64 { - match self.s.phase { - Phase::Gas => { - let p = self - .s - .polynomial_at(temp) - .expect("Gas doesn't have a polynomial"); - self.n * p.h_over_rt(temp) - } - Phase::Condensed => todo!(), - } - } } impl GasMixture {