24 REL_TEST(_fp->molarMass(), 0.1730, REL_TOL_SAVED_VALUE);
46 const Real tol = REL_TOL_SAVED_VALUE;
47 const std::vector<Real> pressures = {100000.00, 1000000.00, 5000000.00};
48 const std::vector<Real> temperatures = {700.0000, 800.0000, 1000.0000};
51 for (
size_t ip = 0; ip < pressures.size(); ip++)
53 const Real p = pressures[ip];
54 for (
size_t iT = 0; iT < temperatures.size(); iT++)
56 const Real T = temperatures[iT];
59 const Real rho_ref = 10520.35 - 1.19051 * T;
61 const Real h_ref = 195.0 * (T - 508.0) - 0.5 * 9.116e-3 * (T * T - 508.0 * 508.0);
63 const Real e_ref = h_ref - p / rho_ref;
65 const Real k_ref = 14.51 + 0.019631 * T;
67 const Real c_ref = 1876. - 0.306 * T;
69 const Real E_ref = c_ref * c_ref * rho_ref;
71 const Real cp_ref = 195.0 - 9.116e-3 * T;
73 const Real alpha = 1.19051 / (10520.35 - 1.19051 * T);
75 const Real cv_ref = cp_ref / (1.0 + (
alpha *
alpha * E_ref * T) / (rho_ref * cp_ref));
80 const Real rho = _fp->rho_from_p_T(p, T);
81 const Real v = 1.0 / rho;
82 const Real h = _fp->h_from_p_T(p, T);
83 const Real e = _fp->e_from_p_T(p, T);
86 REL_TEST(rho, rho_ref,
tol);
87 REL_TEST(_fp->v_from_p_T(p, T), 1.0 / rho_ref,
tol);
90 REL_TEST(_fp->p_from_v_e(
v, e), p,
tol * 1e5);
93 REL_TEST(h, h_ref,
tol);
94 REL_TEST(_fp->h_from_v_e(
v, e), h_ref,
tol);
97 REL_TEST(e, e_ref,
tol);
98 REL_TEST(_fp->e_from_p_rho(p, rho), e_ref,
tol);
101 REL_TEST(_fp->T_from_v_e(
v, e), T,
tol);
102 REL_TEST(_fp->T_from_p_rho(p, rho), T,
tol);
103 REL_TEST(_fp->T_from_p_h(p, h), T,
tol);
106 REL_TEST(_fp->k_from_p_T(p, T), k_ref,
tol);
107 REL_TEST(_fp->k_from_v_e(
v, e), k_ref,
tol);
110 REL_TEST(_fp->bulk_modulus_from_p_T(p, T), E_ref,
tol);
113 REL_TEST(_fp->c_from_p_T(p, T), c_ref,
tol);
114 REL_TEST(_fp->c_from_v_e(
v, e), c_ref,
tol);
117 REL_TEST(_fp->cp_from_p_T(p, T), cp_ref,
tol);
118 REL_TEST(_fp->cp_from_v_e(
v, e), cp_ref,
tol);
121 REL_TEST(_fp->cv_from_p_T(p, T), cv_ref,
tol);
122 REL_TEST(_fp->cv_from_v_e(
v, e), cv_ref,
tol);
125 REL_TEST(_fp->mu_from_p_T(p, T), mu_ref,
tol);
126 REL_TEST(_fp->mu_from_v_e(
v, e), mu_ref,
tol);
140 const Real tol = REL_TOL_DERIVATIVE;
142 const Real p = 30000000.0000;
143 const Real T = 600.0000;
144 const Real rho = _fp->rho_from_p_T(p, T);
145 const Real v = 1.0 / rho;
146 const Real h = _fp->h_from_p_T(p, T);
147 const Real e = _fp->e_from_p_T(p, T);
149 DERIV_TEST(_fp->rho_from_p_T, p, T,
tol);
150 DERIV_TEST(_fp->e_from_p_T, p, T,
tol);
151 DERIV_TEST(_fp->v_from_p_T, p, T,
tol);
152 DERIV_TEST(_fp->h_from_p_T, p, T,
tol);
153 DERIV_TEST(_fp->k_from_p_T, p, T,
tol);
154 DERIV_TEST(_fp->cp_from_p_T, p, T,
tol);
155 DERIV_TEST(_fp->cv_from_p_T, p, T, 1.5e-6);
156 DERIV_TEST(_fp->mu_from_p_T, p, T,
tol);
158 DERIV_TEST(_fp->p_from_v_e,
v, e,
tol);
159 DERIV_TEST(_fp->mu_from_v_e,
v, e,
tol);
160 DERIV_TEST(_fp->k_from_v_e,
v, e,
tol);
161 DERIV_TEST(_fp->h_from_v_e,
v, e,
tol);
162 DERIV_TEST(_fp->T_from_v_e,
v, e,
tol);
163 DERIV_TEST(_fp->cp_from_v_e,
v, e,
tol);
164 DERIV_TEST(_fp->cv_from_v_e,
v, e,
tol);
166 DERIV_TEST(_fp->T_from_p_rho, p, rho,
tol);
167 DERIV_TEST(_fp->e_from_p_rho, p, rho,
tol);
168 DERIV_TEST(_fp->T_from_p_h, p, h,
tol);
TEST_F(LeadLithiumFluidPropertiesTest, fluidName)
Test that the fluid name is correctly returned.
static const Real _R
Universal gas constant (J/mol/K)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
static const std::string alpha