From 5ceb67a432c2cc4ae4cf299aea91370c1c045de5 Mon Sep 17 00:00:00 2001 From: Gernot Bauer Date: Mon, 26 Feb 2024 11:27:36 +0100 Subject: [PATCH] Removed unchanged notebooks, pub keyword in density_iteration and added docs for methods in IdealGas trait. --- feos-core/src/density_iteration.rs | 2 +- feos-core/src/equation_of_state/ideal_gas.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/feos-core/src/density_iteration.rs b/feos-core/src/density_iteration.rs index d8aa91ef1..f8c81cafd 100644 --- a/feos-core/src/density_iteration.rs +++ b/feos-core/src/density_iteration.rs @@ -135,7 +135,7 @@ pub fn density_iteration( } } -pub(crate) fn pressure_spinodal( +fn pressure_spinodal( eos: &Arc, temperature: Temperature, rho_init: Density, diff --git a/feos-core/src/equation_of_state/ideal_gas.rs b/feos-core/src/equation_of_state/ideal_gas.rs index 116c8ee11..a7c4f52d6 100644 --- a/feos-core/src/equation_of_state/ideal_gas.rs +++ b/feos-core/src/equation_of_state/ideal_gas.rs @@ -5,15 +5,15 @@ use num_dual::DualNum; /// Ideal gas Helmholtz energy contribution. pub trait IdealGas: Components + Sync + Send { + /// Implementation of an ideal gas model in terms of the + /// logarithm of the cubic thermal de Broglie wavelength + /// in units ln(A³) for each component in the system. fn ln_lambda3 + Copy>(&self, temperature: D) -> Array1; + /// Short description (usually the name) of the model. fn ideal_gas_model(&self) -> String; /// Evaluate the ideal gas Helmholtz energy contribution for a given state. - /// - /// In some cases it could be advantageous to overwrite this - /// implementation instead of implementing the de Broglie - /// wavelength. fn ideal_gas_helmholtz_energy + Copy>(&self, state: &StateHD) -> D { let ln_lambda3 = self.ln_lambda3(state.temperature); ((ln_lambda3