-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy patheos.rs
More file actions
53 lines (51 loc) · 1.46 KB
/
eos.rs
File metadata and controls
53 lines (51 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
#[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;
use feos_core::joback::Joback;
#[cfg(feature = "python")]
use feos_core::python::user_defined::{PyIdealGas, PyResidual};
use feos_core::*;
use feos_derive::{Components, IdealGas, Residual};
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(Components, Residual)]
pub enum ResidualModel {
#[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(PyResidual),
#[cfg(feature = "saftvrqmie")]
#[implement(molar_weight)]
SaftVRQMie(SaftVRQMie),
#[cfg(feature = "pets")]
#[implement(molar_weight)]
Pets(Pets),
#[cfg(feature = "uvtheory")]
UVTheory(UVTheory),
}
#[derive(Components, IdealGas)]
pub enum IdealGasModel {
NoModel(usize),
Joback(Joback),
#[cfg(feature = "python")]
Python(PyIdealGas),
}