-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathlib.rs
More file actions
73 lines (66 loc) · 1.92 KB
/
Copy pathlib.rs
File metadata and controls
73 lines (66 loc) · 1.92 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//! FeOs - An open-source framework for equations of state and classical functional density theory.
//!
//! # Example: critical point of a pure substance using PC-SAFT
//!
#![cfg_attr(not(feature = "pcsaft"), doc = "```ignore")]
#![cfg_attr(feature = "pcsaft", doc = "```")]
//! # use feos_core::FeosError;
//! use feos::pcsaft::{PcSaft, PcSaftParameters};
//! use feos_core::parameter::{IdentifierOption};
//! use feos_core::{Contributions, State};
//! use quantity::KELVIN;
//! use nalgebra::dvector;
//!
//! // Read parameters from json file.
//! let parameters = PcSaftParameters::from_json(
//! vec!["propane"],
//! "../../parameters/pcsaft/esper2023.json",
//! None,
//! IdentifierOption::Name,
//! )?;
//!
//! // Define equation of state.
//! let saft = PcSaft::new(parameters);
//!
//! // Define thermodynamic conditions.
//! let critical_point = State::critical_point(&&saft, dvector![1.0], None, None, Default::default())?;
//!
//! // Compute properties.
//! let p = critical_point.pressure(Contributions::Total);
//! let t = critical_point.temperature;
//! println!("Critical point: T={}, p={}.", t, p);
//! # Ok::<(), FeosError>(())
//! ```
#![warn(clippy::all)]
#![warn(clippy::allow_attributes)]
// pub mod estimator;
#[cfg(feature = "association")]
pub mod association;
pub mod hard_sphere;
// models
#[cfg(feature = "epcsaft")]
pub mod epcsaft;
#[cfg(feature = "gc_pcsaft")]
pub mod gc_pcsaft;
#[cfg(feature = "multiparameter")]
pub mod multiparameter;
#[cfg(feature = "pcsaft")]
pub mod pcsaft;
#[cfg(feature = "pets")]
pub mod pets;
#[cfg(feature = "saftvrmie")]
pub mod saftvrmie;
#[cfg(feature = "saftvrqmie")]
pub mod saftvrqmie;
#[cfg(feature = "uvtheory")]
pub mod uvtheory;
pub mod ideal_gas;
pub mod core {
//! Re-export of all functionalities in [feos_core].
pub use feos_core::*;
}
#[cfg(feature = "dft")]
pub mod dft {
//! Re-export of all functionalities in [feos_dft].
pub use feos_dft::*;
}