← 输入框|github.com|刷新
Skip to content

Releases

v0.11.0

Choose a tag to compare

@prehner prehner released this 18 Nov 15:33

Added

  • 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
  • Updated rusqlite dependency to 0.43. #411

v0.10.5

Choose a tag to compare

@prehner prehner released this 24 Oct 15:55

Fixed

  • Fixed State::critical_point_binary at fixed pressure, which evaluated the pressure at the wrong volume and never converged. #402
  • Fixed PhaseEquilibrium::tp_flash with 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, and new_nvu being lost if the initial guess is already converged.
  • Fixed State::residual_chemical_potential_contributions passing the temperature as molar volume. #402
  • Fixed duplicate point in PhaseDiagram::dew_point_line. #402

v0.10.4

Choose a tag to compare

@prehner prehner released this 21 Oct 16:00

Fixed

  • Fixed bug in _density_iteration which 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_constant for 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

Choose a tag to compare

@prehner prehner released this 14 Oct 08:34

Fixed

  • Fixed numerical roundoff errors in the analytic solution of association site fractions for asymmetric association schemes. #393,#394

v0.10.2

Choose a tag to compare

@prehner prehner released this 12 Oct 13:25

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

Choose a tag to compare

@g-bauer g-bauer released this 24 Jul 12:54

Fixed

  • Fixed some unwraps in VLE routines. #367

Packaging

  • Updated github action workflows to include pyodide/emscripten wheels. #368

v0.10.0

Choose a tag to compare

@prehner prehner released this 15 Jul 07:06

Added

  • Extended tp-flash algorithm to static numbers of components and enabled automatic differentiation for binary systems. #336
  • Rewrote PhaseEquilibrium::pure_p to mirror pure_t and enabled automatic differentiation. #337
  • Added boiling_temperature to the list of properties for parallel evaluations of gradients. #337
  • Added the Composition trait to allow more flexibility in the creation of states and phase equilibria. #330
  • Added PhaseEquilibrium::ph_flash and PhaseEquilibrium::ps_flash. #338
  • Added getters for vapor_phase_fraction, molar_enthalpy, molar_entropy, total_moles, enthalpy, and entropy to PhaseEquilibrium. #338
  • Added PropertyAD trait in feos_core::ad with one struct per property for uniform evaluation with or without parameter derivatives, including parallel variants. #358
  • Added feos_core::ad::dataset module with PureDataset and BinaryDataset types, constructible from records, CSV files, or readers, for use in parameter fits. #358
  • Exposed Property, PureDataset, and BinaryDataset in py-feos. #358
  • Implemented IdealGasAD<D> for Dippr. #357
  • Added PhaseEquilibrium::binary_azeotrope that 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 State or PhaseEquilibrium. Evaluating extensive properties now returns a Result. #330
  • Redesigned the IdealGas trait and added IdealGasAD in analogy to ResidualDyn and Residual. #330
  • Replaced the PropertiesAD blanket-impl trait with per-property PropertyAD types. #358
  • Replaced ParametersAD::named_derivatives with a build constructor and seed_derivatives(&values, names). #358
  • Removed the per-property *_derivatives free functions in Python in favour of static methods on the new Property class. #358

Removed

  • Removed the StateBuilder struct, because it is mostly obsolete with the addition of the Composition trait. #330

Packaging

  • Updated quantity dependency to 0.13 and removed the typenum dependency. #328
  • Added csv as a feos-core dependency for the new dataset module. #358
  • Updated pyo3, pythonize and numpy dependencies to 0.29. #360
  • Updated quantity and num-dual dependencies to 0.14. #360
  • Updated nalgebra dependency to 0.35. #360
  • Updated gauss-quad dependency to 0.3. #360
  • Update itertools dependency to 0.15.

v0.9.6

Choose a tag to compare

@prehner prehner released this 03 Jul 13:14
c52aa19

Fixed

  • Fixed PhaseDiagram.binary_vle() panicking during search for VLLE (tried to access unallocated element). #362
  • Fixed reading binary association parameters from JSON. #363

v0.9.5

Choose a tag to compare

@prehner prehner released this 14 Apr 15:19
a508463

Added

  • Add Rayon global thread pool control via FEOS_MAX_THREADS and set_num_threads()/ get_num_threads() to Python. #346
  • Added DIPPR107 parameterization for ideal gas heat capacities of Burkhardt et al. #344

Fixed

  • Fixed the calculation of temperature and pressure derivatives of dew and bubble points. #347
  • Fixed the implementation of binary interaction parameters in ePC-SAFT. #353

v0.9.4

Choose a tag to compare

@prehner prehner released this 09 Mar 13:39

Changed

  • Automatically detect VLLEs in BinaryPhaseDiagram. #341

Fixed

  • Fixed the sign of the isothermal compressibility. #342

Thanks @RolfStierle for the contribution!