Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added specific_entropy, reorganized some stuff #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ edition = "2018"
[features]
default = ["auxcleanup_gas_deletion"]
auxcleanup_gas_deletion = ["auxcleanup"]
specific_entropy = []
equalization = []
monstermos = ["equalization"]
putnamos = ["equalization"]
Expand Down
1 change: 1 addition & 0 deletions src/gas.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod constants;
pub mod hooks;
pub mod mixture;
pub mod types;

Expand Down
4 changes: 4 additions & 0 deletions src/gas/constants.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/// kPa*L/(K*mol)
pub const R_IDEAL_GAS_EQUATION: f32 = 8.31;
// (mol^3 * s^3) / (kg^3 * L).
pub const IDEAL_GAS_ENTROPY_CONSTANT: f32 = 1164.0;
// Makes the math better on vacuum stuff, arbitrary constant taken from bay
pub const SPECIFIC_ENTROPY_VACUUM: f32 = 150_000.0;
/// kPa
pub const ONE_ATMOSPHERE: f32 = 101.325;
/// -270.3degC
Expand Down
Loading