Repository navigation
Releases
Releases · feos-org/feos
v0.11.0
Added
- Added
PoreSpecificationenum to specify the state of the fluid in the pore (currently chemical potential or moles). #371 - Added the
GridandPoreProfileclasses as entry points to DFT in various coordinate systems in Python. #376 PoreProfile.solver_lognow stores a timing profile of the different solver steps. #385- Added
Interface::curvedto calculate cylindrical and spherical interfaces from a planar interface. #387 - Added
drho_dnanddrho_dt_nto 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_fractionsto DFT profiles to access the fractions of non-bonded association sites. #403 - Added the
experimental-inspectfeature topy-feos, which embeds introspection data for automatic type stub generation (e.g. viapyo3-introspectionormaturin generate-stubs). #410 - Exported the
ThreePhaseEquilibriumclass (returned byPhaseEquilibrium.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_contributionandResidual::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_densityandResidual::reduced_helmholtz_energy_density_contributionsare provided methods built on top of it, and both methods were removed fromResidualDyn. #397HelmholtzEnergyFunctional::evaluate_bulkpasses each contribution to a closure instead of returning aVec. #397MonomerShape::NonSphericalholds a reference&DVector<f64>to the segment numbers instead of an ownedDVector<D>. #397StateHD::new_densitytakes the partial densities by value. #397- Changed data type of initial temperatures or pressure for phase equilibrium calculations (
TemperatureOrPressure::Other) fromDtof64. #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
Adsorption1DandAdsorption3Dclasses in Python intoAdsorptionusing dynamically dimensioned arrays. #376 - If the
rayonfeature 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 for0.9.5) #385 - Renamed
PlanarInterfacetoInterfaceand its constructorsfrom_tanhandfrom_pdgttoplanar_from_tanhandplanar_from_pdgt. #387 - Replaced
PlanarInterface.from_density_profilein Python with theInterface(grid, vle, density)constructor in analogy toPoreProfile. #387 drho_dp,dn_dp,drho_dt, anddn_dtof DFT profiles now take the bulk state as an argument (methods instead of properties in Python). #387- Renamed
drho_dtanddn_dtof DFT profiles todrho_dt_panddn_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
logargument ofDFTSolver.newtonis removed. Jacobian-vector products are calculated exactly from the linearized residual, and the step size is controlled by a line search. #403 - Renamed
Verbosity::NonetoVerbosity::Silent(Verbosity.NonetoVerbosity.Silentin Python), becauseNoneis not a valid attribute name in Python syntax or type stubs, and is easily confused withOption::Nonein 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_binaryraises aValueErrorinstead of aRuntimeErroriftemperature_or_pressurehas 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
DFTSpecificationtrait in favor of only using theDFTSpecificationenum (renamed fromDFTSpecifications). #371 - Removed the
Pore2DandPore3Dinterfaces 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 withInterface::planar_from_tanh. #403 - Removed the association functional of Yu and Wu as functional contribution (
YuWuAssociationFunctional). Association in DFT is now handled bySaftAssociationFunctionalwith 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-quaddependency which was only used in the FEA potential calculation. #376 - Updated
pyo3,pythonizeandnumpydependencies to 0.30. #410 - Updated
quantityandnum-dualdependencies to 0.16. #380, #410 - Removed the unused
convdependency ofpy-feos. #411 - Made
csvan optional dependency offeos-corethat is only activated with thendarrayfeature (required for thead::datasetmodule). #411 - Updated
rusqlitedependency to 0.43. #411
v0.10.5
Fixed
- Fixed
State::critical_point_binaryat fixed pressure, which evaluated the pressure at the wrong volume and never converged. #402 - Fixed
PhaseEquilibrium::tp_flashwith an initial state returning the previous phase split if only the feed composition changes. #402 - Fixed implicit derivatives in
State::new_nph,new_nps,new_nth,new_nts, andnew_nvubeing lost if the initial guess is already converged. - Fixed
State::residual_chemical_potential_contributionspassing the temperature as molar volume. #402 - Fixed duplicate point in
PhaseDiagram::dew_point_line. #402
v0.10.4
Fixed
- Fixed bug in
_density_iterationwhich used the residual Helmholtz energy as the pressure and the pressure as derivative. #396 - Fixed missing mole fraction factor in
State::thermodynamic_factor. #400 - Fixed
State::henrys_law_constantfor mixed solvents. #400 - Fixed the acceleration in
PhaseEquilibrium::tp_flash(Gibbs energy acceptance criterion not weighted by phase fractions and incomplete K-value history). #400
v0.10.3
v0.10.2
Fixed
- Fixed off-by-one error for the convergence-check in
_density_iteration. #386 - Fixed erroneously transposed jacobian layout in binary association of
PcSaftBinary. #386 - Fixed parsing of binary group/group interaction parameters in gc-PC-SAFT. #389
- Fixed analytic solution of association site fractions for mixture DFT. #391
v0.10.1
v0.10.0
Added
- Extended tp-flash algorithm to static numbers of components and enabled automatic differentiation for binary systems. #336
- Rewrote
PhaseEquilibrium::pure_pto mirrorpure_tand enabled automatic differentiation. #337 - Added
boiling_temperatureto the list of properties for parallel evaluations of gradients. #337 - Added the
Compositiontrait to allow more flexibility in the creation of states and phase equilibria. #330 - Added
PhaseEquilibrium::ph_flashandPhaseEquilibrium::ps_flash. #338 - Added getters for
vapor_phase_fraction,molar_enthalpy,molar_entropy,total_moles,enthalpy, andentropytoPhaseEquilibrium. #338 - Added
PropertyADtrait infeos_core::adwith one struct per property for uniform evaluation with or without parameter derivatives, including parallel variants. #358 - Added
feos_core::ad::datasetmodule withPureDatasetandBinaryDatasettypes, constructible from records, CSV files, or readers, for use in parameter fits. #358 - Exposed
Property,PureDataset, andBinaryDatasetinpy-feos. #358 - Implemented
IdealGasAD<D>forDippr. #357 - Added
PhaseEquilibrium::binary_azeotropethat quickly finds azeotropes in binary mixtures for a given temperature or pressure. #365
Changed
- Removed any assumptions about the total number of moles in a
StateorPhaseEquilibrium. Evaluating extensive properties now returns aResult. #330 - Redesigned the
IdealGastrait and addedIdealGasADin analogy toResidualDynandResidual. #330 - Replaced the
PropertiesADblanket-impl trait with per-propertyPropertyADtypes. #358 - Replaced
ParametersAD::named_derivativeswith abuildconstructor andseed_derivatives(&values, names). #358 - Removed the per-property
*_derivativesfree functions in Python in favour of static methods on the newPropertyclass. #358
Removed
- Removed the
StateBuilderstruct, because it is mostly obsolete with the addition of theCompositiontrait. #330
Packaging
- Updated
quantitydependency to 0.13 and removed thetypenumdependency. #328 - Added
csvas afeos-coredependency for the new dataset module. #358 - Updated
pyo3,pythonizeandnumpydependencies to 0.29. #360 - Updated
quantityandnum-dualdependencies to 0.14. #360 - Updated
nalgebradependency to 0.35. #360 - Updated
gauss-quaddependency to 0.3. #360 - Update
itertoolsdependency to 0.15.