Example #1
0
double gasinfo::pressure(const state &st) const {
    return (gamma_ratio(st) - 1) * st.density() * st.specific_energy();
}
Example #2
0
double gasinfo::temperature(const state &st) const {
    return st.specific_energy() / heat_capacity_volume(st);
}
Example #3
0
double gasinfo::specific_energy(const state &st) const {
    return st.specific_energy();
}