23 REL_TEST(_fp->molarMass(), 0.0620918, REL_TOL_SAVED_VALUE);
31 const Real tol = REL_TOL_SAVED_VALUE;
32 const std::vector<Real> pressures = {1e5, 1e6, 5e6};
33 const std::vector<Real> temperatures = {500, 700, 1000};
37 const std::vector<Real> rho_refs = {
38 821.954085329590612, 775.608846516464268, 703.767342628214124};
39 const std::vector<Real> h_refs = {212851.212833445577, 391103.66397524561, 654472.411687945598};
40 const std::vector<Real> e_refs = {212729.55153656195, 389814.354287132388, 647367.791031170636};
41 const std::vector<Real> k_refs = {24.9636547049999997, 26.2273747049999955, 24.8229547050000008};
42 const std::vector<Real> cp_refs = {908.088827709000043, 879.02768370900003, 887.095967709000092};
43 const std::vector<Real> cv_refs = {908.055029910277312, 878.637048045562551, 884.635754614549114};
44 const std::vector<Real> mu_refs = {
45 0.000336716758684162674, 0.000222908484361340899, 0.000145271584941717932};
50 const Real p = pressures[i];
51 const Real T = temperatures[i];
52 const Real rho = _fp->rho_from_p_T(p, T);
53 const Real h = _fp->h_from_p_T(p, T);
56 REL_TEST(_fp->rho_from_p_T(p, T), rho_refs[i],
tol);
59 REL_TEST(_fp->v_from_p_T(p, T), 1. / rho_refs[i],
tol);
62 REL_TEST(_fp->h_from_p_T(p, T), h_refs[i],
tol);
65 REL_TEST(_fp->e_from_p_T(p, T), e_refs[i],
tol);
66 REL_TEST(_fp->e_from_p_rho(p, rho), e_refs[i],
tol);
69 REL_TEST(_fp->T_from_p_rho(p, rho), T,
tol);
70 REL_TEST(_fp->T_from_p_h(p, h), T,
tol);
73 REL_TEST(_fp->k_from_p_T(p, T), k_refs[i],
tol);
76 REL_TEST(_fp->cp_from_p_T(p, T), cp_refs[i],
tol);
79 REL_TEST(_fp->cv_from_p_T(p, T), cv_refs[i],
tol);
82 REL_TEST(_fp->mu_from_p_T(p, T), mu_refs[i],
tol);
92 const Real tol = REL_TOL_DERIVATIVE;
94 const Real p = 30.0e6;
98 DERIV_TEST(_fp->rho_from_p_T, p, T,
tol);
99 DERIV_TEST(_fp->e_from_p_T, p, T,
tol);
100 DERIV_TEST(_fp->v_from_p_T, p, T,
tol);
101 DERIV_TEST(_fp->h_from_p_T, p, T,
tol);
102 DERIV_TEST(_fp->k_from_p_T, p, T,
tol);
103 DERIV_TEST(_fp->cp_from_p_T, p, T,
tol);
104 DERIV_TEST(_fp->mu_from_p_T, p, T,
tol);
105 DERIV_TEST(_fp->mu_from_p_T, p, T2,
tol);
TEST_F(NaKFluidPropertiesTest, fluidName)
Test that the fluid name is correctly returned.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
IntRange< T > make_range(T beg, T end)