39 template <
typename Scalar>
40 int test_viscosity(
const Scalar mu,
const Scalar mu_exact,
const Scalar tol )
46 const double rel_error = abs( (mu - mu_exact)/mu_exact);
50 std::cerr <<
"Error: Mismatch in viscosity" << std::endl
51 <<
"mu(T) = " << mu << std::endl
52 <<
"mu_exact = " << mu_exact << std::endl
53 <<
"rel_error = " << rel_error << std::endl
54 <<
"tol = " << tol << std::endl;
61 template <
typename Scalar>
64 const Scalar a = 3.14e-3;
65 const Scalar b = 2.71e-2;
66 const Scalar c = 42.0e-5;
70 std::cout << mu << std::endl;
72 const Scalar T = 1521.2;
75 const Scalar mu_exact = 0.144422234167703;
79 const Scalar tol = 1.0e-14;
83 const Scalar a2 = 1e-3;
84 const Scalar b2 = 2e-2;
85 const Scalar c2 = 3e-5;
90 const Scalar mu_exact2 = 0.122172495548880;
99 return (tester<double>() ||
100 tester<long double>() ||
int test_viscosity(const Scalar mu, const Scalar mu_exact, const Scalar tol)
void reset_coeffs(const CoeffType a, const CoeffType b, const CoeffType c)