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

macro feos-derive

Macros for the EquationOfState and HelmholtzEnergyFunctional traits in FeOs

6 releases (breaking)

0.5.0 May 21, 2024
0.4.0 Dec 19, 2023
0.3.0 Oct 20, 2023
0.2.0 Jan 27, 2023
0.1.0 Sep 14, 2022

#10 in #thermodynamics

Download history 14/week @ 2024-07-27 13/week @ 2024-09-21 6/week @ 2024-09-28

414 downloads per month
Used in 2 crates (via feos)

MIT/Apache

32KB
829 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
~36K SLoC