2024-01-16 20:30:22 +11:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace sim::coolant
|
|
|
|
{
|
|
|
|
|
|
|
|
struct vapor_pressure
|
|
|
|
{
|
2024-02-09 21:31:36 +11:00
|
|
|
const double A1, B1, C1;
|
|
|
|
const double A2, B2, C2;
|
|
|
|
const double T;
|
2024-01-16 20:30:22 +11:00
|
|
|
|
2024-02-09 21:31:36 +11:00
|
|
|
constexpr vapor_pressure(double A1, double B1, double C1, double T, double A2, double B2, double C2) :
|
|
|
|
A1(A1), B1(B1), C1(C1), T(T), A2(A2), B2(B2), C2(C2) { }
|
2024-01-16 20:30:22 +11:00
|
|
|
|
|
|
|
double calc_p(double t) const;
|
|
|
|
double calc_t(double p) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|