#thermodynamics #physics #phase-equilibria #equations-of-state

macro feos-derive

Macros for the EquationOfState and HelmholtzEnergyFunctional traits in FeOs

7 releases (breaking)

0.6.0 Jan 8, 2025
0.5.0 May 21, 2024
0.4.0 Dec 19, 2023
0.3.0 Oct 20, 2023
0.1.0 Sep 14, 2022

#7 in #phase-equilibria

Download history 5/week @ 2024-12-04 6/week @ 2024-12-11 144/week @ 2025-01-08 8/week @ 2025-01-15

152 downloads per month
Used in 3 crates (via feos)

MIT/Apache

33KB
870 lines

FeOs-derive

crate documentation

feos-derive is part of the FeOs project.

FeOs - A Framework for Equations of State and Classical Density Functional Theory

What it does

The feos-derive crate contains two macros that provide boilerplate for the implementation of the EquationOfState and the HelmholtzEnergyFunctional trait for the EosVariant and FunctionalVariant enums of the feos crate. With these macros, new equations of state and functionals can be added to the variants without any further implementations needed.


lib.rs:

This crate provides derive macros used for the EosVariant and FunctionalVariant enums in FeOs. The macros implement the boilerplate for the EquationOfState and HelmholtzEnergyFunctional traits.

Dependencies

~1.5MB
~38K SLoC