fast-nuclear-sim/src/coolant/vapor_pressure.hpp

23 lines
297 B
C++
Raw Normal View History

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
{
const double A, B, C;
2024-01-16 20:30:22 +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;
};
}