2024-01-16 20:30:22 +11:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-02-13 22:33:55 +11:00
|
|
|
#include <json/json.h>
|
|
|
|
|
2024-01-16 20:30:22 +11:00
|
|
|
namespace sim::coolant
|
|
|
|
{
|
|
|
|
|
|
|
|
struct vapor_pressure
|
|
|
|
{
|
2024-02-13 15:28:39 +11:00
|
|
|
const double A, B, C;
|
2024-01-16 20:30:22 +11:00
|
|
|
|
2024-02-13 15:28:39 +11:00
|
|
|
constexpr vapor_pressure(double A, double B, double C) : A(A), B(B), C(C) { }
|
2024-01-16 20:30:22 +11:00
|
|
|
|
2024-02-13 22:33:55 +11:00
|
|
|
operator Json::Value() const;
|
|
|
|
|
2024-01-16 20:30:22 +11:00
|
|
|
double calc_p(double t) const;
|
|
|
|
double calc_t(double p) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|