Expand description
FeOs - An open-source framework for equations of state and classical functional density theory.
§Example: critical point of a pure substance using PC-SAFT
use feos::pcsaft::{PcSaft, PcSaftParameters};
use feos_core::parameter::{IdentifierOption, Parameter};
use feos_core::{Contributions, State};
use feos_core::si::KELVIN;
use std::sync::Arc;
// Read parameters from json file.
let parameters = PcSaftParameters::from_json(
vec!["propane"],
"tests/pcsaft/test_parameters.json",
None,
IdentifierOption::Name,
)?;
// Define equation of state.
let saft = Arc::new(PcSaft::new(Arc::new(parameters)));
// Define thermodynamic conditions.
let critical_point = State::critical_point(&saft, 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);
Modules§
- Generic implementation of the SAFT association contribution that can be used across models.
- Re-export of all functionalities in feos_core.
- Re-export of all functionalities in feos_dft.
- Electrolyte Perturbed-Chain Statistical Associating Fluid Theory (ePC-SAFT)
- Utilities for working with experimental data.
- Heterosegmented Group Contribution PC-SAFT
- Generic implementation of the hard-sphere contribution that can be used across models.
- Collection of ideal gas models.
- Perturbed-Chain Statistical Associating Fluid Theory (PC-SAFT)
- Perturbed Truncated and Shifted (PeTS) equation of state
- Statistical Associating Fluid Theory for Variable Range interactions of the generic Mie form (SAFT-VR Mie)
- SAFT-VRQ Mie equation of state.
- uv-theory for fluids interacting with a Mie potential.
Enums§
- Collection of different HelmholtzEnergyFunctional implementations.
- Collection of different Residual implementations.