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 quantity::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.
Utilities for working with experimental data.
Heterosegmented Group Contribution PC-SAFT
Generic implementation of the hard-sphere contribution
that can be used across models.
Perturbed-Chain Statistical Associating Fluid Theory (PC-SAFT)
Perturbed Truncated and Shifted (PeTS) equation of state
SAFT-VRQ Mie equation of state.
uv-theory for fluids interacting with a Mie potential.
Enums
Collection of different EquationOfState implementations.
Collection of different HelmholtzEnergyFunctional implementations.