You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added PoreSpecification enum to specify the state of the fluid in the pore (currently chemical potential or moles). #371
Added the Grid and PoreProfile classes as entry points to DFT in various coordinate systems in Python. #376
PoreProfile.solver_log now stores a timing profile of the different solver steps. #385
Added Interface::curved to calculate cylindrical and spherical interfaces from a planar interface. #387
Added drho_dn and drho_dt_n to DFT profiles to calculate derivatives of density profiles at constant number of particles. #403
Added the association functionals of Yu and Wu, WDA, and iSAFT with the fractions of non-bonded sites as additional variables of the density profile. The version is selected with AssociationVersion (default iSAFT). #403
Added non_bonded_fractions to DFT profiles to access the fractions of non-bonded association sites. #403
Added the experimental-inspect feature to py-feos, which embeds introspection data for automatic type stub generation (e.g. via pyo3-introspection or maturin generate-stubs). #410
Exported the ThreePhaseEquilibrium class (returned by PhaseEquilibrium.heteroazeotrope) from the Python module. #410
Changed
Removed most heap allocations from the evaluation of the residual Helmholtz energy of PC-SAFT. #397
ResidualDyn::for_each_contribution and Residual::for_each_contribution, which pass each Helmholtz energy contribution to a closure, are now the only methods a model has to implement to evaluate the Helmholtz energy. Residual::reduced_residual_helmholtz_energy_density and Residual::reduced_helmholtz_energy_density_contributions are provided methods built on top of it, and both methods were removed from ResidualDyn. #397
HelmholtzEnergyFunctional::evaluate_bulk passes each contribution to a closure instead of returning a Vec. #397
MonomerShape::NonSpherical holds a reference &DVector<f64> to the segment numbers instead of an owned DVector<D>. #397
StateHD::new_density takes the partial densities by value. #397
Changed data type of initial temperatures or pressure for phase equilibrium calculations (TemperatureOrPressure::Other) from D to f64. #369
Reworked DFT solution algorithms slightly for the cases in which additional specifications are given. #371
External potentials are passed and returned as quantities (energies) instead of reduced units. #372
Merged the Adsorption1D and Adsorption3D classes in Python into Adsorption using dynamically dimensioned arrays. #376
If the rayon feature is activated (default for the released Python wheels), the evaluation of the helmholtz energy density and its derivatives will now be run in parallel. The number of CPUs can be set via the global rayon threadpool (see changelog for 0.9.5) #385
Renamed PlanarInterface to Interface and its constructors from_tanh and from_pdgt to planar_from_tanh and planar_from_pdgt. #387
Replaced PlanarInterface.from_density_profile in Python with the Interface(grid, vle, density) constructor in analogy to PoreProfile. #387
drho_dp, dn_dp, drho_dt, and dn_dt of DFT profiles now take the bulk state as an argument (methods instead of properties in Python). #387
Renamed drho_dt and dn_dt of DFT profiles to drho_dt_p and dn_dt_p (derivatives at constant pressure and bulk composition). #403
The candidates of the stability analysis are sorted by their tangent plane distance. Trial phases whose minimization fails are skipped (or kept, if their tangent plane distance is already negative) instead of aborting the stability analysis. #405
Anderson mixing stores the scalar products of earlier residuals instead of recalculating them in every iteration. #408
The Newton solver is now the default solver for DFT (previously Anderson mixing). It always iterates the logarithms of the density profiles (and of the fractions of non-bonded sites), so the log argument of DFTSolver.newton is removed. Jacobian-vector products are calculated exactly from the linearized residual, and the step size is controlled by a line search. #403
Renamed Verbosity::None to Verbosity::Silent (Verbosity.None to Verbosity.Silent in Python), because None is not a valid attribute name in Python syntax or type stubs, and is easily confused with Option::None in Rust. #410
Declared the Python module as an inline Rust module (required for stub generation) and removed the hand-written text_signatures, which were partly outdated, in favor of the signatures generated by PyO3. #410
State.critical_point_binary raises a ValueError instead of a RuntimeError if temperature_or_pressure has the wrong units, consistent with all other functions that accept a temperature or a pressure. #410
Arguments that accept several Python types (compositions, temperatures or pressures, ...) are typed, so that they are properly annotated in the generated type stubs. #410
Removed
Removed the DFTSpecification trait in favor of only using the DFTSpecification enum (renamed from DFTSpecifications). #371
Removed the Pore2D and Pore3D interfaces including the (limited) calculation of external potentials for complex pore grometries. #376
Removed the free energy-averaged external (FEA) potential. #376
Removed predictive density gradient theory (pDGT) including Interface::planar_from_pdgt. Interfaces are initialized with Interface::planar_from_tanh. #403
Removed the association functional of Yu and Wu as functional contribution (YuWuAssociationFunctional). Association in DFT is now handled by SaftAssociationFunctional with the fractions of non-bonded sites as additional variables. #403
Fixed
The Newton solver for cDFT now correctly handles specifications other than the chemical potential. #384
Packaging
Removed the gauss-quad dependency which was only used in the FEA potential calculation. #376
Updated pyo3, pythonize and numpy dependencies to 0.30. #410
Updated quantity and num-dual dependencies to 0.16. #380, #410
Removed the unused conv dependency of py-feos. #411
Made csv an optional dependency of feos-core that is only activated with the ndarray feature (required for the ad::dataset module). #411