10 #include "gtest/gtest.h" 16 const double tol = 1.0e-6;
17 const std::vector<double>
x = {273.15, 298.15, 333.15, 373.15, 423.15, 473.15, 523.15, 573.15};
18 const std::vector<double>
y = {
19 14.9398, 13.9951, 13.0272, 12.2551, 11.6308, 11.2836, 11.1675, 11.3002};
21 TEST(EquilibriumConstantFitTest, constructor)
27 TEST(EquilibriumConstantFitTest, sample)
33 EXPECT_NEAR(logk.
sample(
x[1]), 13.991103115875013,
tol);
34 EXPECT_NEAR(logk.
sample(
x[2]), 13.028890219017683,
tol);
35 EXPECT_NEAR(logk.
sample(
x[3]), 12.259284844918287,
tol);
36 EXPECT_NEAR(logk.
sample(
x[4]), 11.627599702911748,
tol);
37 EXPECT_NEAR(logk.
sample(
x[5]), 11.278660590504469,
tol);
unsigned int getSampleSize()
TEST(EquilibriumConstantFitTest, constructor)
const std::vector< double > y
const std::vector< double > x
Fit the equilibrium constant values read from a databse at specified temperature values with a Maier-...
virtual Real sample(Real T) override