mirror of
https://github.com/aselimov/cea-rs.git
synced 2026-04-19 00:24:20 +00:00
23 lines
410 B
Rust
23 lines
410 B
Rust
|
|
pub enum Phase {
|
||
|
|
Gas,
|
||
|
|
Condensed,
|
||
|
|
}
|
||
|
|
|
||
|
|
pub struct SpeciesPolynomial {
|
||
|
|
pub name: String,
|
||
|
|
pub elements: Vec<SpeciesElement>,
|
||
|
|
pub phase: Phase,
|
||
|
|
pub polynomials: Vec<Polynomial>,
|
||
|
|
pub molecular_weight: f64,
|
||
|
|
pub h_formation: f64,
|
||
|
|
}
|
||
|
|
pub struct Polynomial {
|
||
|
|
pub a: Vec<f64>,
|
||
|
|
pub temp_range: (f64, f64),
|
||
|
|
}
|
||
|
|
|
||
|
|
pub struct SpeciesElement {
|
||
|
|
pub element: String,
|
||
|
|
pub count: f64,
|
||
|
|
}
|