Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Started impl of SAFT VR Mie
  • Loading branch information
g-bauer committed Apr 12, 2024
commit 28050200bcccdd9c56c698e93878a9521efaed75
1 change: 1 addition & 0 deletions Cargo.toml
Comment thread
prehner marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ gc_pcsaft = ["association"]
uvtheory = ["lazy_static"]
pets = []
saftvrqmie = []
saftvrmie = ["association"]
Comment thread
prehner marked this conversation as resolved.
Outdated
rayon = ["dep:rayon", "ndarray/rayon", "feos-core/rayon", "feos-dft?/rayon"]
python = ["pyo3", "numpy", "quantity/python", "feos-core/python", "feos-dft?/python", "rayon"]
all_models = ["dft", "estimator", "pcsaft", "gc_pcsaft", "uvtheory", "pets", "saftvrqmie"]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ pub mod pcsaft;
pub mod pets;
#[cfg(feature = "saftvrqmie")]
pub mod saftvrqmie;
#[cfg(feature = "saftvrmie")]
pub mod saftvrmie;
#[cfg(feature = "uvtheory")]
pub mod uvtheory;

Expand Down
14 changes: 14 additions & 0 deletions src/saftvrmie/eos/chain.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use std::f64::consts::{FRAC_PI_6, PI};

use feos_core::StateHD;
use itertools::Itertools;
use ndarray::{Array1, Array2, ScalarOperand};
use num_dual::DualNum;

use crate::hard_sphere::HardSphereProperties;

use super::SaftVRMieParameters;

pub(super) fn a_chain<D: DualNum<f64> + Copy>() -> D {
unimplemented!()
}
38 changes: 38 additions & 0 deletions src/saftvrmie/eos/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
use super::SaftVRMieParameters;
use feos_core::{Components, Residual, StateHD};
use num_dual::DualNum;
use std::sync::Arc;

mod chain;
mod monomer;

pub struct SaftVRMie {
parameters: Arc<SaftVRMieParameters>,
}

impl Components for SaftVRMie {
fn components(&self) -> usize {
unimplemented!()
}

fn subset(&self, component_list: &[usize]) -> Self {
unimplemented!()
}
}

impl Residual for SaftVRMie {
fn compute_max_density(&self, moles: &ndarray::prelude::Array1<f64>) -> f64 {
unimplemented!()
}

fn molar_weight(&self) -> feos_core::si::MolarWeight<ndarray::prelude::Array1<f64>> {
unimplemented!()
}

fn residual_helmholtz_energy_contributions<D: DualNum<f64> + Copy>(
&self,
state: &StateHD<D>,
) -> Vec<(String, D)> {
unimplemented!()
}
}
Loading