-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy patheos.rs
More file actions
44 lines (43 loc) · 1.24 KB
/
eos.rs
File metadata and controls
44 lines (43 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#[cfg(feature = "gc_pcsaft")]
use crate::gc_pcsaft::GcPcSaft;
#[cfg(feature = "pcsaft")]
use crate::pcsaft::PcSaft;
#[cfg(feature = "pets")]
use crate::pets::Pets;
#[cfg(feature = "saftvrqmie")]
use crate::saftvrqmie::SaftVRQMie;
#[cfg(feature = "uvtheory")]
use crate::uvtheory::UVTheory;
use feos_core::cubic::PengRobinson;
#[cfg(feature = "python")]
use feos_core::python::user_defined::PyEoSObj;
use feos_core::*;
use feos_derive::EquationOfState;
use ndarray::Array1;
use quantity::si::*;
/// Collection of different [EquationOfState] implementations.
///
/// Particularly relevant for situations in which generic types
/// are undesirable (e.g. FFI).
#[derive(EquationOfState)]
pub enum EosVariant {
#[cfg(feature = "pcsaft")]
#[implement(entropy_scaling, molar_weight)]
PcSaft(PcSaft),
#[cfg(feature = "gc_pcsaft")]
#[implement(molar_weight)]
GcPcSaft(GcPcSaft),
#[implement(molar_weight)]
PengRobinson(PengRobinson),
#[cfg(feature = "python")]
#[implement(molar_weight)]
Python(PyEoSObj),
#[cfg(feature = "saftvrqmie")]
#[implement(molar_weight)]
SaftVRQMie(SaftVRQMie),
#[cfg(feature = "pets")]
#[implement(molar_weight)]
Pets(Pets),
#[cfg(feature = "uvtheory")]
UVTheory(UVTheory),
}