mirror of
https://github.com/aselimov/cea-rs.git
synced 2026-04-21 01:14:20 +00:00
Initial commit up to species parsing in thermo.inp
This commit is contained in:
parent
a7a75c1dd1
commit
516cf945ad
11 changed files with 16523 additions and 0 deletions
22
src/properties/polynomials.rs
Normal file
22
src/properties/polynomials.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue